On Fri, Apr 29, 2011 at 10:47:01PM +1200, Ralph Versteegen wrote: > On 29 April 2011 03:16, James Paige <[email protected]> wrote: > > On Thu, Apr 28, 2011 at 08:06:22AM -0700, James Paige wrote: > >> On Thu, Apr 28, 2011 at 5:00 AM, <[email protected]> wrote: > >> > teeemcee > >> > 2011-04-28 05:00:20 -0700 (Thu, 28 Apr 2011) > >> > 173 > >> > Added music_get_info, implemented by music_sdl which now reports much > >> > more information; > >> > musicbackendinfo is printed sooner at startup; > >> > gfx_sdl prints which driver it's using > >> > >> This revision fails to build on my Linux box, saying: > >> > >> linking: -dynamic-linker /lib/ld-linux.so.2 -T > >> "/usr/share/freebasic/lib/linux/elf_i386.x" -m elf_i386 -L "win32" -L > >> "/usr/share/freebasic/lib/linux" -L "." -L "/usr/X11R6/lib" > >> "/usr/share/freebasic/lib/linux/crt1.o" > >> "/usr/share/freebasic/lib/linux/crti.o" > >> "/usr/share/freebasic/lib/linux/crtbegin.o" "os_unix.o" "util.o" > >> "blit.o" "base64.o" "array.o" "vector.o" "game.o" "bmod.o" > >> "bmodsubs.o" "menustuf.o" "moresubs.o" "yetmore.o" "yetmore2.o" > >> "savegame.o" "hsinterpreter.o" "game-gfx_sdl.o" "game-gfx_fb.o" > >> "game-music_sdl.o" "game-sdl_lumprwops.o" "game-allmodex.o" > >> "game-backends.o" "game-lumpfile.o" "game-misc.o" "game-bam2mid.o" > >> "game-common.o" "game-bcommon.o" "game-browse.o" "game-loading.o" > >> "game-reload.o" "game-reloadext.o" "game-slices.o" "$$fb_icon$$.o" -o > >> "ohrrpgce-game" -( -lX11 -lXext -lXpm -lXrandr -lXrender -lpthread > >> -lSDL -lfbgfx -lSDL_mixer -lfbmt -lgcc -lc -lm -ldl -lncurses -lsupc++ > >> -lgcc_eh "/usr/share/freebasic/lib/linux/fbrt0.o" -) > >> "/usr/share/freebasic/lib/linux/crtend.o" > >> "/usr/share/freebasic/lib/linux/crtn.o" > >> game-music_sdl.o: In function `MUSIC_GET_INFO': > >> /home/james/src/ohr/wip/music_sdl.bas:86: undefined reference to > >> `Mix_GetNumMusicDecoders' > >> /home/james/src/ohr/wip/music_sdl.bas:88: undefined reference to > >> `Mix_GetMusicDecoder' > >> /home/james/src/ohr/wip/music_sdl.bas:92: undefined reference to > >> `Mix_GetNumChunkDecoders' > >> /home/james/src/ohr/wip/music_sdl.bas:94: undefined reference to > >> `Mix_GetChunkDecoder' > >> scons: *** [ohrrpgce-game] Error 1 > >> scons: building terminated because of errors. > > > > > > Looking at this a little more, I am thinking that maybe these four > > functions are only defined in SDL_mixer 1.2.10 > > > > Ubuntu Linux 10.10 has SDL_mixer 1.2.8 > > > > I also notice that Ubuntu 11.4 (which apparently releases today) also > > ships SDL_mixer 1.2.8 > > > > --- > > James > > Options: wrap these in a #ifdef and only use on Windows and OSX, where > the SDL_mixer version is guaranteed, or add a test to scons which > writes out a config file, configure style (does scons have any > equivalent to configure system testing and config.h generation?). > Unfortunately the FB headers are unrelated to the actual system > headers, so testing the headers with an #ifdef is not possible. The > fact that headers have to be translated from C to FB and distributed > with FB is a large weakness in FB; I've seen suggestions that FB grow > a C parser :)
Ifdeffing those so they don't compile on Linux seems like a good workaround. I am going to try that. --- James _______________________________________________ Ohrrpgce mailing list [email protected] http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
