【问题标题】:Error building QtDeclarative with Qt 4.6.2 on Mac OS X在 Mac OS X 上使用 Qt 4.6.2 构建 QtDeclarative 时出错
【发布时间】:2010-05-25 08:39:38
【问题描述】:

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

【问题讨论】:

    标签: macos qt4 building qt4.6 qtdeclarative


    【解决方案1】:

    我自己解决了这个问题:

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

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

    3. 按照指导编译

    【讨论】:

      最近更新 更多