[cairo] Building pixman for iOS/iPhone

Rob Cas sacbor at gmail.com
Sun Jan 9 22:15:17 PST 2011


Folks,

I'm sorry. I just realised there was a pixman mailing list. (I used the cairo one because I downloaded the pixman source from the same location.)

I'll repost on the appropriate list - sorry for the noise and cross-posting. Please ignore my earlier post.

Regards,
	Rob.

On 10/01/2011, at 4:54 PM, 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?
> 



More information about the cairo mailing list