annotate qt-cross-build.txt @ 310:8541509ff8a0 default tip

Fix verbose build echos.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 29 Feb 2024 21:49:20 +0200
parents abebda3ec9cd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
260
2552756f2876 Update Qt5 win32 cross-build instructions.
Matti Hamalainen <ccr@tnsp.org>
parents: 85
diff changeset
1 # In Debian 9+
307
093f92344443 Update cross-building instructions a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 289
diff changeset
2 apt-get install mingw-w64 libz-mingw-w64-dev
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
307
093f92344443 Update cross-building instructions a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 289
diff changeset
5 # Clone Qt6 base git repo:
093f92344443 Update cross-building instructions a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 289
diff changeset
6 git clone https://code.qt.io/qt/qt5.git qt6-src
093f92344443 Update cross-building instructions a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 289
diff changeset
7 cd qt6-src/
27
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
307
093f92344443 Update cross-building instructions a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 289
diff changeset
10 git checkout v6.4.3
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
0ade5c3e424c Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14
308
abebda3ec9cd Adjust.
Matti Hamalainen <ccr@tnsp.org>
parents: 307
diff changeset
15 # Create build directory and configure
abebda3ec9cd Adjust.
Matti Hamalainen <ccr@tnsp.org>
parents: 307
diff changeset
16 mkdir ../qt6-build && cd ../qt6-build && \
307
093f92344443 Update cross-building instructions a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 289
diff changeset
17 cmake -GNinja -DCMAKE_BUILD_TYPE=Release \
093f92344443 Update cross-building instructions a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 289
diff changeset
18 -DQT_FEATURE_vulkan=OFF \
093f92344443 Update cross-building instructions a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 289
diff changeset
19 -DQT_NO_PACKAGE_VERSION_CHECK=TRUE \
093f92344443 Update cross-building instructions a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 289
diff changeset
20 -DCMAKE_TOOLCHAIN_FILE=/path/to/debian-i686-w64-mingw32.cmake \
093f92344443 Update cross-building instructions a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 289
diff changeset
21 ../qt6-src/
27
0ade5c3e424c Some loose instructions for cross-building for Windows on Debian 9.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22
307
093f92344443 Update cross-building instructions a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 289
diff changeset
23 # Whether you need to disable Vulkan or version check depend on .. things.
093f92344443 Update cross-building instructions a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 289
diff changeset
24 # Generally the Qt version on the "host" e.g. Linux should match the
093f92344443 Update cross-building instructions a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 289
diff changeset
25 # version you are cross-building, so 6.4.3 on both. In my case I have
093f92344443 Update cross-building instructions a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 289
diff changeset
26 # 6.4.2 on Debian host and this works.
093f92344443 Update cross-building instructions a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 289
diff changeset
27
093f92344443 Update cross-building instructions a bit.
Matti Hamalainen <ccr@tnsp.org>
parents: 289
diff changeset
28 cmake --build . --parallel