Error building QtDeclarative with Qt 4.6.2 on Mac OS X
I tried hard to build QtDeclarative with Qt 4.6.2 on Mac OS X (Leopard) and did lots of Googling without finding any cure. Could anyone please help to solve this problem? Thanks. Here goes the error:
Undefined symbols:
"QObjectPrivate::isSignalConnected(int) const", referenced from:
QmlGraphicsKeysAttachedPrivate::isConnected(char const*)in qmlgraphicsitem.o
QmlGraphicsMouseRegionPrivate::isConnected(char const*)in qmlgraphicsmouseregion.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [.obj/QtDeclarative.framework/QtD开发者_开发问答eclarative] Error 1
I solved the issue myself:
Download the qobject_p.h file from http://qt.gitorious.org/qt/qt/blobs/raw/4.6/src/corelib/kernel/qobject_p.h
Replace qobject_p.h with the current qobject_p.h file at the location: qt-4.6.0-declarative/include/QtDeclarative/private
Just compile as guided
精彩评论