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
x/mobile: gomobile init not work #28449
Comments
sorry,i error think this is auto tool |
@blue-bird1 I'm having the exact same problem (same go version also), gomobile init does not seem to be doing anything (I supposed it should install NDK, but it does nothing..silently). Why has this issue been closed ? Did you manage to find out how to get gomobile init to work ? |
If you don't set up the environment, it won't work, and it won't report any errors. I thought it was because I didn't set up the environment, so shut it down. You just need to install ndk and set environment var to make it work. |
Them the docs and the help of gomobile should be updated, they indicate that the environment will be built for you automatically. On the help it seems explicit that the NDK will be installed for you:
The wiki even says that it may take minutes (instead it exits immediately and seems to do nothing). |
same problem here too. What's the solution? Set some env var? Which one? The wiki doesn't really explain it well. It should be updated. |
@dolanor I ended up not doing any mobile stuff, but I think the gomobile init is not working anymore, so you need to install the NDK manually on some dir and then pass the dir as a parameter to init:
The help mentions the ANDROID_HOME env var:
|
Not working in the sense that it does not install the NDK for you...perhaps other stuff still works =) |
My travis ci fails now and was passing before. My ndk path is set correctly but it's asking for openal. Any ideas? |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.11.1 linux/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build759758858=/tmp/go-build -gno-record-gcc-switches"
What did you do?
https://github.com/golang/go/wiki/Mobile
What did you expect to see?
Compiled successfully
What did you see instead?
init
Done, build took 0s.
output
gomobile: no Android NDK path is set. Please run gomobile init with the ndk-bundle installed through the Android SDK manager or with the -ndk flag set.
The text was updated successfully, but these errors were encountered: