[SDL] SDL 1.2.12 & Leopard (target 10.3.9 or better)

Gabriele Greco gabriele.greco at darts.it
Mon Nov 19 07:03:56 PST 2007


I've a problem to make my leopard (intel) built binaries work on 10.3.9 
PPC. Fortunately I still  have a tiger machine so I'm not stuck :)

Anyway here is the problem.

#include "SDL.h"
#include <stdio.h>

int main(int argc, char *argv[])
{
	printf("Hello world....\n");
}


I compile with something like that:

gcc -arch ppc -arch i386 -o test main.c SDLMain.m -framework SDL 
-isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 
-I/Library/Frameworks/SDL.framework/Headers -framework Cocoa

(The -mmacosx-version-min=10.x is needed only in leopard, in tiger I 
used to build without it, I've tried both with x=3 and x=4 on leopard).

SDLMain.m is the stock one of 1.2.12 distribution.

Anyway my app crashes inside SDLMain.m, in CustomApplication(), I'm 
doing something wrong? If it's a bug in SDL there is some patch to fix this?

-- 
Bye,
  Gabry


More information about the SDL mailing list