Changes between Version 1 and Version 2 of libcaca/devel


Ignore:
Timestamp:
10/31/2008 06:29:56 PM (15 years ago)
Author:
bsittler
Comment:

Lots of examples for Mac OS X. Maybe too many, in fact. Please feel free to clean it up :)

Legend:

Unmodified
Added
Removed
Modified
  • libcaca/devel

    v1 v2  
    3030
    3131A `libcaca.sln` Visual Studio solution is also provided, but not actively maintained. Its primary purpose is to debug libcaca on the Windows platform.
     32
     33== Developing on Mac OS X ==
     34
     35By 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
     39export MACOSX_DEPLOYMENT_TARGET MACOSX_SDK PKG_CONFIG ARCH CFLAGS
     40MACOSX_DEPLOYMENT_TARGET=10.4
     41MACOSX_SDK=/Developer/SDKs/MacOSX10.4u.sdk
     42PKG_CONFIG=false
     43ARCH='-arch ppc -arch i386'
     44CFLAGS='-L/usr/lib -I/usr/include -arch ppc -arch i386'
     45./configure --disable-dependency-tracking  --disable-slang
     46make
     47}}}
     48
     49The resulting binary should run on Intel or PowerPC CPUs on Mac OS X 10.4 and up.
     50
     51Also 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?