在Mac中构建Qt 5.4错误
building Qt 5.4 errors in Mac
当我在mac中构建Qt 5.4时,我遇到了很多这样的错误:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_NSString", referenced from:
objc-class-ref in libQt5Bootstrap.a(qstring_mac.o)
"_FSFindFolder", referenced from:
macLocation(QStandardPaths::StandardLocation, short) in libQt5Bootstrap.a(qstandardpaths_mac.o)
ld:找不到体系结构x86_64的符号clang:crang:error:链接器命令失败,退出代码为1(使用-v查看调用)error:链接程序命令失败,出口代码为1
make[2]: make[2]: *** [../../../bin/rcc] Error 1*** [../../../bin/moc] Error 1
make[1]: *** [sub-rcc-make_first] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [sub-moc-make_first] Error 2
make: *** [sub-src-make_first] Error 2
知道是什么导致了这些错误吗?
感谢您提前提供的帮助。
我在Mac OS 10.9 上构建的新版本Qt 5.4.1也有同样的问题
Mac Build DS浏览器:qt-src-static-5.4.1 jenkis$/configure-prefix$PWD/qtbase-release-static-accessibility-qt zlib-qt libpng-qt lib jpeg-无cups-无sql sqlite-无qml debug-正常示例-正常测试-跳过qtactiveqt-跳过qtenginio-跳过qtl位置-跳过qtmultimedia-跳过qtserialport-跳过qtquick1-跳过qtquickcontrols-跳过qtscript-跳过qtsensors-跳过qtwebkit-跳过qtweb套接字-跳过qtxmlpatterns
然后使用make-j4
相关文章:
- QT在错误的班级中寻找空位
- libssh 的函数在构建 libssh 时无法在 Qt 和 cmake 错误中找到
- 错误-我无法在VS2019中打开新的Qt项目
- 将QT项目导入Visual Studio 2019会给我带来很多LNK2001错误
- Qmake 错误:QT: 图表中的未知模块
- 项目错误:QT中的未知模块:Mac上的图表
- 编译错误 QT - 无法从类型强制转换
- 未知类型名称错误 Qt C++
- LNK2001带有静态属性和方法的错误(QT,C )
- 数据库未打开错误QT C
- 当我用口音保存JSON时,我的文字错误(QT)
- C 错误:: -1:错误:QT-CREATOR中未找到架构X86_64的符号(S)
- 键按下事件错误 Qt 实现函数时
- Qt 5测试版2,Qt Creator 2.6,MSVC错误:Qt Creaator需要一个编译器来构建.在工具包选项中
- 在Windows 8下使用Tbb构建错误Qt创建器
- 项目错误:QT 中的未知模块:webkitwidgets
- 链接错误-Qt Creator OpenCV Ubuntu
- 项目错误:QT中的未知模块:蓝牙
- 1.项目错误:QT: webkitwidgets中的未知模块
- 找不到错误 QT