> On 22 Jul 2015, at 3:40 pm, jan i <j...@apache.org> wrote:
> 
> Hi
> 
> can someone (peter?) make a short set of instruction on how to compile for
> ios in batch mode
> on mac os (just a list in response to this mail is super).

I haven’t previously built for iOS using the CMake-generated files (I still 
have a manually maintained Xcode project file for that), but have just spent 
some time looking into this. I was able to change the target platform to iOS by 
adding the following line to the top-level CMakeLists.txt file:

set(CMAKE_OSX_SYSROOT 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk)

This compiles the libraries successfully, but not the command-line tools. I was 
able to create a small iOS app which calls one of the functions from the 
library, and run it ok under the simulator as well as on my iPhone.

I’m not sure about the command-line options for xcodebuild that might be 
required to change architectures (do we want to test compilation for both ARM 
and X86?) but will look into that.

—
Dr Peter M. Kelly
pmke...@apache.org

PGP key: http://www.kellypmk.net/pgp-key <http://www.kellypmk.net/pgp-key>
(fingerprint 5435 6718 59F0 DD1F BFA0 5E46 2523 BAA1 44AE 2966)

Reply via email to