Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Error Building 5.13.1 Static due to qttools using g++ in mingw64



  • When building the static version of QT 5.13.1 using g++ and mingw64, I used the following commands :
    call C:\Qt\qt-src-5.13.1\configure.bat -static -platform win32-g++ -c++std c++14 -prefix !install_dir! ^
    -release -opensource -confirm-license -no-warnings-are-errors -opengl desktop ^
    -make libs -nomake tests -nomake examples -nomake tools -no-incredibuild-xge -openssl -no-sql-sqlite ^
    -no-libudev -no-xkbcommon -no-evdev -no-pch ^
    -qt-libjpeg -qt-libpng -zlib -qt-freetype -qt-pcre -qt-harfbuzz ^
    -skip qtwebengine -skip qtwebchannel -skip qtwebglplugin -skip qtwebsockets -skip qtwebview -skip qtlocation ^
    -skip qtvirtualkeyboard -skip qttranslations -skip qtspeech -skip qtgamepad -skip qtxmlpatterns ^
    -skip qtpurchasing -skip qtnetworkauth ^
    -skip qtsensors -skip qtscript -skip qtremoteobjects -skip qtdoc ^
    -skip qtmultimedia -skip qtmacextras -skip qtandroidextras -skip qtx11extras ^
    -verbose
    mingw32-make --debug=v
    However, during make, g++ would attempt to build using the clang library libclang.a. Make then generates several hundred error lines of "unresolved reference".
    Adding -skip qttools to the configure.bat command, qt would successfully build.


  • Qt Champions 2019

    @BK_Broiler If you don't need the tools then don't build them. Otherwise I guess you need to satisfy the requirements like CLang (QtCreator uses it for example).


Log in to reply