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

    • Windows
    • ce8874fc3 (dev), 47b879aa0 (dev)

      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.

       

        1. build.ninja
          3.85 MB
          Stefan Reinalter
        2. build.ninja
          3.85 MB
          Stefan Reinalter
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            alexandru.croitor Alexandru Croitor
            stefan_reinalter Stefan Reinalter
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes