Skip to content

Instantly share code, notes, and snippets.

@oxycoder
Last active May 25, 2024 01:15
Show Gist options
  • Save oxycoder/e22367a3766b080114977c497358658c to your computer and use it in GitHub Desktop.
Save oxycoder/e22367a3766b080114977c497358658c to your computer and use it in GitHub Desktop.
Build QT6 static with Visual stuio 2022

Require Tools

  • Visual studio 2022
  • Perl (Added to windows PATH)
  • CMake (Added to windows PATH)
  • Ninja (Added to windows PATH)
  • Postgresql LIB (Added to windows PATH)

Build command:


..\qt5\configure.bat -prefix "D:\qt" -platform win32-msvc -debug-and-release -optimize-size -static-runtime -static -DQT_NO_EXCEPTIONS=0 -opensource -icu -opengl desktop -confirm-license -qt-zlib -qt-libjpeg -qt-libpng -qt-freetype -qt-tiff -qt-webp -qt-pcre -sql-psql -no-openssl -nomake tests -nomake examples -no-feature-accessibility -no-feature-appstore-compliant -no-feature-gssapi -no-feature-itemmodeltester -no-feature-testlib_selfcover -no-feature-tuiotouch -no-feature-valgrind -no-feature-lcdnumber -no-harfbuzz -skip qt3d -skip qtactiveqt -skip qtcanvas3d -skip qtconnectivity -skip qtdoc -skip qtcoap -skip qtdatavis3d -skip qtgamepad -skip qtlottie -skip qtlocation -skip qtmqtt -skip qtopcua -skip qtserialbus -skip qtserialport -skip qtpositioning -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtquicktimeline -skip qtquick3d -skip qtgraphs -skip qtquick3dphysics -skip qtremoteobjects -skip qtvirtualkeyboard -skip qtscxml -skip qtsensors -skip qtwayland -skip qtpositioning -skip qtwebchannel -skip qtwebengine -skip qtconnectivity -skip qtwebview -skip qdoc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment