Re: How to compile for iPhone arm processor?

Marcel Ruff <[email protected]> Sun, 23 Nov 2008 18:12:24 +0100
Newsgroups gmane.comp.java.ant-contrib.devel
Message-ID <[email protected]>
Marcel Ruff schrieb:
> Hi,
>
> what is the best approach to use cpptasks
> to create a static library for the iPhone ARM processor?
>
> The Mac OS XCode has a suitable gcc crosscompiler delivered,
> how do i configure cpptasks to use this?
>   
It boils down to inject somehow following settings:

    DEVROOT:=/Developer/Platforms/iPhoneOS.platform/Developer
    SDKROOT:=$(DEVROOT)/SDKs/iPhoneOS2.0.sdk
    CPPFLAGS=-I$(SDKROOT)/usr/lib/gcc/arm-apple-darwin9/4.0.1/include/ 
-I$(SDKROOT)/usr/include/
    CFLAGS=$(CPPFLAGS) -arch armv6 -pipe -no-cpp-precomp -isysroot 
$(SDKROOT)
    CC=$(DEVROOT)/usr/bin/arm-apple-darwin9-gcc-4.0.1
    LD=$(DEVROOT)/usr/bin/ld

How is this done?

Thanks
Marcel
> Thanks
> Marcel
>
>   


-- 
Marcel Ruff
http://www.xmlBlaster.org
http://watchee.net
Phone: +49 7551 309371


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/