1
如何在Ubuntu上构建Qt 5.7.0以交叉编译为Windows?如何构建Qt 5.7.0进行交叉编译?
我有这样的错误:
In file included from qt-everywhere-opensource-src-5.7.0/qtbase/include/QtCore/qt_windows.h:1:0,
from main.cpp:33:
qt-everywhere-opensource-src-5.7.0/qtbase/include/QtCore/../../src/corelib/global/qt_windows.h:61:21: fatal error: windows.h: No such file or directory
我的配置选项:
./configure -opensource -c++std c++11 -xplatform win32-g++ -device-option CROSS_COMPILE=i686-w64-mingw32- -device-option PKG_CONFIG=i686-w64-mingw32-pkg-config -force-pkg-config -prefix /opt/qt/qt-5.7.0-win32 -nomake examples
WINDOWS.H具有路径:/usr/i686-w64-mingw32/include/windows.h
注意:我不想使用MXE。