-
Notifications
You must be signed in to change notification settings - Fork 651
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
Go get fails on linux_amd64 #180
Comments
Trying to run the example here after the failed |
What version of Go? |
|
how did you install the gcc tools ? what linux are you on ? |
The binaries might not be built with PIC. I'll need to see how to get cmake to do it, if I didn't already... |
@joeblew99 Through my distro's package manager. I'm using Arch Linux, GCC is version 6.1.1. |
Ok. I am on Ubuntu and used the package manager on Ubuntu. I am wondering if I can help and land with the cross built. If others like me would compile everything I could also maybe help with the matching of the c code to the golang code. |
xgo works for macOS, but not Windows (see karalabe/xgo#55). You need the latest mingw-w64 (5.0rc2) which hasn't yet been released. |
https://packages.debian.org/search?keywords=mingw-w64 Debian experimental looks to have the mingw-w64 (5.0rc2). Maybe worth trying in a VM ? |
Ok thanks Emerson. |
@andlabs How did you build these |
Simply with
on Ubuntu 16.04. I forget how or if I specified PIC. |
@andlabs I can confirm that it works if I add -fPIC to libui's compiler instructions in CMakeLists.txt. Could you recompile and upload? |
Pinging @andlabs in case you missed the last comment. |
I'll look into it soon. |
Should I install mingw-w64 (5.0rc2) and set CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ before |
Yes. |
On Archlinux. installed gtk3. Go
install mingw-w64-crt-git-5.0.rc2.r114.g563731c-1
get ui
|
You must also set |
The same issue for me on Ubuntu GNOME 16.10. Not fixed yet. |
What version of MinGW-w64 does Ubuntu 16.10 come with? |
I was just building for Linux, maybe MinGW is not required? |
Do you want to build Linux-native programs or Windows-native programs? |
Linux-native (Sorry for responding so late. I was traveling these days.) |
Then your |
GOARCH="amd64" |
Your environment is correct for a Linux build. I'm not sure why it's trying to build the Windows one... |
Maybe building it manually instead of using go get can fix that? |
Closing this because I no longer have the original issue. |
Get the following when trying to go get:
LANG=C
merely used to have the errors in English.The text was updated successfully, but these errors were encountered: