Hello, I can't compile gltron 0.70. This is the output of emerge: g++ -o gltron gltron.o src/game/libgame.a src/input/libinput.a src/audio/libaudio.a src/video/libvideo.a src/configuration/libconfiguration.a src/base/libbase.a src/filesystem/libfilesystem.a nebu/input/libinput.a nebu/audio/libaudio.a nebu/video/libvideo.a nebu/scripting/libscripting.a nebu/filesystem/libfilesystem.a nebu/base/libbase.a lua/src/liblua.a lua/src/lib/liblualib.a -lSDL_sound -lmikmod -lsmpeg -lvorbisfile -lvorbis -logg -lsmpeg -lpng -lz -lGL -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread src/game/libgame.a(init_sdl.o)(.text+0x84): In function `inputInit': : undefined reference to `SDL_NumJoysticks' src/game/libgame.a(init_sdl.o)(.text+0xa8): In function `inputInit': : undefined reference to `SDL_JoystickEventState' src/game/libgame.a(init_sdl.o)(.text+0xb2): In function `inputInit': : undefined reference to `SDL_JoystickOpen' collect2: ld returned 1 exit status make[1]: *** [gltron] Fehler 1 make[1]: Leaving directory `/var/tmp/portage/gltron-0.70/work/gltron-0.70' make: *** [all-recursive] Fehler 1 !!! ERROR: games-action/gltron-0.70 failed. !!! Function games_src_compile, Line 122, Exitcode 2 !!! emake failed This is how I emerged gltron (or at least tried to): anna games-action # emerge gltron -pv These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] media-libs/libmikmod-3.1.10-r1 +oss -esd +alsa [ebuild N ] media-libs/smpeg-0.4.4-r4 +X -gtk +opengl [ebuild N ] media-libs/sdl-sound-1.0.0 +oggvorbis [ebuild N ] media-libs/sdl-mixer-1.2.5-r1 +mpeg -mikmod +oggvorbis [ebuild N ] games-action/gltron-0.70 anna games-action # Reproducible: Always Steps to Reproduce: 1. Emerge gltron Actual Results: gltron doesn't compile Expected Results: gltron compiles
what does `emerge libsdl -pv` show ?
Whoops, this happens when you compile libsdl with the 'nojoystick' USE flag. So it was kinda like my own fault. But maybe you devs would make a reference in the ebuld about compiling libsdl wihtout nojoystick for this game? Thanks Sebastian
SpanKY you own me ;)
there already is a reference ;) root@vapier 0 root # grep nojoystick /usr/portage/profiles/use.local.desc media-libs/libsdl:nojoystick - Allow users to disable joystick support completely (at their own risk) and in the ebuild: # if you disable audio/video/joystick and something breaks, you pick up the pieces