5
5

More than 5 years have passed since last update.

Windows上でGolangのコードをクロスコンパイルする

Posted at

自分の環境での作業手順なので最小手順としては抜けがあるかも。

  • golangをインストールして実行できる状態まで設定する
  • Chocolatelyでmingwをインストールする choco install mingw
  • mitchellh/goxをインストールする go get github.com/mitchellh/gox
  • gox -build-toolchain
  • コンパイルするコードのあるディレクトリで gox
  • 各環境向けのバイナリができる
5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5