Unknow error compiling with Qt5.5.0 on OS X
-
Hi Guys...
I have a project developed with Qt 5.4.2 and with this Qt version work fine.
Trying to compile the sae code with Qt 5.5.0 I got this errors..
@In file included from ../adviser/main.cpp:1:
In file included from ../adviser/system/System.h:4:
In file included from ../../../Qt/5.5/clang_64/lib/QtQuick.framework/Headers/QQuickItem:1:
In file included from ../../../Qt/5.5/clang_64/lib/QtQuick.framework/Headers/qquickitem.h:38:
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:101:5: error: use of undeclared identifier 'QVarLengthArray'
QML_GETTYPENAMES
^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:85:5: note: expanded from macro 'QML_GETTYPENAMES'
QVarLengthArray<char,48> pointerName(nameLen+2);
^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:101:5: error: expected '(' for function-style cast or type construction
QML_GETTYPENAMES
^~~~~~~~~~~~~~~~
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:85:25: note: expanded from macro 'QML_GETTYPENAMES'
QVarLengthArray<char,48> pointerName(nameLen+2);
~~~~~~~~~~~^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:101:5: error: use of undeclared identifier 'pointerName'
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:85:30: note: expanded from macro 'QML_GETTYPENAMES'
QVarLengthArray<char,48> pointerName(nameLen+2);
^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:101:5: error: use of undeclared identifier 'pointerName'
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:86:12: note: expanded from macro 'QML_GETTYPENAMES'
memcpy(pointerName.data(), className, size_t(nameLen));
^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:101:5: error: use of undeclared identifier 'pointerName'
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:87:5: note: expanded from macro 'QML_GETTYPENAMES'
pointerName[nameLen] = '*';
^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:101:5: error: use of undeclared identifier 'pointerName'
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:88:5: note: expanded from macro 'QML_GETTYPENAMES'
pointerName[nameLen+1] = '\0';
^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:101:5: error: use of undeclared identifier 'QVarLengthArray'
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:90:5: note: expanded from macro 'QML_GETTYPENAMES'
QVarLengthArray<char,64> listName(listLen + nameLen + 2);
^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:101:5: error: expected '(' for function-style cast or type construction
QML_GETTYPENAMES
^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:90:25: note: expanded from macro 'QML_GETTYPENAMES'
QVarLengthArray<char,64> listName(listLen + nameLen + 2);
~~~~^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:101:5: error: use of undeclared identifier 'listName'
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:90:30: note: expanded from macro 'QML_GETTYPENAMES'
QVarLengthArray<char,64> listName(listLen + nameLen + 2);
^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:101:5: error: use of undeclared identifier 'listName'
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:91:12: note: expanded from macro 'QML_GETTYPENAMES'
memcpy(listName.data(), "QQmlListProperty<", size_t(listLen));
^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:101:5: error: use of undeclared identifier 'listName'
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:92:12: note: expanded from macro 'QML_GETTYPENAMES'
memcpy(listName.data()+listLen, className, size_t(nameLen));
^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:101:5: error: use of undeclared identifier 'listName'
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:93:5: note: expanded from macro 'QML_GETTYPENAMES'
listName[listLen+nameLen] = '>';
^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:101:5: error: use of undeclared identifier 'listName'
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:94:5: note: expanded from macro 'QML_GETTYPENAMES'
listName[listLen+nameLen+1] = '\0';
^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:106:9: error: use of undeclared identifier 'qRegisterNormalizedMetaType'
qRegisterNormalizedMetaType<T *>(pointerName.constData()),
^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:106:37: error: 'T' does not refer to a value
qRegisterNormalizedMetaType<T *>(pointerName.constData()),
^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:98:19: note: declared here
template<typename T>
^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:106:40: error: expected expression
qRegisterNormalizedMetaType<T *>(pointerName.constData()),
^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:106:42: error: use of undeclared identifier 'pointerName'
qRegisterNormalizedMetaType<T *>(pointerName.constData()),
^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:107:9: error: use of undeclared identifier 'qRegisterNormalizedMetaType'
qRegisterNormalizedMetaType<QQmlListProperty<T> >(listName.constData()),
^
/Volumes/DATA/Qt/5.5/clang_64/lib/QtQml.framework/Headers/qqml.h:107:57: error: expected '(' for function-style cast or type construction
qRegisterNormalizedMetaType<QQmlListProperty<T> >(listName.constData()),
~~~~~~~~~~~~~~~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [main.o] Error 1
11:50:59: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project adviser (kit: Desktop Qt 5.5.0 clang 64bit)
When executing step "Make"@I don't know what happend..
what is wrong ?? any idea ??
regards
-
Hi,
Which version of OS X and Xcode ? Can you reproduce that with a minimal sample code ?
-
@SGaist
HI SGaistThat is the problem... i don't know what is the problem... I have OS X 10.10.5 and XCode 6.4, the last version of both...
the problem come with one line, this one: #include <QQuickItem>
after this line, all error are in some Qt files, not in my project... for that I'm coming here to ask, because I don't know what happen my friend...
my .pro file is this one: https://www.dropbox.com/s/j2qxx32tqu1wvvd/adviser.pro?dl=0
regards
-
Can you check that with a default Qt project, to see if it still occurs ?
-
Then it's something in your code. One way to do it is to comment all include and re-enable them one by one until the compilation starts failing again.
-
up !!!! is a hard task your advise but I'll do my friend.. thanks for help !!
regards
-
Sorry, there's not always an easy path to solved problems