Mercurial > hg > syntilista
diff qt-cross-build.txt @ 289:00a6cbdd3281
Rename.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 09 May 2023 11:44:58 +0300 |
parents | qt5-cross-build.txt@2552756f2876 |
children | 093f92344443 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qt-cross-build.txt Tue May 09 11:44:58 2023 +0300 @@ -0,0 +1,25 @@ +# In Debian 9+ +apt-get install mingw-w64 + + +# Clone Qt5 base git repo: +git clone https://code.qt.io/qt/qt5.git qt5-src +cd qt5-src/ + +# Checkout desired version +git checkout 5.12 + +# Initialize subrepos, we need just qtbase +./init-repository -f --module-subset=qtbase +git checkout v5.12.6 +git submodule update + +# Configure for cross-compilation +./configure -release -opensource -nomake examples -nomake tests -xplatform win32-g++ -device-option CROSS_COMPILE=i686-w64-mingw32- -opengl desktop + +# Qt5 requires this Windows 10 -specific header file +wget https://raw.githubusercontent.com/tpn/winsdk-10/master/Include/10.0.10240.0/um/UIViewSettingsInterop.h + -O /usr/i686-w64-mingw32/include/ + +# Build it +make -j8