英文:
gomobile bind hello error
问题
Go 1.5和1.6都是使用gvm进行新安装的,我正在尝试创建一个基本的Hello World示例的Android绑定。
我在一台旧的32位笔记本电脑上使用Ubuntu 14.4长期支持版本来尝试新的东西。在安装了gomobile和gomobile init之后,一切都正常。可以构建和安装。Android SDK是新的并且已正确设置。我只是找不到关于这个错误的任何信息。
gomobile bind hello
> gomobile: loadExportData failed go install -p=2
> -pkgdir=/home/mrlarge/.gvm/pkgsets/go1.6/global/pkg/gomobile/pkg_android_amd64
> -tags="" -gcflags=-shared -ldflags=-shared hello failed: exit status 2
hello
/home/mrlarge/.gvm/gos/go1.6/pkg/tool/linux_386/link: -shared and -buildmode=pie are incompatible
附注:抱歉,顶部的部分可能被删除了,可能是因为触摸板出错导致的。
英文:
Go 1.5 and 1.6 both new installs with gvm, I'm trying to create a android binding of the basic hello world example.
Ubuntu 14.4 long support on a old 32bit laptop i use for trying new things. After getting gomobile and gomobile init everything works. can build and install. The android sdk is new and properly set. I just can't find anything about the error.
gomobile bind hello
> gomobile: loadExportData failed go install -p=2
> -pkgdir=/home/mrlarge/.gvm/pkgsets/go1.6/global/pkg/gomobile/pkg_android_amd64
> -tags="" -gcflags=-shared -ldflags=-shared hello failed: exit status 2
hello
/home/mrlarge/.gvm/gos/go1.6/pkg/tool/linux_386/link: -shared and -buildmode=pie are incompatible
P.s. Sorry the top part must of got deleted, Sleepy touchpad error i suppose..
答案1
得分: 1
在go1.6.2版本中出现了一个错误,导致我降级到1.6版本后问题得到解决。已经有人报告了这个问题。
英文:
It was an error in go1.6.2 that caused it i downgraded to 1.6 and everything was fixed. Its reported
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论