Post
Topic
Board Altcoin Discussion
Re: [HOWTO] compile altcoin for windows on linux using mxe and mingw
by
IngerDev
on 20/01/2017, 20:43:31 UTC
Thanks, this worked really well! I wonder how difficult it would be to cross-compile for MacOS


Error:

/mnt/mxe/usr/i686-w64-mingw32.static/lib/libdb_cxx.a(os_pid.o):os_pid.c:(.text+0x25): undefined reference to `pthread_self'
collect2: error: ld returned 1 exit status
Makefile.Release:427: recipe for target 'release/blackcoin-qt.exe' failed
make: *** [release/blackcoin-qt.exe] Error 1

Thank you,

To fix this issue edit the .pro file and replace

Code:
windows:LIBS += -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luuid -lgdi32

with

Code:
windows:LIBS += -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luuid -lgdi32 -pthread

No, the Problem was that Berkley DB was not the correct Version, I had to downgrade it and then it works. Smiley