SDL 1.2 on Mac OS X El Capitan |
Dominus
|
If you built SDL 1.x from current 1.x branch of SDL's mercurial it might work (or you might need to adapt your source).
I'm building Exult against SDL 1.x and it still works in El Capitan. |
|||||||||||
|
suhlman
|
Ok, sounds promising, thank you.....I am trying to do this and have downloaded SDL-453dce726f24.zip.
I cannot find the cofigure file in the SDL-1.2 branch. Do I grab the one from the default branch SDL-0be86b512d34.zip ? |
|||||||||||
|
suhlman
|
So if I want to build the latest SDL 1.x branch of Mercurial do I :
- click on 'branches ....where I see SDL-1.2 - click on the 'files' link next to the 1.2 branch - click on 'zip' The resulting download (SDL-453dce726f24.zip) does not contain the 'configure' file, which is abviosly missing when I try to run the following commands to build SDL: ./configure make sudo make install Would it be missing other files....do the branch files need to be merged with another download? I apolgize for my ignorance here. I think what I need to do is build static dynamic linking libraries to bundle with the installers of our programs to see if the updated libraries will run on El Capitain. |
|||||||||||
|
Dominus
|
You need to run ./autogen.sh first.
Also depends, if you are making use of the framework, then use xcode to build SDL (through the xcode.project file somewhere). |
|||||||||||
|
suhlman
|
Thank you Dominus...I did that but get :
Couldn't find autoconf, aborting ...looking for this autoconf file |
|||||||||||
|
suhlman
|
...installed Homebrew (http://brew.sh/) to install Autoconf and Automake:
brew install autoconf automake ran ./autogen.sh....now I am ready to run ./configure ran ./configure successfully ran make....got 1 error : In file included from ./src/events/SDL_events.c:27: ./include/SDL_syswm.h:58:10: fatal error: 'X11/Xlib.h' file not found #include <X11/Xlib.h> ^ 1 error generated. make: *** [build/SDL_events.lo] Error 1 ..investigating |
|||||||||||
|
Dominus
|
You probably don't need the x11 backend. Disable it via ./configure --without-x
But check via ./configure --help whether I gave you the correct command Or download and install xqartz and add the path to the xqartz includes. Or check with brew whether they provide sdl 1.x devel... |
|||||||||||
|
suhlman
|
btw, not using the framework
You were right, ./configure --without-x ran without error! make.....generated 6 warnings but no errors 'sudo make install' ran successfully, created a build folder Now I need to get from here to having these two files: libSDL-1.2.0.dylib libSDL_mixer-1.2.0.dylib ..I guess now they should be named: libSDL-1.2.15.dylib libSDL_mixer-1.2.15.dylib .....no idea how yet, seeing what I can find.... |
|||||||||||
|
Dominus
|
Make install should have put the sdl libs somewhere in your prefix. No idea what that is though with homebrew. /usr/local/libs or somewthing like that.
But sdl_mixer is seperate from the sdl sources, you need to download that from its own repo. For that you can get the last release sources (aimed at sdl 1.x) since that didn't get any relevant fixes, I think. |
|||||||||||
|
suhlman
|
Hey, you are rght, the sdlibs were created in /usr/local/lib.
I tried running our app and it crashed since it coudln't find the libSDL_mixer as you predicted.....now to work on that. Thank you Dominus |
|||||||||||
|
suhlman
|
The next hurdle is:
Reason: no suitable image found. Did find: /usr/local/lib/libSDL-1.2.0.dylib: mach-o, but wrong architecture SDL is architecture: x86_64 ...whereas our app is built for ppc and i386 We don't care about pps really but is it easy to build SDL for i386 (maybe I must build it for ppc as well in order for the 'architectures' to match....)? |
|||||||||||
|
suhlman
|
Wow, what luck, it worked Dominus!
I built libSDL-1.2.0.dylib for i386 and the libSDL_mixer-1.2.0.dylib as well. However our program only worked if I used the older libSDL_mixer-1.2.0.dylib and the new libSDL-1.2.0.dylib. But everything seems fine. Thank you, Steve |
|||||||||||
|
Dominus
|
Great! Happy to be helpful
|
|||||||||||
|