gpt4 book ai didi

ios - 为 iOS 编译 Qt(UIKit 灯塔)第 2 部分

转载 作者:行者123 更新时间:2023-11-28 17:38:59 25 4
gpt4 key购买 nike

我正在尝试为 iOS 模拟器编译 Qt,如 this article 中所述。 .

起初我遇到了this problem但在它(有点)自行解决之后,我还有一些。

首先,我在执行第一个命令后一直收到此错误,该命令应该构建 qmake (../qt/configure ... etc etc):

OpenGL ES 2.0 功能测试失败!
您可能需要通过编辑/Qt/qt/mkspecs/qpa/macx-iphonesimulator-g++ 中的 QMAKE_INCDIR_OPENGL_ES2、QMAKE_LIBDIR_OPENGL_ES2 和 QMAKE_LIBS_OPENGL_ES2 来修改包含和库搜索路径。

因为我知道我有 4.3 SDK,所以我深入研究了它,分析了配置脚本,经过一些跟踪,我发现 qmake 生成的 Makefile 需要 g++-4.2(我没有) ,所以我只是 ln -s g++ g++-4.2ln -s gcc gcc-4.2/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/.

我不确定上述步骤是否重要,这就是我写这些步骤的原因。无论如何,配置步骤成功了。现在我运行了 make。在一些成功编译的文件之后,我得到了这个:

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 的几行不同的代码。所以,基本上,这就是我现在遇到的问题。

有什么帮助吗?又是?...

编辑:当然,当我配置并尝试为设备(而不是模拟器)制作 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 工具 和其他 -nomake ... 添加到你的配置中?

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

关于ios - 为 iOS 编译 Qt(UIKit 灯塔)第 2 部分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8891839/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com