Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

alex_free

macrumors 65816
Original poster
Feb 24, 2020
1,149
2,439

Panther_SDL2 is a fork of SDL2 (version 2.0.3) which is compatible with Mac OS X 10.3.9
and Mac OS X 10.4.x. Currently SDL2 2.0.3 requires an Intel Mac OS X 10.5 mac to run, and
the Mac OS X 10.7 SDK at the 10.5 MACOSX_DEPLOYMENT_TARGET to compile.

Panther_SDL2 takes Thomas Bernard's excellent Mac OS X 10.4 SDK Tiger patches to the next level,
making it work at the MACOSX_DEPLOYMENT_TARGET of version 10.3, which enables Mac OS X 10.3.9
compatibility for the first time ever (10.3.8 and below will not work with this method). Xcode
2.5 has been tested.

Thomas Bernard's original unified patch, and my indivisual patches created from his unified patch
can be found in the folder 'thomas_bernard_sdl_2.0.3_patches'. My patches can be found in the
directory 'sdl2_2.0.3_panther_patches'. These are all against the official SDL2 version 2.0.3
release.

==

If you are building for a Panther target:



export MACOSX_DEPLOYMENT_TARGET=10.3
./configure --without-x --disable-joystick --disable-haptic
make
sudo make install

If you are building for Tiger:
export MACOSX_DEPLOYMENT_TARGET=10.4
./configure --without-x --disable-joystick --disable-haptic
make
sudo make install


==

Thomas BERNARD Tiger Patch:
https://gist.github.com/miniupnp/26d6e967570e5729a757

Found from this post:
https://forums.libsdl.org/viewtopic.php?p=41191
 
Last edited:
Reuploaded my old SDL2 projects here (fixed above link for panther sdl2 as well):
https://github.com/alex-free/panther-sdl2 (Mac OS X 10.3.9+) - Xcode v2.5
https://github.com/alex-free/leopard-sdl2 (Mac OS X 10.5+) - Xcode v3.0

Both use native Mac OS X APIs and do not require MacPorts. Actually, these had problems being built by newer GCC 4.9 (not tested on above). You can still link gcc4.0/4.2 libs with newer gcc though...

These were used in things like SM64EX and IOQuake3, and PantherSDL2 is still used to compile FFPlay v4.4.5.
 
Last edited:
Reuploaded my old SDL2 projects here (fixed above link for panther sdl2 as well):
https://github.com/alex-free/panther-sdl2 (Mac OS X 10.3.9+) - Xcode v2.5
https://github.com/alex-free/leopard-sdl2 (Mac OS X 10.5+) - Xcode v3.0

Both use native Mac OS X APIs and do not require MacPorts. Actually, these had problems being built by newer GCC 4.9 (not tested on above). You can still link gcc4.0/4.2 libs with newer gcc though...

These were used in things like SM64EX and IOQuake3, and PantherSDL2 is still used to compile FFPlay v4.4.5.

Thanks, I will try building Leopard version’s Cocoa part with modern SDL2, if that works (it probably will, if it is 2.0.6 and not heavily modified), we can update the port for libsdl2-cocoa.
 
Currently don’t have leopard installed anywhere, but I will certainly if I can get the time. Lmk if you have questions, cocoa works this was used in the sm64ex ports to ppc leopard on archive.org. The only thing that doesn’t work is controllers iirc.

Did you try to fix joystick support? A lot of games and emulators which use SDL2 need that, so while they may build fine, they won’t actually launch. (This is not something which I personally need – my use-cases for SDL differ, but I think a lot of ppl here want that sort of stuff.)

P. S. If you happen to have a patch as a patch (not as a single all-in commit merged with a source), it would make life easier LOL. If you don’t, don’t bother, I can generate a diff, I guess.
 
Did you try to fix joystick support? A lot of games and emulators which use SDL2 need that, so while they may build fine, they won’t actually launch. (This is not something which I personally need – my use-cases for SDL differ, but I think a lot of ppl here want that sort of stuff.)

P. S. If you happen to have a patch as a patch (not as a single all-in commit merged with a source), it would make life easier LOL. If you don’t, don’t bother, I can generate a diff, I guess.
I honestly did not really try, it might be easy. All the stuff I compiled with it I could use keyboard/mouse. It might be able to be fixed easily.

Thomas Bernard sdl2.0.6 patch:

Then replace this file (it’s from SDL 2.0.3) https://github.com/alex-free/leopard-sdl2/blob/master/src/video/cocoa/SDL_cocoakeyboard.m

It think that’s everything. It was a lot less then what panther sdl 2 needed:

My panther patches:

Thomas Bernard’s tiger patches for sdl2.0.3
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.