【发布时间】:2014-04-09 20:51:33
【问题描述】:
我在运行 OS X 10.8.5 和 xcode 5.0.2 的 Macbook 上下载了 Qt 5.2.1(.tar.gz),解压缩并运行此配置:
./configure -prefix $PWD/qtbase -debug-and-release -developer-build -no-c++11 -opensource -plugin-sql-sqlite -qtlibinfix _fmosoft -nomake tests -skip qtwebkit -skip qtwebkit-examples -no-compile-examples
我有一些补丁要添加到 Qt5.2.1,所以我不能只安装二进制文件。但我想我会首先尝试在没有任何补丁的情况下构建,只需将解压缩的代码与我的配置选项一起使用。配置成功,然后我运行
make
运行大约 5 分钟,然后给我这个错误:
../corelib/global/qt_pch.h:58:10: error: 'qglobal.h' file not found with
<angled> include; use "quotes" instead
#include <qglobal.h>
^~~~~~~~~~~
"qglobal.h"
../corelib/global/qt_pch.h:64:10: fatal error: 'qcoreapplication.h' file not
found
#include <qcoreapplication.h>
^
2 errors generated.
make[4]: *** [.pch/debug/QtNetwork_fmosoft_debug/c++.pch] Error 1
make[3]: *** [debug-all] Error 2
make[2]: *** [sub-network-make_first] Error 2
make[1]: *** [sub-src-make_first] Error 2
make: *** [module-qtbase-make_first] Error 2
我做错了什么?如何在我的 Macbook 上构建 Qt5.2.1?
【问题讨论】: