-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Ubuntu Jammy(22.04) and Debian 11 fail to build zcash for Windows #6193
Comments
This is due to On my Debian 11 system (with MinGW x86-64 libs installed), adding
|
same problem |
any other solution? |
I've been able to cross build successfully on Ubuntu 22.04 by tweaking @@ -2,6 +2,7 @@ mingw32_CFLAGS=-pipe
mingw32_CXXFLAGS=$(mingw32_CFLAGS) -isystem $(host_prefix)/include/c++/v1
mingw32_LDFLAGS?=-fuse-ld=lld
+mingw32_LDFLAGS+=-L/usr/lib/gcc/x86_64-w64-mingw32/$(shell x86_64-w64-mingw32-gcc -dumpversion)
mingw32_release_CFLAGS=-O3
mingw32_release_CXXFLAGS=$(mingw32_release_CFLAGS) Not sure if this is worth of creating a pull request, but you can try adding that one line manually. Use usual |
@mdr0id The tweak described above works for Debian 11 as well, tested on |
Testing cross compile targets for the new Ubuntu 22.04, it was notice that zcash doesn't compile as expected using:
HOST=x86_64-w64-mingw32 ./zcutil/build.sh -j16
Error:
The text was updated successfully, but these errors were encountered: