Hi,
So can someone confirm to me that those libs are no longer used in
Globulation :
libaudio.a
libslang.a
libgpm.a ?
They were in the static linking but not in the dynamic linking as
far as I see.
I confirm, they were internal SDL deps on Linux. Normally you just need:
- libsdl1.2
- libsdl-image1.2
- libsdl-net1.2
- GL (optional)
- libfreetype6
- libvorbis
- libspeex
- libz
and their own dependencies of course
Now I have mixed the flags for dynamic and static linking and I get
that :
g++ -Wall -g -L/sw/lib -L/usr/local/GNUstep/System/Library/Libraries
-o glob2 IntBuildingType.o AI.o AINicowar.o AINull.o AINumbi.o
AICastor.o AIToubib.o AIWarrush.o Building.o BuildingType.o Bullet.o
Engine.o EntityType.o Fatal.o GUIGlob2FileList.o GUIMapPreview.o Game.o
GameGUI.o GameGUIDialog.o GameGUILoadSave.o Glob2.o GlobalContainer.o
Settings.o Map.o MapGenerator.o MapEdit.o NetGame.o Order.o Player.o
SessionConnection.o Race.o Ressource.o Sector.o Session.o SGSL.o
SoundMixer.o Team.o TeamStat.o Unit.o UnitType.o Utilities.o
ChooseMapScreen.o CustomGameScreen.o MainMenuScreen.o CreditScreen.o
CampaignScreen.o MultiplayersOfferScreen.o YOGScreen.o SettingsScreen.o
MultiplayersHostScreen.o MultiplayersHost.o MultiplayersJoinScreen.o
MultiplayersJoin.o MultiplayersConnectedScreen.o
MultiplayersChooseMapScreen.o MultiplayersCrossConnectable.o
NewMapScreen.o YOG.o MapGenerationDescriptor.o LogFileManager.o
YOGPreScreen.o ScriptEditorScreen.o EndGameScreen.o BuildingsTypes.o
GameUtilities.o BitArray.o Brush.o IRC.o VoiceRecorder.o
../libgag/src/libgag.a -lpthread /sw/lib/libSDL_image.a
/sw/lib/libSDL_net.a /sw/lib/libpng*.a /sw/lib/libtiff.a
/sw/lib/libjpeg.a /sw/lib/libvorbisfile.a
/sw/lib/libvorbis.a/sw/lib/libogg.a /usr/local/lib/libspeex.a
/sw/lib/libSDL.a /sw/lib/libSDLmain.a /sw/lib/libaa.a
/sw/lib/ncurses/libncurses.a /usr/X11R6/lib/libfreetype.a -lz
-framework Cocoa -framework OpenGL
ld: /sw/lib/libSDL.a(SDL_QuartzVideo.o) illegal reference to symbol:
_HideMenuBar defined in indirectly referenced dynamic library
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
HIToolbox.framework/Versions/A/HIToolbox
ld: /sw/lib/libSDL.a(SDL_coreaudio.o) illegal reference to symbol:
_AudioUnitSetProperty defined in indirectly referenced dynamic library
/System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
ld: /sw/lib/libSDL.a(SDL_romaudio.o) illegal reference to symbol:
_NewSndCallBackUPP defined in indirectly referenced dynamic library
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
CarbonSound.framework/Versions/A/CarbonSound
ld: /sw/lib/libSDL.a(SDL_sysjoystick.o) illegal reference to symbol:
_IOCreatePlugInInterfaceForService defined in indirectly referenced
dynamic library
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
Looks like some incompatibility between the Cocoa framework (needed
for OpenGL) and libSDL. But one more time when I was dynamic linking it
worked fine. So i don't understand. Any idea ?
Hum, try to remove -framework Cocoa. I've the feeling that symbol got
defined twice, both statically in libSDL.a and dynamically in framework
Coca. Also, are you sure you have the same version of the framework in
libSDL.a that you are using now? Those are just idea, please keep in
mind that I'm not at all an OS X specialist. Of course, I would also
suggest that you google search something like "illegal reference to
symbol" OSX.
Steph
_______________________________________________
glob2-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/glob2-devel