-
Notifications
You must be signed in to change notification settings - Fork 920
Error cross-compiling for windows/386 using xgo #143
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
Comments
I will test this tool when I have time. |
@vcaesar interestingly I ended up trying to build build my app on a Windows machine and got the same error:
That was just |
If you just want to compile from windows to 32bit, please set
|
To get GOARCH=386 to compile from Ubuntu 16, I had to add the following to the top of zlib_util_c.h:
Unfortunately, now there's a linker error where it can't find libz. |
Same issue. Ubuntu 16.04. I have zlib1g-dev installed |
I've tried @virtuald code and I got
|
I will test it on Ubuntu 14.04. |
same proble with macos add one line to resove problem "cannot find zlib.h" then ,it can't find libz. can anyone add libz.a to cdeps/win64 ? i add two version of libz.a, but it does not work. |
replace zlib.h zconf.h and add libz.a to cdeps/win64 with the same version, this problem sovled. |
Please check your environment configuration. |
For anyone looking to cross compile from Ubuntu 18.04 to Windows using Mingw64 and still getting the zlib.h error. sudo apt install libz-mingw-w64-dev GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ go build -x ./ |
Not sure if this is a robotgo issue or an xgo issue but asking here just in case anyone can shine a light on what is going on.
Please see this xgo issue for info - karalabe/xgo#123
The text was updated successfully, but these errors were encountered: