[Pixman] Building pixman for iOS/iPhone

sacbor at gmail.com sacbor at gmail.com
Mon Jan 10 16:20:17 PST 2011


Thanks Soeren,

I managed to get it compiling with the following. Have yet to see whether it functions correctly however! (/usr/local/custom is where I install 3rd party libraries/etc.) Thanks also go to mpsuzuki and Dan Cartman for their suggestions from the cairo mailing list too. 

	Rob.

# Tool path environment variables
AS=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/as
ASCPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/as
AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar
CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp
CXXCPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp
CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2
CXX=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2
LD=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ld
RANLIB=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib
STRIP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/strip

# Tool flags environment variables
CPPFLAGS=-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 -I/usr/local/custom/iphoneos/include
CFLAGS=-arch armv6 -arch armv7 --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 -isystem /usr/local/custom/iphoneos/include
LDFLAGS=-arch armv6 -arch armv7 --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 -L/usr/local/custom/iphoneos/lib -miphoneos-version-min=3.1

./configure --prefix=/usr/local/custom/iphoneos --disable-dependency-tracking --host=arm-apple-darwin
make
make install


On 11/01/2011, at 12:34 AM, Soeren Sandmann wrote:

> Rob Cas <sacbor at gmail.com> writes:
> 
>> 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 don't really know anything about the iPhone, but there is some
> previous discussion here:
> 
>    http://lists.freedesktop.org/archives/pixman/2010-August/000434.html
> 
> The script mentioned in that thread has this:
> 
> export CC="/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.0 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator$version.sdk"
> export CXX="/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.0 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator$version.sdk"
> export CFLAGS="-fasm-blocks -Wno-trigraphs -Wreturn-type -Wunused-variable -I$prefix/include -L$prefix/lib"
> export CXXFLAGS="$CFLAGS"
> 
> Maybe you need something similar?
> 
> 
> Soren



More information about the Pixman mailing list