| 32 | |
| 33 | == Developing on Mac OS X == |
| 34 | |
| 35 | By default libcaca is built only for the CPU architecture specified by `--host` (which defaults to `--build`, which defaults to the CPU architecture on which you ran configure, i.e. `i386-apple-darwin`''version'' or `powerpc-apple-darwin`''version''). You can override this in order to build a "Universal" i386 + ppc libcaca like this: |
| 36 | |
| 37 | {{{ |
| 38 | ./bootstrap |
| 39 | export MACOSX_DEPLOYMENT_TARGET MACOSX_SDK PKG_CONFIG ARCH CFLAGS |
| 40 | MACOSX_DEPLOYMENT_TARGET=10.4 |
| 41 | MACOSX_SDK=/Developer/SDKs/MacOSX10.4u.sdk |
| 42 | PKG_CONFIG=false |
| 43 | ARCH='-arch ppc -arch i386' |
| 44 | CFLAGS='-L/usr/lib -I/usr/include -arch ppc -arch i386' |
| 45 | ./configure --disable-dependency-tracking --disable-slang |
| 46 | make |
| 47 | }}} |
| 48 | |
| 49 | The resulting binary should run on Intel or PowerPC CPUs on Mac OS X 10.4 and up. |
| 50 | |
| 51 | Also by default libcaca is built against the following Mac OS X SDK versions, provided the Cocoa driver is not disabled by ./configure --disable-cocoa: |
| 52 | |
| 53 | * '''ppc''' host: `MACOSX_SDK=/Developer/SDKs/MacOSX10.3.9.sdk` ''(the oldest SDK with X11 support on ppc)'' |
| 54 | * '''i386''' host: `MACOSX_SDK=/Developer/SDKs/MacOSX10.4u.sdk` ''(the oldest SDK with i386 support)'' |
| 55 | * '''x86_64''' host: `MACOSX_SDK=/Developer/SDKs/MacOSX10.5.sdk` ''(the oldest SDK with Cocoa support on x86_64)'' |
| 56 | * '''ppc64''' host: no idea. Does Cocoa even work there? |