# HG changeset patch # User Matti Hamalainen # Date 1683621898 -10800 # Node ID 00a6cbdd3281171c89e6a60b166d63f8e2f0f8ab # Parent 6fd31a4308f5882c3bb7a25b7cf50ccbd355fe52 Rename. diff -r 6fd31a4308f5 -r 00a6cbdd3281 qt-cross-build.txt --- /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 diff -r 6fd31a4308f5 -r 00a6cbdd3281 qt5-cross-build.txt --- a/qt5-cross-build.txt Tue May 09 11:40:49 2023 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ -# 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