Mercurial > hg > syntilista
view qt5-cross-build.txt @ 268:7276fe5efff6
Improve build system.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 25 Feb 2022 15:31:21 +0200 |
parents | 2552756f2876 |
children |
line wrap: on
line source
# 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