[SDL] Mac OS X Universal Binaries

Torsten Giebl wizard at syntheticsw.com
Sat Dec 2 09:53:03 PST 2006


Hello !


> At a rough guess, you could use otool -L. If the PPC part of the binary
> links to libSystem.B.dylib, it needs 10.3.9+. If it links to
> libSystem.dylib it can run on earlier systems.
>
> You may want to verify this with a gcc3 compiled PPC binary first. I
> could be wrong :)


No, you are wrong. I just tested this with SDL and
used the fatbuild.sh ppc part. I am on a PPC Mac with the latest
XCode Tools and Updates :


-----------------


c0a80121:/tmp/SDL-1.2/build/ppc/build/.libs wizard$ otool -L libSDL.dylib
libSDL.dylib:
        /usr/local/lib/libSDL-1.2.0.dylib (compatibility version 12.0.0,
current version 12.1.0)
        /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
(compatibility version 1.0.0, current version 1.0.0)
        /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
(compatibility version 1.0.0, current version 120.3.0)
        /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
(compatibility version 1.0.0, current version 8.0.0)
        /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
(compatibility version 1.0.0, current version 12.0.0)
        /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
(compatibility version 1.0.0, current version 18.0.0)
        /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
(compatibility version 2.0.0, current version 122.0.0)
        /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
(compatibility version 1.0.0, current version 1.0.0)
        /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
(compatibility version 1.0.0, current version 1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 63.0.0)
c0a80121:/tmp/SDL-1.2/build/ppc/build/.libs wizard$

--------------------


I hope there is any way to do the checking.


CU





More information about the SDL mailing list