SDL 1.2.13 + OSX 10.6

By Joseph Misra, September 3, 2009 5:21 pm

I’ve been struggling with this for the last 24 hours, here is the solution I eventually found:

env CC=’/usr/bin/gcc-4.0′ CFLAGS=’-isysroot /Developer/SDKs/MacOSX10.5.sdk -arch i386′ LDFLAGS=’-arch i386′ ./configure –prefix=/sw –without-x

A note about this – the quotes here are all single quotes. WordPress seems to change that to something else.

7 Responses to “SDL 1.2.13 + OSX 10.6”

  1. Dom says:

    how to apply this? When I enter this in terminal I get
    “env: /Developer/SDKs/MacOSX10.5.sdk: Permission denied”

  2. Joseph Misra says:

    Oh make sure it’s all on one single line.

  3. Dom says:

    got it, the problem was that you used ยด and not ‘
    At least it got a bit further for me only to error with “env: ./configure: No such file or directory” (I did change that to ./configure –prefix=/opt/local –without-x since I’m using macports.
    Oh well… :)

  4. Joseph Misra says:

    Oh it’s this darn wordpress plugin, they are all supposed to be normal single quotes.

  5. Dom says:

    he he and forget about the ./configure problem… I was too stupid to cd to the build dir…
    Still SDL won’t build for me, though..
    I’ll wait for the macports guys to fix it…

  6. int says:

    can 64-bit (x86_64) applications use SDL?

  7. Joseph Misra says:

    Not yet, there’s a thread about it at darwinports.

Leave a Reply

Panorama theme by Themocracy