在Mac OS X上使用Qt 4.6.2构建QtDeclarative时出错

时间:2010-05-25 08:39:38

标签: macos qt4 building qt4.6 qtdeclarative

我努力在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

1 个答案:

答案 0 :(得分:0)

我自己解决了这个问题:

  1. http://qt.gitorious.org/qt/qt/blobs/raw/4.6/src/corelib/kernel/qobject_p.h

  2. 下载qobject_p.h文件
  3. 将qobject_p.h替换为当前的qobject_p.h文件:qt-4.6.0-declarative / include / QtDeclarative / private

  4. 只需按照指导编译