*still* having problems building Qt (static)
-
- Make sure that PATH includes paths to:
- the toolchain (eg, C:\qt\tools\mingw1120_64\bin)
- a Ninja (eg, C:\Program Files\ninja-win)
-
Create and enter the directory you want for your static build.
-
Use the following configure command:
C:/Qt/6.8.2/Src/configure.bat -prefix c:/qt_static/6.8.2 -static -static-runtime -release -skip qt3d -skip qt5compat -skip qtactiveqt -skip qtcharts -skip qtdatavis3d -skip qtdoc -skip qtgrpc -skip qtinsighttracker -skip qtmultimedia -skip qtgraphs -skip qtcharts -skip qtquick3d -skip qtquick3dphysics -skip qtquicktimeline -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebview -skip qtcoap -skip qtspeech -redo
(of course, you'll want to select your own "-skip" modules)
4. cmake --build . --parallel- cmake --install .
-
wrote on 23 Mar 2025, 16:26 last edited by
I'm sorry, but it's been too long ago. There have been so many changes in Qt since then, it very well may work now, but my procedure works correctly, so I haven't been motivated to experiment.
In fact, I don't think I'm even using github for my Qt source files any longer, but am obtaining them through the Qt maintenance tool. So, there are alternatives to my method.
21/22