Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Error Building 5.13.1 Static due to qttools using g++ in mingw64
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 259 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BK_Broiler
    wrote on last edited by
    #1

    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.

    jsulmJ 1 Reply Last reply
    0
    • B BK_Broiler

      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.

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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).

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved