编译iOS的Qt(UIKit灯塔)第2部分

我正在尝试编译iOS模拟器的Qt,正如本文所解释的那样。

起初,我遇到了这个问题,但在它(有点)解决之后,我还有更多。

首先,我执行第一个命令后,得到这个错误,应该build立qmake( ../qt/configure ... etc etc ):

The OpenGL ES 2.0 functionality test failed! You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL_ES2, QMAKE_LIBDIR_OPENGL_ES2 and QMAKE_LIBS_OPENGL_ES2 in /Qt/qt/mkspecs/qpa/macx-iphonesimulator-g++.

由于我知道我有4.3 SDK,所以我深入研究了它,分析了configuration脚本,并且在一些跟踪之后,我看到了由qmake生成的Makefile,需要g ++ – 4.2(我没有),所以我在/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin//Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ ln -s g++ g++-4.2ln -s gcc gcc-4.2

我不确定上述步骤是否重要,这就是为什么我写这些。 总之,configuration步骤是成功的。 现在我跑了。 一些成功编译的文件后,我得到这个:

 In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/WebServicesCore.framework/Headers/WebServicesCore.h:15, from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:37, from ../../include/QtCore/private/../../../../qt/src/corelib/kernel/qcore_mac_p.h:83, from ../../include/QtCore/private/qcore_mac_p.h:1, from /Qt/qt/src/corelib/tools/qlocale_mac.mm:49: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/WebServicesCore.framework/Headers/WSMethodInvocation.h:759: error: 'CFXMLTreeRef' has not been declared 

从几个不同的WebServicesCore.h行中再次出现相同的错误。 所以,基本上,这里是我卡在现在的地方。

任何帮助? 再次?…

编辑:当我configuration并尝试为设备制作Qt(相对于模拟器),绝对是100%

附加信息:

  • gcc –version:i686-apple-darwin11-llvm-gcc-4.2(GCC)4.2.1(基于Apple Inc. build 5658)(LLVM build 2336.1.00)
  • iOS SDK:我有4.3和5
  • OS X版本:10.7.2
  • Xcode版本(如果有的话):4.2.1

你不忘记添加-nomake tools和其他-nomake ...到你的configuration?

尝试戳这个家伙: http : //labs.qt.nokia.com/2011/08/09/update-on-uikit-lighthouse-platform/