Cross-compile Autotools-based Libraries for Official iPhone SDK

后端 未结 2 1826
暖寄归人
暖寄归人 2020-12-24 04:21

Background

I am writing a program that targets several different phones, including the iPhone. The program depends on several thirdparty libraries. I am having dif

2条回答
  •  长情又很酷
    2020-12-24 04:57

    Thank you for your script. It did help me a lot. Though I had to make few changes so that the architecture of my built lib is arm and not i386.

    First, I had to change the compiler:

    # export CC="$DEVROOT/usr/bin/gcc-4.2"
    export CC="$DEVROOT/usr/bin/arm-apple-darwin10-gcc-4.2.1"
    

    Then I removed the -arch armv6 option, as this compiler doesn't understand it, from CFLAGS, CXXFLAGS, LDFLAGS

    Updated the SDKVER and gcc version and it worked!

提交回复
热议问题