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. Building project with 6.0.1 static build error
QtWS25 Last Chance

Building project with 6.0.1 static build error

Scheduled Pinned Locked Moved Solved Installation and Deployment
3 Posts 2 Posters 571 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.
  • H Offline
    H Offline
    huderlem
    wrote on last edited by
    #1

    On Windows 10, I have successfully built static Qt 6.0.1 using the instructions here: https://doc.qt.io/qt-6/windows-building.html

    These are the commands I used when I created the Static 6.0.1 build. All three commands ran without any errors:

    configure.bat -static -release -no-pch -platform win32-g++ -prefix %QtDir% -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-freetype -opengl desktop -no-openssl -opensource -confirm-license -make libs -nomake tools -nomake examples -nomake tests
    cmake --build . --parallel
    cmake --install .
    

    However, in Qt Creator, my Static 6.0.1 kit is failing to build my project, which successfully builds with the dynamic 6.0.1 kit. I'm getting the following error during compile (it goes on for a lot further than what I've posted, but it all seems to be related to the same thing):

    D:\Qt6\Static\6.0.1\plugins\qmltooling\libqmldbg_debugger.a(qqmlenginedebugservice.cpp.obj):qqmlenginedebugservice.cpp:(.text$_ZN26QQmlEngineDebugServiceImpl14processMessageERK10QByteArray+0x3e): undefined reference to `QPacket::QPacket(int, QByteArray const&)'
    D:\Qt6\Static\6.0.1\plugins\qmltooling\libqmldbg_debugger.a(qqmlenginedebugservice.cpp.obj):qqmlenginedebugservice.cpp:(.text$_ZN26QQmlEngineDebugServiceImpl14processMessageERK10QByteArray+0x87): undefined reference to `QPacket::QPacket(int)'
    D:\Qt6\Static\6.0.1\plugins\qmltooling\libqmldbg_debugger.a(qqmlenginedebugservice.cpp.obj):qqmlenginedebugservice.cpp:(.text$_ZN26QQmlEngineDebugServiceImpl14processMessageERK10QByteArray+0x303): undefined reference to `QPacket::data() const'
    D:\Qt6\Static\6.0.1\plugins\qmltooling\libqmldbg_debugger.a(qqmlenginedebugservice.cpp.obj):qqmlenginedebugservice.cpp:(.text$_ZN26QQmlEngineDebugServiceImpl15propertyChangedEiiRK13QMetaPropertyRK8QVariant+0x35): undefined reference to `QPacket::QPacket(int)'
    D:\Qt6\Static\6.0.1\plugins\qmltooling\libqmldbg_debugger.a(qqmlenginedebugservice.cpp.obj):qqmlenginedebugservice.cpp
    

    Here is the kit definition:

    f86b177f-695c-4664-93da-c1ce60aaa1d9-image.png

    I'm not sure if this is helpful, but this is the contents of my static build's plugin/qmltooling directory:
    07d84e52-72b8-44f8-ab90-ea3472cc86d4-image.png

    1 Reply Last reply
    0
    • H Offline
      H Offline
      huderlem
      wrote on last edited by
      #2

      This issue resolved itself. I think there was some build caching going on behind the scenes. I created a test project using the same static Kit, and that succeeded in building and running. When I switched back to my main project, it succeeded.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        thuongshoo
        wrote on last edited by
        #3

        I'm facing the same problem with v6.1.0-beta3. Unfortunately, example project cannot be compiled. I tried to add libQt6PacketProtocol.a but the issue still remains

        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