[quake3] [PATCH] Mac OSX support

Tony J. White tjw at webteam.net
Mon Apr 10 15:31:02 EDT 2006


On Mon, Apr 10, 2006 at 02:47:25PM -0400, Ryan C. Gordon wrote:
> 
> >Oh, sorry.  I guess I was just a bit confused by the comments in Anders' SDL
> >patch which seemed to indicate that dlopen() should be used pre-10.3.  And
> >also by the fact that ioq3 did not use .bundle previously.
> 
> There's no dlopen() function in Mac OS X before 10.3. SDL reimplements dlopen() 
> internally using lower level Carbon calls to retain 10.2 compatibility.

Yes, it appears I read Anders's comment backwards:

+/*
+	With Mac OS X v10.3 and above, using dlopen is recommended.
+	See http://developer.apple.com/technotes/tn2002/tn2071.html
+*/

So apperantly my patch will not break compatability with older OSX versions
afterall.  It would be nice to get someone with older versions of OSX to
test building (or even running) my 10.4 build:

http://trem.tjw.org/Tremulous-20060409.dmg

I have a feeling the framework dependencies may tie the build to 10.4.  
On the other hand, I obviously don't know what I'm talking about :)

> Dynamic libraries, unlike bundles, can't be unloaded on Mac OS X, which might 
> be why ET has that requirement.

All the more reason to use .bundles then.  I guess I'm still a bit confused 
as to why ioq3 even tries to load the .dylib files instead of using bundles
in the first place.

-Tony




More information about the quake3 mailing list