Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.14.2
-
None
-
-
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
- relates to
-
QTBUG-85620 qt_add_big_resources doesn't work with namespace builds
- Closed