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: gomobile bind fails when GOPATH="" #21658

Closed
landsnail opened this issue Aug 28, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@landsnail
Copy link

commented Aug 28, 2017

use 1.8.3
gomobile build and install was success but fail with bind

the console log:

gomobile: loadExportData failed go install -pkgdir=/Users/landsnail/go/pkg/gomobile/pkg_android_arm -gcflags=-shared -ldflags=-shared test failed: exit status 2
go: GOPATH entry is relative; must be absolute path: "".
For more details see: 'go help gopath'

oh, i am using mac with OSX system.

if someone can repply?

@crawshaw

This comment has been minimized.

Copy link
Contributor

commented Sep 3, 2017

Looks like gomobile may need to be updated to handle the new meaning of a missing GOPATH.

For now, you can make it work with: export GOPATH=$HOME/go.

@crawshaw crawshaw changed the title when use "gomobile bind" compile a aar,it fail x/mobile: gomobile bind fails when GOPATH="" Sep 3, 2017

@gopherbot gopherbot added this to the Unreleased milestone Sep 3, 2017

@gopherbot gopherbot added the mobile label Sep 3, 2017

@gopherbot

This comment has been minimized.

Copy link

commented Mar 16, 2018

Change https://golang.org/cl/101117 mentions this issue: cmd/gobind,cmd/gomobile: support the default GOPATH

@golang golang locked and limited conversation to collaborators Mar 26, 2019

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.