[cairo] Building pixman for iOS/iPhone

Dan Cartman DanC at xta.co.uk
Mon Jan 10 01:22:25 PST 2011


I've posted on here before about compiling Cairo for iOS, but to be 
honest I've not got very far with it.

However, I did manage to find a way around the problem you're having.  
For reasons that I don't entirely understand, GCC v4.2.1 gives the error 
about not being able to create executables, but if you use v4.0.1 then 
it seems to work fine.  After a quick search I found several other 
people with the same problem but no other way around it.

If you do get anywhere with compiling pixman or Cairo for iOS then I'd 
be interested to find out how you managed it.
Dan

On 10/01/2011 05:54, Rob Cas wrote:
> Hi,
>
> I was wondering if anybody has information on how to build pixman for iOS/iPhone.
>
> I'm running Snow Leopard 10.6.5, Xcode 3.2.4 and want to use the iPhoneOS4.1 SDK. Details are below.
>
> Thanks in advance,
> 	Rob.
>
> I've tried setting the following environment variables:
>
> CPPFLAGS="-pipe -no-cpp-precomp -I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk/usr/lib/gcc/arm-apple-darwin10/4.2.1/include/ -I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk/usr/include -I/Developer/Platforms/iPhoneOS.platform/Developer/usr/include"
>
> CFLAGS="-std=c99 -arch armv6 -pipe -no-cpp-precomp --sysroot='/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk' -isystem /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk/usr/lib/gcc/arm-apple-darwin10/4.2.1/include/ -isystem /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk/usr/include -isystem /Developer/Platforms/iPhoneOS.platform/Developer/usr/include"
>
> LDFLAGS="-arch armv6 --sysroot='/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk' -L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk/usr/lib -L/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib"
>
> I then call:
> 	./configure --host=arm-apple-darwin10
>
> Which results in a failure:
> 	configure: error: C compiler cannot create executables
> 	See `config.log' for more details
>
> The config.log indicates a failure to link the test program which is used to verify the compiler works:
> 	ld: warning: in /usr/lib/crt1.10.5.o, missing required architecture armv6 in file
> 	ld: could not find entry point "start" (perhaps missing crt1.o)
>
> I don't really understand why this isn't working...why the linker is looking for the crt object file in /usr/lib/. I would have thought it should be looking in usr/lib/ under the appropriate  platform folder (eg. /Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/gcc/arm-apple-darwin10/4.2.1/) which only contains a crt3.o file...
>
> Any ideas on what configuration I've got wrong?
>
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo


More information about the cairo mailing list