|
From: Richard W. <rwa...@ma...> - 2003-01-01 21:56:18
|
On Wednesday, January 1, 2003, at 04:23 PM, Stuart Lamble wrote: > > First of all -- are you using the latest CVS? If so, I'll see if my > build breaks in the same way. Also, which versions of the various > libraries -- ogg, vorbis, SDL, SDL_mixer, SDL_image -- are you using? > Only SDL_mixer needs to be from CVS; the others work fine if you use > the latest stable release. Make sure that SDL_image is compiled with > png support (jpeg support is probably useful in the general case, but > I don't think SC2 uses it.) All of the libraries I've compiled and installed by using the unstable packages provided by Fink. Here's the version info that Fink shows: sdl 1.2.5-1 sdl-mixer 1.2.4-13 sdl-image 1.2.2-1 libvorbis0 1.0-1 I'm pretty sure that SDL_image is linked w/ libpng, but since it was an automated build process I didn't really pay attention. I'll see if I can confirm that. Also, do you remember what you did to get the build.sh configuration to run? I wound up manually entering the linking info for LIB_SDL_LDFLAGS in config_proginfo ; the original script just assigns that variable to the output from 'sdl-config --libs', which introduces multiple definitions of _main in the configuration test and causes it to fail because it uses -lSDLmain . Removing that linking entry for the configuration part and adding it back to the build.vars file seemed to fix this. Additionally, there are several multiple definitions warnings after the build: ld: warning multiple definitions of symbol _DrawText obj/debug/./src/sc2code/libs/graphics/font.o definition of _DrawText in section (__TEXT,__text) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ Frameworks/QD.framework/Versions/A/QD(QD.o) definition of _DrawText ld: warning multiple definitions of symbol _CloseResFile obj/debug/./src/sc2code/libs/resource/filecntl.o definition of _CloseResFile in section (__TEXT,__text) /System/Library/Frameworks/CoreServices.framework/Versions/A/ Frameworks/CarbonCore.framework/Versions/A/CarbonCore(CarbonCore.o) definition of _CloseResFile ld: warning multiple definitions of symbol _DetachResource obj/debug/./src/sc2code/libs/resource/getres.o definition of _DetachResource in section (__TEXT,__text) /System/Library/Frameworks/CoreServices.framework/Versions/A/ Frameworks/CarbonCore.framework/Versions/A/CarbonCore(CarbonCore.o) definition of _DetachResource ld: warning multiple definitions of symbol _GetResource obj/debug/./src/sc2code/libs/resource/getres.o definition of _GetResource in section (__TEXT,__text) /System/Library/Frameworks/CoreServices.framework/Versions/A/ Frameworks/CarbonCore.framework/Versions/A/CarbonCore(CarbonCore.o) definition of _GetResource I'm thinking my problem probably has something to do with this, but I'm not quite sure how to go about fixing that. - Richard |