linuxgurugamer / ksp-advanced-flybywire

Controller mod for Kerbal Space Program
MIT License
27 stars 11 forks source link

My joystick does not show up under Linux mint 22. #48

Open Supermagnum opened 2 months ago

Supermagnum commented 2 months ago

Both lsusb and dmesg says: input: Thrustmaster T.16000M as /devices/pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-4/1-4:1.0/0003:044F:B10A.0008/input/input23 [ 56.834161] hid-generic 0003:044F:B10A.0008: input,hidraw6: USB HID v1.00 Joystick [Thrustmaster T.16000M] on usb-0000:02:00.0-4/input0 Bus 001 Device 007: ID 044f:b10a ThrustMaster, Inc. T.16000M Joystick

libSDL2 is installed (libSDL2-2.0), Still my joystick doesn't show up in ksp.

archiecarrot123 commented 2 months ago

I've been using the same joystick fine on gentoo, I think I once had a similar problem that was fixed by replugging the joystick and restarting the game, but try checking the more recent comments on #36 as mint might not have the libSDL2.so symlink.

Supermagnum commented 2 months ago

apt-file find libSDL2-2 libsdl2-2.0-0: /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0 libsdl2-2.0-0: /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0.3000.0 libsdl2-dev: /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so

from ksp.log: DllNotFoundException: libSDL2 KSPAdvancedFlyByWire.SDLController.InitializeSDL () (at :0) KSPAdvancedFlyByWire.SDLController.SDLUpdateState () (at :0) KSPAdvancedFlyByWire.AdvancedFlyByWire.Update () (at :0) [EXC 11:39:50.277] DllNotFoundException: libSDL2 KSPAdvancedFlyByWire.SDLController.InitializeSDL () (at :0) KSPAdvancedFlyByWire.SDLController.SDLUpdateState () (at :0) KSPAdvancedFlyByWire.AdvancedFlyByWire.Update () (at :0)

There seems to be symlinks,- but they are like this: dpkg -L libsdl2-2.0-0 | grep -E 'lib/..so.' | xargs ls -lh lrwxrwxrwx 1 root root 23 juli 29 17:18 /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0 -> libSDL2-2.0.so.0.3000.0 -rw-r--r-- 1 root root 1,9M april 7 09:16 /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0.3000.0

archiecarrot123 commented 2 months ago

I have a PR (#47) that will fix this, but in the mean time you can symlink /usr/lib/x86_64-linux-gnu/libSDL2.so to /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0.3000.0 like this: sudo ln -s -T libSDL2-2.0.so.0.3000.0 /usr/lib/libSDL2.so

Supermagnum commented 2 months ago

That worked! Note to others: This needs to be done before symlinking: sudo apt-get install libsdl2-2.0

and for installing everything necessary to build programs that use SDL:

sudo apt-get install libsdl2-dev

Supermagnum commented 2 months ago

fixed.

Supermagnum commented 1 month ago

Figured it out, issue can be closed.