Deploying Qt5 for cross compiling under Linux for Windows
-
wrote on 9 Jan 2015, 14:44 last edited by
How deploy Qt5 for cross compiling under Linux for Windows?
I tried to do so:
@
./configure -xplatform win32-g++ -prefix /opt/qt5win32 -device-option CROSS_COMPILE=i686-w64-mingw32- -nomake examples -nomake tools -continue -qt-sql-sqlite
@but as a result of this error pops up here:
@
fatal error: windows.h: No such file or directory
@ -
wrote on 10 Jan 2015, 09:45 last edited by
Your linux distro?
You must have installed mingw runtime package . E.g. 'mingw-w64-x86-64-dev' or 'mingw-w64-i686-dev' on Ubuntu.
-
wrote on 10 Jan 2015, 14:16 last edited by
ArchLinux
mingw installed. And there is "windows.h"
-
wrote on 10 Jan 2015, 17:37 last edited by
bq. ArchLinux
You must to install mingw-w64-headers package, who contains win32 includes.
And if you use x86_64 arch, you can use additional repo for install precompiled mingw build of Qt.
@[mingw-w64]
SigLevel = Optional TrustAll
Server = http://downloads.sourceforge.net/project/mingw-w64-archlinux/$arch
@ -
wrote on 10 Jan 2015, 20:51 last edited by
mingw-w64-headers installed
I installed mingw-w64-qt5-base-opengl from http://downloads.sourceforge.net/project/mingw-w64-archlinux/$arch
What I must write after CROSS_COMPILE that compiling start?
-
wrote on 14 Jan 2015, 13:09 last edited by
I added path to "include" in qmake.conf.
Now appear new mistakes:
@
228: 50: error: no declaration «NotDouble_Mask» in this scope
inline bool isDouble () const {return (tag & NotDouble_Mask)! = NotDouble_Mask; }
^
../../include/QtQml/5.4.0/QtQml/private/../../../../../src/qml/jsruntime/qv4value_p.h: In member function «bool QV4 :: Value :: isNumber () const »:
../../include/QtQml/5.4.0/QtQml/private/../../../../../src/qml/jsruntime/qv4value_p.h:229:74: error: no Declaration «NotDouble_Mask» in this scope
inline bool isNumber () const {return tag == _Integer_Type || (tag & NotDouble_Mask)! = NotDouble_Mask; }...
@ -
Hi,
What's the error message ?
-
wrote on 15 Jan 2015, 20:22 last edited by
The error occurred after the start of operation make
2/8