Mercurial > hg > syntilista
annotate 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 |
rev | line source |
---|---|
260
2552756f2876
Update Qt5 win32 cross-build instructions.
Matti Hamalainen <ccr@tnsp.org>
parents:
85
diff
changeset
|
1 # In Debian 9+ |
2552756f2876
Update Qt5 win32 cross-build instructions.
Matti Hamalainen <ccr@tnsp.org>
parents:
85
diff
changeset
|
2 apt-get install mingw-w64 |
27
0ade5c3e424c
Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
3 |
0ade5c3e424c
Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
4 |
0ade5c3e424c
Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
5 # Clone Qt5 base git repo: |
0ade5c3e424c
Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
6 git clone https://code.qt.io/qt/qt5.git qt5-src |
0ade5c3e424c
Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
7 cd qt5-src/ |
0ade5c3e424c
Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
8 |
0ade5c3e424c
Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
9 # Checkout desired version |
260
2552756f2876
Update Qt5 win32 cross-build instructions.
Matti Hamalainen <ccr@tnsp.org>
parents:
85
diff
changeset
|
10 git checkout 5.12 |
27
0ade5c3e424c
Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
11 |
0ade5c3e424c
Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
12 # Initialize subrepos, we need just qtbase |
0ade5c3e424c
Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
13 ./init-repository -f --module-subset=qtbase |
260
2552756f2876
Update Qt5 win32 cross-build instructions.
Matti Hamalainen <ccr@tnsp.org>
parents:
85
diff
changeset
|
14 git checkout v5.12.6 |
27
0ade5c3e424c
Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
15 git submodule update |
0ade5c3e424c
Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
16 |
0ade5c3e424c
Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
17 # Configure for cross-compilation |
0ade5c3e424c
Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
18 ./configure -release -opensource -nomake examples -nomake tests -xplatform win32-g++ -device-option CROSS_COMPILE=i686-w64-mingw32- -opengl desktop |
0ade5c3e424c
Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
19 |
260
2552756f2876
Update Qt5 win32 cross-build instructions.
Matti Hamalainen <ccr@tnsp.org>
parents:
85
diff
changeset
|
20 # Qt5 requires this Windows 10 -specific header file |
27
0ade5c3e424c
Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
21 wget https://raw.githubusercontent.com/tpn/winsdk-10/master/Include/10.0.10240.0/um/UIViewSettingsInterop.h |
0ade5c3e424c
Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
22 -O /usr/i686-w64-mingw32/include/ |
0ade5c3e424c
Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
23 |
0ade5c3e424c
Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
24 # Build it |
0ade5c3e424c
Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff
changeset
|
25 make -j8 |