Linux上的QT编译:使用mxe / mingw / Linux,Debian进行交叉编译失败

时间:2017-01-05 13:09:17

标签: c++ linux qt mingw32 mxe

我无法编译Windows Wallet,它每次都显示我这个错误: 我错过了什么? 我正在使用Debian。

源代码:https://github.com/rat4/blackcoin

compile-gtc.sh的内容:

#!/bin/bash
MXE_INCLUDE_PATH=/mnt/mxe/usr/i686-w64-mingw32.static/include
MXE_LIB_PATH=/mnt/mxe/usr/i686-w64-mingw32.static/lib

i686-w64-mingw32.static-qmake-qt5 \
    BOOST_LIB_SUFFIX=-mt \
    BOOST_THREAD_LIB_SUFFIX=_win32-mt \
    BOOST_INCLUDE_PATH=$MXE_INCLUDE_PATH/boost \
    BOOST_LIB_PATH=$MXE_LIB_PATH \
    OPENSSL_INCLUDE_PATH=$MXE_INCLUDE_PATH/openssl \
    OPENSSL_LIB_PATH=$MXE_LIB_PATH \
    BDB_INCLUDE_PATH=$MXE_INCLUDE_PATH \
    BDB_LIB_PATH=$MXE_LIB_PATH \
    MINIUPNPC_INCLUDE_PATH=$MXE_INCLUDE_PATH \
    MINIUPNPC_LIB_PATH=$MXE_LIB_PATH \
    QMAKE_LRELEASE=/mnt/mxe/usr/i686-w64-mingw32.static/qt5/bin/lrelease blackcoin-qt.pro

make -f Makefile.Release

几分钟后我开始./compile-gtc.sh我收到了这个错误:

  

/mnt/mxe/usr/i686-w64-mingw32.static/lib/libdb_cxx.a(os_pid.o):os_pid.c :(文本+ 0x25):   对'pthread_self'的未定义引用collect2:错误:ld返回1   退出状态Makefile.Release:427:目标配方   '释放/ blackcoin-qt.exe'失败了:*** [release / blackcoin-qt.exe]   错误1

谢谢,

0 个答案:

没有答案