VOGONS

Common searches


First post, by Guest

User metadata

I'm a Gentoo Linux user. I emerged the DOSBox 0.61 ebuild. SDL compiles cleanly, while DOSBox doesn't. It says:

g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../include   -march=pentium4 -O2 -pipe -fomit-frame-pointer -fexpensive-optimizations -frerun-loop-opt -frerun-cse-after-loop -ffast-math -s -I/usr/include/SDL -D_REENTRANT -c -o dosbox.o `test -f 'dosbox.cpp' || echo './'`dosbox.cpp
g++ -march=pentium4 -O2 -pipe -fomit-frame-pointer -fexpensive-optimizations -frerun-loop-opt -frerun-cse-after-loop -ffast-math -s -I/usr/include/SDL -D_REENTRANT -o dosbox dosbox.o cpu/libcpu.a debug/libdebug.a dos/libdos.a fpu/libfpu.a hardware/libhardware.a gui/libgui.a ints/libints.a misc/libmisc.a shell/libshell.a -lasound -lm -ldl -lpthread -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpng -lz -lSDL_net -lGL
gui/libgui.a(sdlmain.o)(.text+0x1c5f): In function `main':
: undefined reference to `SDL_NumJoysticks'
gui/libgui.a(sdlmain.o)(.text+0x1c6f): In function `main':
: undefined reference to `SDL_JoystickEventState'
gui/libgui.a(sdlmain.o)(.text+0x1c7b): In function `main':
: undefined reference to `SDL_JoystickOpen'
gui/libgui.a(sdlmain.o)(.text+0x1c88): In function `main':
: undefined reference to `SDL_JoystickNumButtons'
gui/libgui.a(sdlmain.o)(.text+0x1c9b): In function `main':
: undefined reference to `SDL_JoystickNumAxes'
gui/libgui.a(sdlmain.o)(.text+0x1ca9): In function `main':
: undefined reference to `SDL_JoystickName'
collect2: ld returned 1 exit status
make[3]: *** [dosbox] Error 1
make[3]: Leaving directory `/var/tmp/portage/dosbox-0.61/work/dosbox-0.61/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dosbox-0.61/work/dosbox-0.61/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dosbox-0.61/work/dosbox-0.61'
make: *** [all] Error 2

Can someone help me, please? Thanks in advance.

Reply 2 of 4, by Guest

User metadata
prompt wrote:

This looks like joystick support is not enabled in your libsdl. Execute 'emerge -pv libsdl' and see if the 'nojoystick' useflag it set.

LibSDL was already installed, so Portage said nothing about it. However, you're right: when I installed LibSDL I set nojoystick. I'm now trying to reinstall it.

Reply 4 of 4, by Harekiet

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Send the request to the sdl people to not completely remove all the joystick code when the joystick is disabled but just supply the dummy drivers 😀