Mercurial > hg > syntilista
changeset 260:2552756f2876
Update Qt5 win32 cross-build instructions.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 24 Dec 2019 05:15:09 +0200 |
parents | 14ed3a2500e6 |
children | f6a99b984b8e |
files | qt5-cross-build.txt |
diffstat | 1 files changed, 5 insertions(+), 33 deletions(-) [+] |
line wrap: on
line diff
--- a/qt5-cross-build.txt Tue Dec 24 05:14:48 2019 +0200 +++ b/qt5-cross-build.txt Tue Dec 24 05:15:09 2019 +0200 @@ -1,5 +1,5 @@ -# In Debian 9 -apt-get install gcc-mingw-w64 g++-mingw-w64 +# In Debian 9+ +apt-get install mingw-w64 # Clone Qt5 base git repo: @@ -7,47 +7,19 @@ cd qt5-src/ # Checkout desired version -git checkout 5.8 +git checkout 5.12 # Initialize subrepos, we need just qtbase ./init-repository -f --module-subset=qtbase -git checkout v5.8.0 +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.8 requires this Windows 10 -specific header file +# 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 - -############# -Stuff below is not relevant to Syntilista, just run build-win32.sh -############# - -# To cross-compile using qmake -/misc/packages/qt5-src/qtbase/bin/qmake -make - - -# The compiled exe requires DLL libraries ( Qt5Core.dll Qt5Gui.dll Qt5Widgets.dll -# ) etc. which can be found from the QT5 cross build directory. Copy them -# into your application (executable) directory. -/misc/packages/qt5-src/qtbase/bin/ - - -# And plugins, usually platforms/qwindows.dll and whatever you need, -# but it depends on your application. You will have to create the -# same subdirectories under your target application directory. - -mkdir -p $TGTDIR/platforms -cp /misc/packages/qt5-src/qtbase/plugins/platforms/qwindows.dll $TGTDIR/platforms/ - - -# Also libgcc and libstdc++ DLLs are needed, found from -/usr/lib/gcc/i686-w64-mingw32/6.3-win32/ - -# or so ..