Skip to content

Commit 46aaa45

Browse files
committed
Revert "build, qt: Fix Windows cross-compiling with Qt 5.15"
This reverts commit c4be512.
1 parent bc48e30 commit 46aaa45

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

ci/test/05_before_script.sh

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ fi
2525
if [ -n "$XCODE_VERSION" ] && [ -f "$OSX_SDK_PATH" ]; then
2626
DOCKER_EXEC tar -C "${DEPENDS_DIR}/SDKs" -xf "$OSX_SDK_PATH"
2727
fi
28+
if [[ $HOST = *-mingw32 ]]; then
29+
DOCKER_EXEC update-alternatives --set $HOST-g++ \$\(which $HOST-g++-posix\)
30+
fi
2831
if [ -z "$NO_DEPENDS" ]; then
2932
if [[ $DOCKER_NAME_TAG == centos* ]]; then
3033
# CentOS has problems building the depends if the config shell is not explicitly set

depends/packages/qt.mk

-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ $(package)_config_opts_mingw32 += -no-dbus
164164
$(package)_config_opts_mingw32 += -no-freetype
165165
$(package)_config_opts_mingw32 += -xplatform win32-g++
166166
$(package)_config_opts_mingw32 += "QMAKE_CFLAGS = '$($(package)_cflags) $($(package)_cppflags)'"
167-
$(package)_config_opts_mingw32 += "QMAKE_CXX = '$($(package)_cxx)'"
168167
$(package)_config_opts_mingw32 += "QMAKE_CXXFLAGS = '$($(package)_cflags) $($(package)_cppflags)'"
169168
$(package)_config_opts_mingw32 += "QMAKE_LFLAGS = '$($(package)_ldflags)'"
170169
$(package)_config_opts_mingw32 += -device-option CROSS_COMPILE="$(host)-"

doc/build-windows.md

+4-7
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,13 @@ Acquire the source in the usual way:
4646
## Building for 64-bit Windows
4747

4848
The first step is to install the mingw-w64 cross-compilation tool chain:
49-
- on modern systems (Ubuntu 21.04 Hirsute Hippo or newer, Debian 11 Bullseye or newer):
5049

51-
```sh
52-
sudo apt install g++-mingw-w64-x86-64-posix
53-
```
50+
sudo apt install g++-mingw-w64-x86-64
5451

55-
- on older systems:
52+
Next, set the default `mingw32 g++` compiler option to POSIX:
5653

57-
```sh
58-
sudo apt install g++-mingw-w64-x86-64
54+
```
55+
sudo update-alternatives --config x86_64-w64-mingw32-g++
5956
```
6057

6158
After running the above command, you should see output similar to that below.

0 commit comments

Comments
 (0)