You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ docker run --rm -it -v $PWD:$PWD -w $PWD --rm i386/golang:alpine3.12 /bin/sh
# apk update
# apk add make bash util-linux nano git gcc musl-dev file
# make all && rm release_assets/*/*.sha256 && file release_assets/*/*
This allowed building both x86 and x64 binaries, whereas if I tried to use the standard golang:alpine3.12 container I was unable to cross-compile both x86 and x64 binaries.
This is all from an Ubuntu 18.04 LTS VM with Docker CE installed.
The text was updated successfully, but these errors were encountered:
For building a project that uses the mattn/go-sqlite3 package, I found that I needed to use mingw-w64 to build the Windows binaries. This required installation of the mingw-w64-gcc package to obtain these binaries:
Modified
Makefile
build command (using spaces here vs required tabs in the actual Makefile):This is for a cgo-enabled project which uses the https://github.com/mattn/go-sqlite3 package.
This allowed building both x86 and x64 binaries, whereas if I tried to use the standard
golang:alpine3.12
container I was unable to cross-compile both x86 and x64 binaries.This is all from an Ubuntu 18.04 LTS VM with Docker CE installed.
The text was updated successfully, but these errors were encountered: