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

qt5_add_big_resources does not work with QT_NAMESPACE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.15.5
    • 5.14.2
    • Build System: CMake
    • None
    • All
    • 29b41299aa7d36b0ce0decda6c9e3bc25bd236e2 (qt/tqtc-qtbase/5.15)

      If you use Qt built with -qtnamespace then qt5_add_big_resources fails to link properly. The qrc_${outfilename}tmp.cpp file generated by rcc expects QT_NAMESPACE to be defined, but it isn't so the forward declarations are broken.
      It can be fixed by making the rcc_object_${outfilename} library depend on Qt5::Core, by adding the line:

      target_link_libraries(rcc_object_${outfilename} PRIVATE Qt5::Core)

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            semlanik Alexey Edelev
            patstew Patrick Stewart
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes