Op donderdag 22 september 2016 18:08:10 UTC+2 schreef Elias Naur: > > > > On Thursday, September 22, 2016 at 5:34:24 PM UTC+2, Peter Kleiweg wrote: >> >> I try the examples on https://github.com/golang/go/wiki/Mobile >> >> Native applications -> Building and deploying to Android works fine. >> >> On "SDK applications and generating bindings" I get into problems. >> >> It says: >> >> go get -d golang.org/x/mobile/example/bind/... >> >> I get: >> >> warning: "golang.org/x/mobile/example/bind/..." matched no packages >> can't load package: package golang.org/x/mobile/example: no >> buildable Go source files in /home/peter/go/src/ >> golang.org/x/mobile/example >> >> > That's odd, and it should definitely work. With Go 1.7.1 and after > removing my existing $GOPATH/golang.org directory out of the way, running > > $ go get -d golang.org/x/mobile/example/bind/. > <http://golang.org/x/mobile/example/bind/>.. > > outputs no error and downloads golang.org/x/mobile just fine. Which > version of Go are you using? Regardless of this issue, I recommend 1.7.1 > because it contains fixes for several issues on mobiles, in particular iOS. >
(peter) ~ go version go version go1.7.1 linux/amd64 (peter) ~ go env GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/peter/go" GORACE="" GOROOT="/my/opt/go" GOTOOLDIR="/my/opt/go/pkg/tool/linux_amd64" CC="gcc" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build429704933=/tmp/go-build -gno-record-gcc-switches" CXX="g++" CGO_ENABLED="1" (peter) ~ go get -v -u -d golang.org/x/mobile/example/bind/... Fetching https://golang.org/x/mobile/example/bind?go-get=1 Parsing meta tags from https://golang.org/x/mobile/example/bind?go-get=1 (status code 200) get "golang.org/x/mobile/example/bind": found meta tag main.metaImport{Prefix:"golang.org/x/mobile", VCS:"git", RepoRoot:"https://go.googlesource.com/mobile"} at https://golang.org/x/mobile/example/bind?go-get=1 get "golang.org/x/mobile/example/bind": verifying non-authoritative meta tag Fetching https://golang.org/x/mobile?go-get=1 Parsing meta tags from https://golang.org/x/mobile?go-get=1 (status code 200) golang.org/x/mobile (download) warning: "golang.org/x/mobile/example/bind/..." matched no packages can't load package: package .: no buildable Go source files in /home/peter -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.