gpt4 book ai didi

ios - 为iPhone5S(arm64)编译Poco库

转载 作者:行者123 更新时间:2023-11-28 22:24:07 26 4
gpt4 key购买 nike

我想为 iPhone5S(arm64) 编译 Poco 库。但是,我遇到了以下编译错误。

要做的步骤

./configure --config=iPhone -static --no-tests --no-samples --omit=Data/ODBC,Data/MySQL make IPHONE_SDK_VERSION_MIN=4.3 POCO_TARGET_OSARCH=arm64 -s -j4

并发现以下错误。

/Users/edrictse/Downloads/poco-1.4.6p2-all/build/script/makedepend.gcc src/LogFile.cpp /Users/edrictse/Downloads/poco-1.4.6p2-all/Foundation/.dep/iPhoneOS/arm64/LogFile.d /Users/edrictse/Downloads/poco-1.4.6p2-all/Foundation/obj/iPhoneOS/arm64/debug_static /Users/edrictse/Downloads/poco-1.4.6p2-all/Foundation/obj/iPhoneOS/arm64/release_static /Users/edrictse/Downloads/poco-1.4.6p2-all/Foundation/obj/iPhoneOS/arm64/debug_shared /Users/edrictse/Downloads/poco-1.4.6p2-all/Foundation/obj/iPhoneOS/arm64/release_shared -Iinclude -I/Users/edrictse/Downloads/poco-1.4.6p2-all/CppUnit/include -I/Users/edrictse/Downloads/poco-1.4.6p2-all/Foundation/include -I/Users/edrictse/Downloads/poco-1.4.6p2-all/XML/include -I/Users/edrictse/Downloads/poco-1.4.6p2-all/Util/include -I/Users/edrictse/Downloads/poco-1.4.6p2-all/Net/include -I/Users/edrictse/Downloads/poco-1.4.6p2-all/Crypto/include -I/Users/edrictse/Downloads/poco-1.4.6p2-all/NetSSL_OpenSSL/include -I/Users/edrictse/Downloads/poco-1.4.6p2-all/Data/include -I/Users/edrictse/Downloads/poco-1.4.6p2-all/Data/SQLite/include -I/Users/edrictse/Downloads/poco-1.4.6p2-all/Data/ODBC/include -I/Users/edrictse/Downloads/poco-1.4.6p2-all/Data/MySQL/include -I/Users/edrictse/Downloads/poco-1.4.6p2-all/Zip/include -I/Users/edrictse/Downloads/poco-1.4.6p2-all/PageCompiler/include -I/Users/edrictse/Downloads/poco-1.4.6p2-all/PageCompiler/File2Page/include -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -mthumb -miphoneos-version-min=4.3 -Wall -Wno-sign-compare -DPOCO_BUILD_HOST=edric-macbook.local -DPOCO_HAVE_IPv6 -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_STAT64 -DPOCO_NO_SHAREDLIBS
ls: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-gcc-: No such file or directory /Users/edrictse/Downloads/poco-1.4.6p2-all/build/script/makedepend.gcc: line 24: -MM: command not found ls: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-g++-: No such file or directory

Poco 库版本:poco-1.4.6p2XCode 版本:5.0

谁能给我解决方案。谢谢。

最佳答案

我刚刚下载了 poco 库,可以通过以下方式轻松进行配置:

[/tmp]:;./configure --config=iPhone -static --no-tests --no-samples --omit=Data/ODBC,Data/MySQL make IPHONE_SDK_VERSION_MIN=4.3 POCO_TARGET_OSARCH=arm64 -s -j4
Configured for iPhone

我怀疑您真正在这里需要做的是确保您的 Xcode 命令行工具已安装。当您转到 Xcode 首选项时,您是否安装了它们并将其设置为最新版本,就像这样?

Set Command Line Tools to latest version

命令行工具(如果您没有在弹出菜单中看到它们)可以从 http://developer.apple.com/downloads 下载。

关于ios - 为iPhone5S(arm64)编译Poco库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19479090/

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