I found a compilation script on the Web, "Poco C + + iOS and Android platform compilation script ," error when executing:
LS:/developer/platforms/iphoneos.platform/developer/usr/bin/llvm-gcc-*: No such file or directory
Go into Poco and look at the 3 types of iOS available in Poco configuration (poco-1.4.6p4/build/config):
Iphone
Iphone-clang
Iphone-clang-libc++
Again into the web looking for the script to see, it uses the configuration 1, it seems to be for the old version of Xcode, and my Xcode 5 directory structure and compiler has changed, so this error occurs. Instead, I configured 2 (and also modified the Lipo command in the original script), and the compilation was successful.
(in addition, the configuration 3 is the use of the C++11 standard library, and the difference between configuration 2 See "Xcode C + + Standards Library Selection")
Here is the Poco iOS compilation script that I modified to work correctly:
#!/bin/SH# # Description:poco compilation script, iOS and android# # Created by Yangchen on --1- -. # # Important history:# # Index versionDateauthor notes#0 1.0.1001 -/1/ -Yangchen Creating a file ###########========ios Platform ======#########./configure--config=iphone-clang--no-tests--no-samples# MakeCppunit iphone_sdk_version_min=3.0Poco_target_osarch=armv7-s-J4 Makeiphone_sdk_version_min=3.0Poco_target_osarch=armv7-s-J4./configure--config=iphonesimulator-clang--no-tests--no-samples# MakeCppunit-s-J4 Make-S-J4mkdir-P lib/Iosall#lipo-create lib/iphoneos/armv7/libcppunit.a lib/iphonesimulator/i686/libcppunit.a-output lib/iOSAll/libcppunit.a #lipo-create lib/iphoneos/armv7/libcppunitd.a lib/iphonesimulator/i686/libcppunitd.a-output lib/iOSAll/LIBCPPUNITD.A Lipo-create Lib/iphoneos/armv7/libpocofoundation.a lib/iphonesimulator/i686/libpocofoundation.a-output lib/iOSAll/Libpocofoundation.a Lipo-create lib/iphoneos/armv7/libpocofoundationd.a lib/iphonesimulator/i686/libpocofoundationd.a-output lib/iOSAll/LIBPOCOFOUNDATIOND.A Lipo-create lib/iphoneos/armv7/libpoconet.a lib/iphonesimulator/i686/libpoconet.a-output lib/iOSAll/LIBPOCONET.A Lipo-create lib/iphoneos/armv7/libpoconetd.a lib/iphonesimulator/i686/libpoconetd.a-output lib/iOSAll/LIBPOCONETD.A Lipo-create LIB/IPHONEOS/ARMV7/LIBPOCOUTIL.A lib/iphonesimulator/i686/libpocoutil.a-output lib/iOSAll/LIBPOCOUTIL.A Lipo-create lib/iphoneos/armv7/libpocoutild.a lib/iphonesimulator/i686/libpocoutild.a-output lib/iOSAll/LIBPOCOUTILD.A Lipo-create LIB/IPHONEOS/ARMV7/LIBPOCOXML.A lib/iphonesimulator/i686/libpocoxml.a-output lib/iOSAll/LIBPOCOXML.A Lipo-create lib/iphoneos/armv7/libpocoxmld.a lib/iphonesimulator/i686/libpocoxmld.a-output lib/iOSAll/libPocoXMLd.a