Solved --namespace option of rcc seems to be broken
-
If I pass the
--namespace
option to rcc, I get this output:bool qRegisterResourceData(int, const unsigned char *, const unsigned char *, const unsigned char *); bool qUnregisterResourceData(int, const unsigned char *, const unsigned char *, const unsigned char *); int qInitResources(); int qInitResources() { int version = 3; qRegisterResourceData (version, qt_resource_struct, qt_resource_name, qt_resource_data); return 1; } int qCleanupResources(); int qCleanupResources() { int version = 3; qUnregisterResourceData (version, qt_resource_struct, qt_resource_name, qt_resource_data); return 1; } namespace { struct initializer { initializer() { QT_RCC_MANGLE_NAMESPACE(qInitResources)(); } ~initializer() { QT_RCC_MANGLE_NAMESPACE(qCleanupResources)(); } } dummy; }
It still uses the
QT_RCC_MANGLE_NAMESPACE
macro so it doesn't compile.This seems like a bug to me. I'm using
rcc 5.13.2
. Has this been reported or fixed in a future version?There doesn't seem to be much of a point in using the option because all it does is reduce the output file size by an insignificant amount. That could be why it's broken, it's unused and untested.
-
@Kerndog73 said in --namespace option of rcc seems to be broken:
Has this been reported or fixed in a future version?
I don't know. You should check on Qt bug tracker: https://bugreports.qt.io/projects/QTBUG/issues/QTBUG-80648?filter=allopenissues
-
-
The issue has been fixed for 5.14.1