I got an iBook last week and decided to give a try to Project Builder yesterday. I installed SDL (SDL-devel-1.2.6.pkg.tar.gz ) and had no problem to port a small project to the “SDL Application” project template.
Next I tried to install SDL Mixer (SDL_mixer-devel-1.2.5.pkg.tar.gz). Was the package installer supposed to create a new Framework? I tried to use SDL_Mixer on the “SDL Application” project template and it failed to include SDL_mixer.h when compiling(duh!).
I tried to add the SDL_Mixer framwork (include in the home directory), but it didn’t changed anything. Where exactly have I got lost? The installation apparently was sucessful, as there where no error messages.
Paulo
You didn’t get lost. The application template doesn’t have the search
paths you need for SDL_Mixer, as you’ve already found out.
You need to add
$(HOME)/Library/Frameworks/SDL_mixer.framework/Headers to the header
search paths
Add add
-framework SDL_mixer
to the linker flags.
This confusion is very common, especially for Project Builder novices.
I could (possibly) write a tool to do this semi-automatically. If
someone would like to help I can hand over my (yet unreleased)
framework for modifying project files.
Cheers,
DarrellOn Thursday, September 4, 2003, at 03:01 PM, sdl-request at libsdl.org wrote:
Next I tried to install SDL Mixer
(SDL_mixer-devel-1.2.5.pkg.tar.gz). Was the package installer supposed
to create a new Framework? I tried to use SDL_Mixer on the “SDL
Application” project template and it failed to include SDL_mixer.h
when compiling(duh!).
I tried to add the SDL_Mixer framwork (include in the home
directory), but it didn’t changed anything. Where exactly have I got
lost? The installation apparently was sucessful, as there where no
error messages.
Thanks Darrell!! It worked right away, now I will try to port my on-going game project to Mac OS :). I
don’t know who is responsible for the SDL FAQ, but this question on how to use SDL Mixer on Project
Builder would be a nice addition to the Mac OS X section.
Paulo> You didn’t get lost. The application template doesn’t have the search
paths you need for SDL_Mixer, as you’ve already found out.
You need to add
$(HOME)/Library/Frameworks/SDL_mixer.framework/Headers to the header
search paths
Add add
-framework SDL_mixer
to the linker flags.
This confusion is very common, especially for Project Builder novices.
I could (possibly) write a tool to do this semi-automatically. If
someone would like to help I can hand over my (yet unreleased)
framework for modifying project files.
Cheers,
Darrell