View Full Version : SDL, libpng, etc. on Intel
misteranderson
2006.04.26, 10:58 PM
I've been searching tirelessly for quite some time, and I cannot find ANY information on how all these people seem to be recompiling SDL, amongst other libraries, to work on an intel Mac. Could anyone shed some light on this? I know very little about makefiles, etc, and generally use Xcode for everything I do. Any help would be appreciated, thanks!
AnotherJake
2006.04.26, 11:15 PM
See this thread (http://www.idevgames.com/forum/showthread.php?t=11767). OneSadCookie has a link to his shell scripts down at the bottom that should be handy.
Bachus
2006.04.26, 11:27 PM
I don't know about SDL, but libpng compiles fine for x86. Grab this file (http://generalconsumption.org/projects/libpng_zlib/) and then set it up as a universal binary just like you would any other project. OpenAL is the same way.
Any other library that compiles fine for x86, but doesn't have an Xcode project should work fine from the command-line. Compile once for x86 and once for PPC and then use the command-line lipo to sew em together.
misteranderson
2006.04.27, 01:31 AM
Hmm, unfortunately, SDL.dmg doesn't exist anymore, and the shell script won't work.
On libpng, I built it successfully, and I put the framework in both /Library/Frameworks and /System/Library/Frameworks.
I then added the framework to Xcode, but when I try to compile, gcc says it can't locate framework for -framework libpng.
Any ideas.
Bachus
2006.04.27, 03:19 AM
On libpng, I built it successfully, and I put the framework in both /Library/Frameworks and /System/Library/Frameworks.
I then added the framework to Xcode, but when I try to compile, gcc says it can't locate framework for -framework libpng.
Try adding /Library/Frameworks/ to the Framework Search Paths in the build options for your target.
OneSadCookie
2006.04.27, 04:29 AM
libpng doesn't build a framework...
misteranderson
2006.04.27, 03:52 PM
I was using the Xcode project Bachus linked to to build it, and it builds a .framework. Dunno if its proper or just a nice wrapper for it, but thats what the project builds.
Anyway, back to SDL, all I really want is for it to work. I tried the OpenGL SDL Application test project on my MacBook Pro. It works fine on my G5, but when I try it on my MacBook (that I installed SDL on properly) it can't link any of the SDL symbols/functions. I figured this was because it was a PPC binary. I really don't care about a universal binary at this point, I just want an intel binary of SDL.
I tried compiling it from the command line, but it gave errors. (Just did ./configure then make).
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.