go - Building for ARM? -
whenever try , use 'go install' after settings goarch, goos , gobin 'cannot install cross-compiled binaries when gobin set', don't understand why?
what's simplest way build arm linux?
you can use go build command instead:
env goos=android goarch=arm64 go build -o /arm64bins/app
available goos/goarch
's in go 1.7:
➜ go tool dist list | grep arm 05/29/16 android/arm android/arm64 darwin/arm darwin/arm64 freebsd/arm linux/arm linux/arm64 nacl/arm netbsd/arm openbsd/arm plan9/arm
Comments
Post a Comment