Mercurial > hg > syntilista
comparison qt5-cross-build.txt @ 260:2552756f2876
Update Qt5 win32 cross-build instructions.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 24 Dec 2019 05:15:09 +0200 |
parents | 30babce5c4be |
children |
comparison
equal
deleted
inserted
replaced
259:14ed3a2500e6 | 260:2552756f2876 |
---|---|
1 # In Debian 9 | 1 # In Debian 9+ |
2 apt-get install gcc-mingw-w64 g++-mingw-w64 | 2 apt-get install mingw-w64 |
3 | 3 |
4 | 4 |
5 # Clone Qt5 base git repo: | 5 # Clone Qt5 base git repo: |
6 git clone https://code.qt.io/qt/qt5.git qt5-src | 6 git clone https://code.qt.io/qt/qt5.git qt5-src |
7 cd qt5-src/ | 7 cd qt5-src/ |
8 | 8 |
9 # Checkout desired version | 9 # Checkout desired version |
10 git checkout 5.8 | 10 git checkout 5.12 |
11 | 11 |
12 # Initialize subrepos, we need just qtbase | 12 # Initialize subrepos, we need just qtbase |
13 ./init-repository -f --module-subset=qtbase | 13 ./init-repository -f --module-subset=qtbase |
14 git checkout v5.8.0 | 14 git checkout v5.12.6 |
15 git submodule update | 15 git submodule update |
16 | 16 |
17 # Configure for cross-compilation | 17 # Configure for cross-compilation |
18 ./configure -release -opensource -nomake examples -nomake tests -xplatform win32-g++ -device-option CROSS_COMPILE=i686-w64-mingw32- -opengl desktop | 18 ./configure -release -opensource -nomake examples -nomake tests -xplatform win32-g++ -device-option CROSS_COMPILE=i686-w64-mingw32- -opengl desktop |
19 | 19 |
20 # Qt5.8 requires this Windows 10 -specific header file | 20 # Qt5 requires this Windows 10 -specific header file |
21 wget https://raw.githubusercontent.com/tpn/winsdk-10/master/Include/10.0.10240.0/um/UIViewSettingsInterop.h | 21 wget https://raw.githubusercontent.com/tpn/winsdk-10/master/Include/10.0.10240.0/um/UIViewSettingsInterop.h |
22 -O /usr/i686-w64-mingw32/include/ | 22 -O /usr/i686-w64-mingw32/include/ |
23 | 23 |
24 # Build it | 24 # Build it |
25 make -j8 | 25 make -j8 |
26 | |
27 ############# | |
28 Stuff below is not relevant to Syntilista, just run build-win32.sh | |
29 ############# | |
30 | |
31 # To cross-compile using qmake | |
32 /misc/packages/qt5-src/qtbase/bin/qmake | |
33 make | |
34 | |
35 | |
36 # The compiled exe requires DLL libraries ( Qt5Core.dll Qt5Gui.dll Qt5Widgets.dll | |
37 # ) etc. which can be found from the QT5 cross build directory. Copy them | |
38 # into your application (executable) directory. | |
39 /misc/packages/qt5-src/qtbase/bin/ | |
40 | |
41 | |
42 # And plugins, usually platforms/qwindows.dll and whatever you need, | |
43 # but it depends on your application. You will have to create the | |
44 # same subdirectories under your target application directory. | |
45 | |
46 mkdir -p $TGTDIR/platforms | |
47 cp /misc/packages/qt5-src/qtbase/plugins/platforms/qwindows.dll $TGTDIR/platforms/ | |
48 | |
49 | |
50 # Also libgcc and libstdc++ DLLs are needed, found from | |
51 /usr/lib/gcc/i686-w64-mingw32/6.3-win32/ | |
52 | |
53 # or so .. |