# SDL 1.2.4/1.2.5 + Mac OS X

**URL:** <https://discourse.libsdl.org/t/sdl-1-2-4-1-2-5-mac-os-x/7100>\
**Category:** SDL Development\
**Created:** [July 23, 2002, 6:11pm UTC](https://discourse.libsdl.org/t/sdl-1-2-4-1-2-5-mac-os-x/7100 "2002-07-23T18:11:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Holger\_Schemel](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/h/a5b964/32.png) [@Holger\_Schemel](https://discourse.libsdl.org/u/Holger_Schemel)\
**Post date:** [July 23, 2002, 6:11pm UTC](https://discourse.libsdl.org/t/sdl-1-2-4-1-2-5-mac-os-x/7100/1 "2002-07-23T18:11:00Z")

</div>

Hi,

I have the following problems when compiling Rocks’n’Diamonds  
(see [www.artsoft.org/rocksndiamonds/](http://www.artsoft.org/rocksndiamonds/) for source code package)  
with either SDL 1.2.4 or 1.2.5 (from CVS from 2002-06-15) on  
Mac OS X 10.1 (compiling it with SDL 1.2.2 works fine, but then  
I cannot use the current SDL\_mixer 1.2.4):

When compiling with SDL 1.2.4, I get:  
---------- snap ----------  
cc main.o init.o config.o events.o tools.o screens.o game.o editor.o files.o tape.o cartoons.o network.o netserv.o libgame/libgame.a -lSDL\_image -lSDL\_mixer  
-L/usr/local/lib -lSDLmain -lSDL -framework OpenGL -framework AGL -framework Carbon -lm -o …/rocksndiamonds  
/usr/bin/ld: Undefined symbols:  
\_NAStuffToneDescription  
\_TuneGetStatus  
\_TunePreroll  
\_TuneQueue  
\_TuneSetHeader  
\_TuneSetTimeScale  
\_TuneSetVolume  
\_TuneStop  
\_TuneUnroll  
make[1]: \*\*\* […/rocksndiamonds] Error 1  
make: \*\*\* [sdl] Error 2  
---------- snap ----------

When compiling with SDL 1.2.5/CVS, I get:  
---------- snap ----------  
cc main.o init.o config.o events.o tools.o screens.o game.o editor.o files.o tape.o cartoons.o network.o netserv.o libgame/libgame.a -lSDL\_image -lSDL\_mixer  
-L/usr/local/lib -lSDLmain -lSDL -framework Cocoa -framework OpenGL -lm -o …/rocksndiamonds  
/usr/bin/ld: /usr/local/lib/libSDL\_mixer.a(native\_midi\_mac.o) illegal reference to symbol: \_NAStuffToneDescription defined in indirectly referenced dynamic  
library /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime  
make[1]: \*\*\* […/rocksndiamonds] Error 1  
make: \*\*\* [sdl] Error 2  
---------- snap ----------

(The Makefile uses `sdl-config ...` in both cases.)

Has anybody any idea what might be going wrong here?  
(The only obvious difference I see is that SDL 1.2.2 used “-framework  
Carbon” instead of “-framework Cocoa” with SDL 1.2.4/1.2.5.)

Thanks in advance for any hint!

Best regards,  
Holger–  
holger.schemel at [mediaways.net](http://mediaways.net)

---

<div class="post-metadata">

**Author:** ![Darrell\_Walisser](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/darrell_walisser/32/588_2.png) [@Darrell\_Walisser](https://discourse.libsdl.org/u/Darrell_Walisser)\
**Post date:** [July 23, 2002, 6:53pm UTC](https://discourse.libsdl.org/t/sdl-1-2-4-1-2-5-mac-os-x/7100/2 "2002-07-23T18:53:00Z")

</div>

> Hi,
> 
> I have the following problems when compiling Rocks’n’Diamonds

[…]

You should be linking to Quicktime.framework, I think that will help.

cc main.o init.o config.o events.o tools.o screens.o game.o editor.o  
files.o tape.o cartoons.o network.o netserv.o libgame/libgame.a  
-lSDL\_image -lSDL\_mixer  
-L/usr/local/lib -lSDLmain -lSDL -framework Cocoa -framework OpenGL  
-framework QuickTime -lm -o …/rocksndiamonds

I _thought_ this was added to sdl-config when the YUV acceleration code  
was added a while back. Perhaps this change hasn’t made it yet… Max?

I don’t think sdl-config will detect the SDL\_mixer QuickTime dependency,  
so with 1.2.2 you would have to add this. With 1.2.5 since SDL _itself_  
contains QuickTime calls now, sdl-config should have picked that up for  
you.

Cheers,  
DarrellOn Tuesday, July 23, 2002, at 08:07 PM, Holger Schemel wrote:

---

<div class="post-metadata">

**Author:** ![Holger\_Schemel](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/h/a5b964/32.png) [@Holger\_Schemel](https://discourse.libsdl.org/u/Holger_Schemel)\
**Post date:** [July 24, 2002, 5:23pm UTC](https://discourse.libsdl.org/t/sdl-1-2-4-1-2-5-mac-os-x/7100/3 "2002-07-24T17:23:01Z")

</div>

Hi Darrell,

> > I have the following problems when compiling Rocks’n’Diamonds  
> > […]
> 
> You should be linking to Quicktime.framework, I think that will help.
> 
> cc main.o init.o config.o events.o tools.o screens.o game.o editor.o  
> files.o tape.o cartoons.o network.o netserv.o libgame/libgame.a  
> -lSDL\_image -lSDL\_mixer  
> -L/usr/local/lib -lSDLmain -lSDL -framework Cocoa -framework OpenGL  
> -framework QuickTime -lm -o …/rocksndiamonds

That was exactly the cause. Now when I look at the error message again,  
I think that I should have been able to solve it by myself. Adding the  
missing “-framework QuickTime” did the job – thanks a lot! 🙂

> I _thought_ this was added to sdl-config when the YUV acceleration code  
> was added a while back. Perhaps this change hasn’t made it yet… Max?

The change found its way into the “sdl-config” script, but was then  
commented out again. (Or, more precisely, the “-framework QuickTime”  
is missing for the “–libs” option, but is there for the “–staticlibs”  
option (where “–libs|–static-libs” is commented out, which would also  
do the right job here).)

> I don’t think sdl-config will detect the SDL\_mixer QuickTime dependency,  
> so with 1.2.2 you would have to add this. With 1.2.5 since SDL _itself_  
> contains QuickTime calls now, sdl-config should have picked that up for  
> you.

It hasn’t. ☹  
(At least not in the actual CVS snapshot tarball.)

This seems to be a small bug that should be fixed in the Mac OS X version  
of “sdl-config”, I think…

Thanks again for your help!

Best regards,  
Holger–  
holger.schemel at [mediaways.net](http://mediaways.net)
