Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-91448

Undefined resource symbols when linking app with a static Qt without qmake and CMake

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.0.1, 6.2.3, 6.3.2, 6.4.0 RC1
    • None
    • Windows

    Description

      When building Qt 6.0.1 into static libraries, the default resources for messagebox, styles, etc. are missing.

      More specifically, the resources compiled into the following files are missing:
      qrc_cursors.cpp.obj
      qrc_openglblacklists.cpp.obj
      qrc_qmessagebox.cpp.obj
      qrc_qstyle.cpp.obj
      qrc_qstyle1.cpp.obj

      Those files are not part of any .lib file produced by CMake/Ninja.

      I manually link these files into my application to resolve the corresponding linker errors, but I would really expect Qt 6 to handle this out-of-the-box.

       

      Attachments

        1. build.ninja
          3.85 MB
        2. build.ninja
          3.85 MB

        Issue Links

          Activity

            People

              qtbuildsystem Qt Build System Team
              stefan_reinalter Stefan Reinalter
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated: