1

我正在做一个项目,它正在与我所有的同事一起编译,但我除外(我们Github用来同步我们的工作)。我们都与MacOs 10.8.4. 这是我面临的错误的一部分:

Undefined symbols for architecture x86_64:
  "qt_message_output(QtMsgType, QMessageLogContext const&, QString const&)", referenced from:
      QDebug::~QDebug() in PhTimeCode.o
      QDebug::~QDebug() in PhStripDoc.o
      QDebug::~QDebug() in PhGraphicView.o
      QDebug::~QDebug() in PhGraphicContext.o
      QDebug::~QDebug() in PhGraphicImage.o
      QDebug::~QDebug() in PhGraphicTexturedRect.o
      QDebug::~QDebug() in PhGraphicStripView.o
      ...
  "QArrayData::deallocate(QArrayData*, unsigned long, unsigned long)", referenced from:
      QTypedArrayData<unsigned short>::deallocate(QArrayData*) in PhTimeCode.o
      QTypedArrayData<char>::deallocate(QArrayData*) in PhDebug.o
      QTypedArrayData<unsigned short>::deallocate(QArrayData*) in PhDebug.o
      QTypedArrayData<unsigned short>::deallocate(QArrayData*) in PhStripDoc.o
      QTypedArrayData<unsigned short>::deallocate(QArrayData*) in PhStripText.o
      QTypedArrayData<unsigned short>::deallocate(QArrayData*) in PhPeople.o
      QTypedArrayData<unsigned short>::deallocate(QArrayData*) in PhGraphicView.o
      ...
  "QArrayData::shared_null", referenced from:
      QArrayData::sharedNull() in PhDebug.o
      QArrayData::sharedNull() in PhStripDoc.o
      QArrayData::sharedNull() in PhStripText.o
      QArrayData::sharedNull() in PhPeople.o
      QArrayData::sharedNull() in PhGraphicText.o
      QArrayData::sharedNull() in PhFont.o
  "QMetaObject::Connection::~Connection()", referenced from:
      PhGraphicView::PhGraphicView(QWidget*) in PhGraphicView.o
      PhGraphicStripView::PhGraphicStripView(QWidget*) in PhGraphicStripView.o
      MainWindow::MainWindow(QWidget*) in MainWindow.o
  "QMapDataBase::createData()", referenced from:
      QMapData<QString, PhPeople*>::create() in PhStripDoc.o
      QMapData<PhStripCut*, PhGraphicRect*>::create() in PhGraphicStripView.o
      QMapData<PhStripText*, PhGraphicText*>::create() in PhGraphicStripView.o
      QMapData<PhPeople*, PhGraphicText*>::create() in PhGraphicStripView.o
      QMapData<QString, PhPeople*>::create() in PhGraphicStripView.o
  "QMapDataBase::createNode(int, int, QMapNodeBase*, bool)", referenced from:
      QMapData<QString, PhPeople*>::createNode(QString const&, PhPeople* const&, QMapNode<QString, PhPeople*>*, bool) in PhStripDoc.o
      QMapData<PhStripCut*, PhGraphicRect*>::createNode(PhStripCut* const&, PhGraphicRect* const&, QMapNode<PhStripCut*, PhGraphicRect*>*, bool) in PhGraphicStripView.o
      QMapData<PhStripText*, PhGraphicText*>::createNode(PhStripText* const&, PhGraphicText* const&, QMapNode<PhStripText*, PhGraphicText*>*, bool) in PhGraphicStripView.o
      QMapData<PhPeople*, PhGraphicText*>::createNode(PhPeople* const&, PhGraphicText* const&, QMapNode<PhPeople*, PhGraphicText*>*, bool) in PhGraphicStripView.o
      QMapData<QString, PhPeople*>::createNode(QString const&, PhPeople* const&, QMapNode<QString, PhPeople*>*, bool) in PhGraphicStripView.o
  "QMapDataBase::shared_null", referenced from:
      QMap<QString, PhPeople*>::QMap() in PhStripDoc.o
      QMap<PhStripCut*, PhGraphicRect*>::QMap() in PhGraphicStripView.o
      QMap<PhStripText*, PhGraphicText*>::QMap() in PhGraphicStripView.o
      QMap<PhPeople*, PhGraphicText*>::QMap() in PhGraphicStripView.o
  "QMapDataBase::recalcMostLeftNode()", referenced from:
      QMap<QString, PhPeople*>::QMap(QMap<QString, PhPeople*> const&) in PhStripDoc.o
      QMap<QString, PhPeople*>::detach_helper() in PhStripDoc.o
      QMap<PhStripCut*, PhGraphicRect*>::detach_helper() in PhGraphicStripView.o
      QMap<PhStripText*, PhGraphicText*>::detach_helper() in PhGraphicStripView.o
      QMap<PhPeople*, PhGraphicText*>::detach_helper() in PhGraphicStripView.o
      QMap<QString, PhPeople*>::QMap(QMap<QString, PhPeople*> const&) in PhGraphicStripView.o
      QMap<PhStripText*, PhGraphicText*>::QMap(QMap<PhStripText*, PhGraphicText*> const&) in PhGraphicStripView.o
      ...

每个人都期望我编译代码,并且我已经通过在线安装程序重新安装了 Qt。我迷路了。

4

1 回答 1

1

请检查您的系统中是否已安装任何其他 Qt 库(在其他一些路径中)。如果是这样,请卸载并尝试。

于 2013-09-11T13:48:58.397 回答