Qt环境损坏Mac os

Qt环境损坏Mac os,qt,Qt,我正在做一个项目,除了我之外,我所有的同事都在编译它(我们使用Github来同步我们的工作)。我们都使用MacOs 10.8.4。以下是我面临的部分错误: Undefined symbols for architecture x86_64: "qt_message_output(QtMsgType, QMessageLogContext const&, QString const&)", referenced from: QDebug::~QDebug() in

我正在做一个项目,除了我之外,我所有的同事都在编译它(我们使用
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
      ...
架构x86_64的未定义符号: “qt_消息_输出(QtMsgType,QMessageLogContext常量&,QString常量&)”,引用自: QDebug::~QDebug()在PhTimeCode.o中 QDebug::~QDebug()在PhStripDoc.o中 PhGraphicView.o中的QDebug::~QDebug() PhGraphicContext.o中的QDebug::~QDebug() PhGraphicImage.o中的QDebug::~QDebug() PhGraphicTexturedRect.o中的QDebug::~QDebug() PhGraphicStripView.o中的QDebug::~QDebug() ... “QArrayData::解除分配(QArrayData*,无符号长,无符号长)”,引用自: PhTimeCode.o中的QTypedArrayData::解除分配(QArrayData*) QTypedArrayData::在PhDebug.o中释放(QArrayData*) QTypedArrayData::在PhDebug.o中释放(QArrayData*) QTypedArrayData::在PhStripDoc.o中释放(QArrayData*) PhStripText.o中的QTypedArrayData::解除分配(QArrayData*) PhPeople.o中的QTypedArrayData::解除分配(QArrayData*) PhGraphicView.o中的QTypedArrayData::解除分配(QArrayData*) ... “QArrayData::shared_null”,引用自: PhDebug.o中的QArrayData::sharedNull() PhStripDoc.o中的QArrayData::sharedNull() PhStripText.o中的QArrayData::sharedNull() PhPeople.o中的QArrayData::sharedNull() PhGraphicText.o中的QArrayData::sharedNull() PhFont.o中的QArrayData::sharedNull() “QMetaObject::Connection::~Connection()”,引用自: PhGraphicView::PhGraphicView.o中的PhGraphicView(QWidget*) phGraphicsStripView::phGraphicsStripView.o中的phGraphicsStripView(QWidget*) MainWindow::MainWindow.o中的MainWindow(QWidget*) “QMapDataBase::createData()”,引用自: PhStripDoc.o中的QMapData::create() PhGraphicStripView.o中的QMapData::create() PhGraphicStripView.o中的QMapData::create() PhGraphicStripView.o中的QMapData::create() PhGraphicStripView.o中的QMapData::create() “QMapDataBase::createNode(int,int,QMapNodeBase*,bool)”,引用自: PhStripDoc.o中的QMapData::createNode(QString常量&,PhPeople*常量&,QMapNode*,bool) PhGraphicStripView.o中的创建节点(PhStripCut*const&,PhGraphicRect*const&,QMapNode*,bool) PhGraphicStripView.o中的QMapData::createNode(PhStripText*const&,PhGraphicText*const&,qmaNode*,bool) PhGraphicStripView.o中的QMapData::createNode(PhPeople*const&,PhGraphicText*const&,qmanode*,bool) PhGraphicStripView.o中的QMapData::createNode(QString const&,PhPeople*const&,qmanode*,bool) “QMapDataBase::shared_null”,引用自: PhStripDoc.o中的QMap::QMap() PhGraphicStripView.o中的QMap::QMap() PhGraphicStripView.o中的QMap::QMap() PhGraphicStripView.o中的QMap::QMap() “QMapDataBase::recalcMostLeftNode()”,引用自: PhStripDoc.o中的QMap::QMap(QMap const&) PhStripDoc.o中的QMap::detach_helper() PhGraphicStripView.o中的QMap::detach_helper() PhGraphicStripView.o中的QMap::detach_helper() PhGraphicStripView.o中的QMap::detach_helper() PhGraphicStripView.o中的QMap::QMap(QMap const&) PhGraphicStripView.o中的QMap::QMap(QMap const&) ...
所有人都期望我编译代码,我已经通过在线安装程序重新安装了Qt。我迷路了。

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

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

Qt 5.0.2的安装是全新的,我尝试过,使用了
Qt 5.1.0
,它说SDL.h丢失,我正在安装5.1.1,我会看到…我的.pro文件中有一个错误的标志,指向旧版本的Qt libs!Qt 5.0.2的安装是全新的,我已经尝试过了,它说SDL.h丢失了,我正在安装5.1.1,我会看到…我的.pro文件中有一个错误的标志,指向旧版本的Qt libs!为什么要否决投票?要有建设性,解释它如果你安装了Qt4.x,比如说通过MacPorts,如果你也使用cmake,你会遇到麻烦,但这仅限于编译,而不是链接。否则我不知道:(为什么要否决投票?要有建设性,解释它如果你安装了Qt 4.x,比如说通过MacPorts,如果你也使用cmake,你会遇到麻烦,但这仅限于编译,而不是链接。否则我不知道:(