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

qt5_add_big_resources does not work with QT_NAMESPACE

    XMLWordPrintable

Details

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

    Description

      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)

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes