我努力在Mac OS X(Leopard)上使用Qt 4.6.2构建QtDeclarative并且在没有找到任何治疗方法的情况下进行了大量的Google搜索。有谁可以帮忙解决这个问题?谢谢。出现错误:
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/QtDeclarative] Error 1
答案 0 :(得分:0)
我自己解决了这个问题:
从http://qt.gitorious.org/qt/qt/blobs/raw/4.6/src/corelib/kernel/qobject_p.h
将qobject_p.h替换为当前的qobject_p.h文件:qt-4.6.0-declarative / include / QtDeclarative / private
只需按照指导编译