-
Notifications
You must be signed in to change notification settings - Fork 18k
x/mobile/cmd/gomobile: init fails with go1.5.x #13246
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
Comments
I can tell by the error message that the version of go you are using when you run |
I met the same problem. Modify the source code of gomobile/init.go as following:
Recompile gomobile command and try again. |
user@Terminal-T61:~$ go version
go version go1.5.1 linux/386
user@Terminal-T61:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/go/bin:/home/user/Go/bin
user@Terminal-T61:~$ echo $GOROOT
/usr/lib/go |
I will revert https://go-review.googlesource.com/#/c/16912/ for now. go1.5.1 and tip compilers have different flag sets and I cannot easily tell how to make it work for both go1.5 and tip yet. https://go.googlesource.com/go/+/go1.5.1/src/cmd/go/build.go#341 |
@xuwaters suggestion worked for me, i edited gomobile/init.go, then I put in sudo apt-get install gcc
sudo GOPATH=/home/user/Go go install -a golang.org/x/mobile/cmd/gomobile And it worked! |
This reverts commit b84795b. See golang/go#13246 Change-Id: Ie8b89a9ac6e5b6906b3a4de21122d694cf7a2d0a Reviewed-on: https://go-review.googlesource.com/16917 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
/cc @crawshaw |
Edit: Sorry, Pressed Publish before writing anything 😝
Anyways, today, I got around installing go/mobile, I followed the instructions, called
go get ...
and dowloaded the basic example, and rangomobile init
, that resulted in an error, as in:I don't really know how to fix it, I'm using go1.51 and
go env
echoes.I'm rockin' lubuntu on my old T61
Finally, one last thing.
The text was updated successfully, but these errors were encountered: