0
我在运行OS X 10.8.5的Macbook上使用xcode 5.0.2下载了Qt 5.2.1(.tar.gz),解压后运行此配置:Qt 5.2.1无法在mac OSX上构建10.8.5
./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?
谢谢 - 我正在尝试一个非前缀构建,这就是我在Qt的文档中找到的用于-prefix(我忘记了在哪里看到它)的内容。为了看看它是否有所作为,我尝试了一个正常的前缀构建,正如你所建议的那样,但是我得到了与原始问题相同的错误。任何更多的想法可能是错的? –
@DavidBurson这可能是一个OS X 10.8特定的错误。你可能希望报告。 –
它似乎是-qtlibinfix的错误。通过消除那面旗帜,我得到了它。仍然失败,但有另一个错误:/Users/david/dev/qt521source/qtbase/examples/widgets/mac/qmacnativewidget/main.mm:44:10:致命错误: 'QApplication'文件未找到 #include –