[Pixman] Compiling for iOS

Gerald Hansford gerhans at gmail.com
Sun Aug 29 08:52:54 PDT 2010


Hello - thank you both for your replies. I have tried both of these options:

./configure --host=arm-apple-darwin

which builds, but creates a libpixman-1.a which is for I386, and I have also
tried:

./configure --host=arm-apple-darwin CFLAGS="-arch armv6"

which results in

configure: error: in `/Users/gerhans/Downloads/pixman-0.19.2':
configure: error: C compiler cannot create executables

I have also tried various permutations of arguments I've gleaned from other
projects' build instructions, ultimately arriving at this monster (which
still fails in the same manner):
./configure --host=arm-apple-darwin
CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1
CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1
LD=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1
CFLAGS="-I/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/gcc/arm-apple-darwin10/4.2.1/include/
-I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk/usr/include
-std=c99 -arch armv6 -Diphoneos_version_min=3.2"

I appreciate your time spent looking at this.



On Sat, Aug 28, 2010 at 1:44 PM, Luca Barbato <lu_zero at gentoo.org> wrote:

>
> if you have the Xcode provided gcc you have to specify the arch in the
> CFLAGS and everything should work by itself.
>
> if you have a custom-built toolchain using the triplet then you can use
> the host param.
>
> lu
>
> --
>
> Luca Barbato
> Gentoo/linux
> http://dev.gentoo.org/~lu_zero
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pixman/attachments/20100829/87b4dd5c/attachment.html>


More information about the Pixman mailing list