为iPhone5S编译Poco Library(arm64)

时间:2013-10-20 15:18:43

标签: ios openssl poco-libraries arm64

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

步骤

  

./ 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 /下载/ POCO-1.​​4.6p2-A ll / 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- :没有这样的文件或目录   /Users/edrictse/Downloads/poco-1.4.6p2-all/build/script/makedepend.gcc:24行:-MM:命令未找到   ls:/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llvm-g ++ - :没有这样的文件或目录

Poco Library版本:poco-1.4.6p2 XCode版本:5.0

任何人都可以为我提供解决方案。 谢谢。

2 个答案:

答案 0 :(得分:2)

我刚刚下载了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下载

答案 1 :(得分:0)

最后,我想出了这个thread提供的解决方案。

第1步:配置

  

./ configure -config = iPhone -static -no-tests -no-samples --omit = Data / ODBC,Data / MySQL

对于OpenSSL支持

  

./ configure -config = iPhone -static -no-tests -no-samples --omit = Data / ODBC,Data / MySQL --include-path = [OPENSSL INCLUDE PATH]

第2步:更改编译

在" poco-1.4.6p2-all / build / config / iPhone"中打开文件,更改:

  • for CC:xcrun -find -sdk iphoneos clang
  • for CXX:xcrun -find -sdk iphoneos clang ++

第3步:建立您的图书馆

  • make IPHONE_SDK_VERSION_MIN = 3.0 POCO_TARGET_OSARCH = armv6 -s -j4
  • make IPHONE_SDK_VERSION_MIN = 3.2 POCO_TARGET_OSARCH = armv7 -s -j4
  • make IPHONE_SDK_VERSION_MIN = 4.3 POCO_TARGET_OSARCH = armv7s -s -j4
  • make IPHONE_SDK_VERSION_MIN = 4.3 POCO_TARGET_OSARCH = arm64 -s -j4
相关问题