New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go/build: running gcc failed: exit status 1 when I try to compile simple hello world program to android/arm #45280
Comments
FYI, I've deleted a comment which contained profanity and slurs. This didn't add anything to the issue itself and was in violation of the Go Community Code of Conduct. |
Are the right gcc cross-compilers installed? |
I think the author is trying to do a no cgo build based on what the linked article is saying. cc @eliasnaur |
yes,
yes, that's what I do @AlexRouSg |
See https://github.com/golang/go/tree/master/misc/android for getting started building programs for Android. @AlexRouSg is right that the NDK is needed, and if you want to use Go in apps you'll need |
thank you, this meaning the old implementation in the article has been changed |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
compile simple Hello World program to android/arm depending on this article https://rakyll.org/cross-compilation/
code:
GOOS=android GOARCH=arm GOARM=7 go build .
What did you expect to see?
app.apk
What did you see instead?
The text was updated successfully, but these errors were encountered: