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。