gomobile绑定hello错误

huangapple go评论81阅读模式
英文:

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

huangapple
  • 本文由 发表于 2016年5月1日 12:26:28
  • 转载请务必保留本文链接:https://go.coder-hub.com/36963045.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定