#271 Does not start because SDL has no joystick support

0.65
closed
None
5
2012-09-07
2006-10-14
laurent
No

On Solaris 10 x86, v0.65 builds fine when disabling the
dynamic CPU, using SDL 1.2.11.
However, it does not start, with the following error
message:

$ ./dosbox
Exit to error: Can't init SDL SDL not built with
joystick support

Since there is no joystick support on Solaris, SDL
can't be built with one.
0.63 and a slightly later CVS version still worked, so
is there a way to remove that requirement?

Discussion

  • Peter Veenstra
    Peter Veenstra
    2006-10-14

    Logged In: YES
    user_id=535630

    weird that 0.63 worked. the joystick requirement has always
    been present.
    you can simply disable it by modifying one line in dosbox:
    dosbox-0.65/src/gui/sdlmain.cpp:46
    //define DISABLE_JOYSTICK

    remove the //

     
  • laurent
    laurent
    2006-10-14

    Logged In: YES
    user_id=1447460

    Confirmed, I rebuilt with -DDISABLE_JOYSTICK in CFLAGS and
    CXXFLAGS, it now starts, and I could run Crusader successfully.

    Thanks for the tip! Maybe that setting could be included in
    the configure script?

     
  • Peter Veenstra
    Peter Veenstra
    2006-10-31

    Logged In: YES
    user_id=535630

    DOSBox will warn instead of exit on missing joystick support.