c++ - How to build Qt 5.7.0 for cross compilation? -


how build qt 5.7.0 on ubuntu cross compile windows?

i have error:

in file included qt-everywhere-opensource-src-5.7.0/qtbase/include/qtcore/qt_windows.h:1:0,              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 

my configure options:

./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 has path: /usr/i686-w64-mingw32/include/windows.h

note: don't want use mxe.

not sure if proper fix, seems qt tries build 1 of tools under activeqt (which windows-only) native.

here edited file:

qtactiveqt/src/tools/idc/idc.pro

and commented out 2 first lines, seemed fix issue.

(i have binfmt configured run .exe files through wine, may influence if tries run idc tool native tool)


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -