qt-5.15.17-xp/README.md
2026-01-19 18:06:58 +02:00

1.4 KiB

compile qt 5.15.17 for xp 2026 tutorial

git clone this

run:

patch -p1 < qt5base-winxp-v5.patch

patch -p1 < qtspeech-winxp.patch

patch -p1 < qtwinextras-winxp.patch

patch -p1 < rtti-option.patch

if msvc build (ew):

patch -p1 < static-link.patch

patch -p1 < subsystem-version.patch

then run:

if normal build:

configure -opensource -confirm-license -platform win32-g++ -nomake tests -nomake examples -opengl desktop -no-avx -no-avx2 -no-avx512

if static build:

configure -opensource -confirm-license -platform win32-g++ -nomake tests -nomake examples -opengl desktop -no-avx -no-avx2 -no-avx512 -static

after that, run

mingw32-make -j4

-j4

is the number of threads btw so change it if u got more than 4, my poor i5 650 does not.

or, if msvc (ew)

nmake -j4

after that,

mingw32-make install

or

nmake install

and ur done wooho

dependencies:

if mingw:

mingw32 from https://wiki.qt.io/MinGW, i used https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/8.1.0/threads-posix/dwarf/i686-8.1.0-release-posix-dwarf-rt_v6-rev0.7z/download

cmake 3.22 x86

if msvc:

vs2017 with xp toolchain v141

win 8.1 sdk or win10 idfk i dont compile with msvc because of msvc being shit and doing stuff like c0000005 (my ram is bad)