Skip to content
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: unable to go get -d golang.org/x/mobile/example/basic #12261

Closed
udhos opened this issue Aug 21, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@udhos
Copy link

commented Aug 21, 2015

Trying instructions for gomobile from: https://github.com/golang/go/wiki/Mobile
This command is panicking: go get -d golang.org/x/mobile/example/basic

Error is:
can't load package: package golang.org/x/mobile/example/basic: no buildable Go source files in c:\tmp\devel\negentropia\webserv\src\golang.org\x\mobile\example\basic

System is go1.5 windows/amd64

Context is:

set DEVEL=c:\tmp\devel
set GOPATH=%DEVEL%\negentropia\webserv

go get golang.org/x/mobile/cmd/gomobile

set PATH=c:\tmp\devel\negentropia\webserv\bin;%PATH%

gomobile init

Output is:

C:\Users\esmarques>go get -d golang.org/x/mobile/example/basic
can't load package: package golang.org/x/mobile/example/basic: no buildable Go source files in c:\tmp\devel\negentropia\webserv\src\golang.org\x\mobile\example\basic

C:\Users\esmarques>dir c:\tmp\devel\negentropia\webserv\src\golang.org\x\mobile\example\basic
Volume in drive C is Windows
Volume Serial Number is 5406-D6F9

Directory of c:\tmp\devel\negentropia\webserv\src\golang.org\x\mobile\example\basic

21/08/2015 12:03

.
21/08/2015 12:03 ..
21/08/2015 12:03 4.050 main.go
1 File(s) 4.050 bytes
2 Dir(s) 358.810.517.504 bytes free

C:\Users\esmarques>
C:\Users\esmarques>go version
go version go1.5 windows/amd64

C:\Users\esmarques>

@crawshaw

This comment has been minimized.

Copy link
Contributor

commented Aug 21, 2015

You can use go get to fetch the x/mobile, but not build for windows (yet). You should be able to use the gomobile tool to build an .apk for an android device.

Windows support is #9306, so closing this as a duplicate.

@crawshaw crawshaw closed this Aug 21, 2015

@gopherbot

This comment has been minimized.

Copy link

commented Aug 21, 2015

CL https://golang.org/cl/13745 mentions this issue.

hyangah added a commit to golang/mobile that referenced this issue Aug 24, 2015

all: support go get golang.org/x/mobile/... on Windows
Fixes golang/go#12212
Workaround for golang/go#12261 until golang/go#9306 is fixed.

Change-Id: I51c1bcfc92c1553fe2132586a0234b1c1af6aeb1
Reviewed-on: https://go-review.googlesource.com/13745
Reviewed-by: David Crawshaw <crawshaw@golang.org>

@golang golang locked and limited conversation to collaborators Aug 22, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.