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/cmd/gomobile: bind returns “no exported names in the package command-line-arguments” #39573

Closed
068089dy opened this issue Jun 13, 2020 · 2 comments
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile
Milestone

Comments

@068089dy
Copy link

068089dy commented Jun 13, 2020

$ gomobile bind -target=android mobile1.go 
C:\Users\ding\go\bin\gomobile.exe: C:\Users\ding\go\bin\gobind.exe -lang=go,java -outdir=C:\Users\ding\AppData\Local\Temp\gomobile-work-767461627 command-line-arguments failed: exit status 1
no exported names in the package "command-line-arguments"
no exported names in the package "command-line-arguments"
no exported names in the package "command-line-arguments"
no exported names in the package "command-line-arguments"
$ gomobile version
gomobile version +4c31acb Sun Mar 29 12:56:38 2020 +0000 (android); androidSDK=
$ go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\ding\AppData\Local\go-build
set GOENV=C:\Users\ding\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\ding\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=F:\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=F:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\ding\AppData\Local\Temp\go-build194312410=/tmp/go-build -gno-record-gcc-switches
@odeke-em odeke-em changed the title [gomobile] no exported names in the package "command-line-arguments" x/mobile/gomobile: bind returns “no exported names in the package command-line-arguments” Jun 14, 2020
@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Jun 14, 2020
@gopherbot gopherbot added this to the Unreleased milestone Jun 14, 2020
@odeke-em odeke-em changed the title x/mobile/gomobile: bind returns “no exported names in the package command-line-arguments” x/mobile/cmd/gomobile: bind returns “no exported names in the package command-line-arguments” Jun 14, 2020
@petabyt
Copy link

petabyt commented Jun 21, 2020

@068089dy Did you find a fix for this?
Having the same issue on Debian.

@apinprastya
Copy link

It is not working when compile a file (something.go), it should compile a folder of the package.

gomobile bind /path/folder/of/the/package

@golang golang locked and limited conversation to collaborators Jun 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile
Projects
None yet
Development

No branches or pull requests

4 participants