No controller found (linux)
Posted: 29 May 2008 10:29
Hello all,
I'm having some trouble running heli-x on linux with any type of usb joystick. I get a "no controller found" error. The KDE joystick panel seems to detect the joysticks well (/dev/input/js0, I've even tested doing a chmod ugo=rwx /dev/input/js0, and it still gives a "no controller found" error), and I can see that the axes move correctly, so the hardware works. The log file from heli-x says;
and when running the script in a terminal I get;
I'm running kubuntu 7.10 (2.6.22-14 and java 1.6.0_03). If I click OK on the error box then heli-x loads and seems to work, other than my unability to control the helicopter (so graphics/3d works correctly).
If anyone has any ideas I'd be much obliged.
(Unfortunately my german is not very good, so I would prefer english replies if possible).
I'm having some trouble running heli-x on linux with any type of usb joystick. I get a "no controller found" error. The KDE joystick panel seems to detect the joysticks well (/dev/input/js0, I've even tested doing a chmod ugo=rwx /dev/input/js0, and it still gives a "no controller found" error), and I can see that the axes move correctly, so the hardware works. The log file from heli-x says;
Code: Select all
Application started
3D Environment created
Using openGLLayer JOGL_AWT
Found 11 display modes
Trying to open xml File files/Application/ViewSettings.xml
Using display mode 1024x768x?x?
Scenegraph created
Listener Volume: 1.0
Trying to open xml File files/Application/SoundSettings.xml
Listener Volume: 0.8
Sound configuration read
Trying to open xml File files/Application/CameraSettings.xml
View initialized
Trying to open xml File files/Application/EnvironmentSettings.xml
Environment initialized
Loading: net.java.games.input.LinuxEnvironmentPlugin
Failed to open device (/dev/input/event7): Failed to open device /dev/input/event7 (13)
Failed to open device (/dev/input/event6): Failed to open device /dev/input/event6 (13)
Failed to open device (/dev/input/event5): Failed to open device /dev/input/event5 (13)
Failed to open device (/dev/input/event3): Failed to open device /dev/input/event3 (13)
Failed to open device (/dev/input/event4): Failed to open device /dev/input/event4 (13)
Failed to open device (/dev/input/event1): Failed to open device /dev/input/event1 (13)
Failed to open device (/dev/input/event2): Failed to open device /dev/input/event2 (13)
Failed to open device (/dev/input/event0): Failed to open device /dev/input/event0 (13)
No Joystick found
Trying to open xml File files/Application/ApplicationSettings.xml
Visible set true
Keyboard and mouse registered
Application successfully initialized
Stopping HELI-X
Code: Select all
hydra@hydra-zeus:~/Desktop/HELI-X$ ./runHELI-X.sh
java.lang.UnsatisfiedLinkError: net.java.games.input.LinuxJoystickDevice.nGetAxisMap(J)[B
at net.java.games.input.LinuxJoystickDevice.nGetAxisMap(Native Method)
at net.java.games.input.LinuxJoystickDevice.getDeviceAxisMap(LinuxJoystickDevice.java:200)
at net.java.games.input.LinuxJoystickDevice.<init>(LinuxJoystickDevice.java:70)
at net.java.games.input.LinuxEnvironmentPlugin.enumerateJoystickControllers(LinuxEnvironmentPlugin.java:406)
at net.java.games.input.LinuxEnvironmentPlugin.enumerateControllers(LinuxEnvironmentPlugin.java:233)
at net.java.games.input.LinuxEnvironmentPlugin.<init>(LinuxEnvironmentPlugin.java:113)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:157)
at ch.ntb.HeliX.controller.FlightController.<init>(FlightController.java:86)
at ch.ntb.HeliX.simulation.Simulation.initController(Simulation.java:164)
at ch.ntb.HeliX.application.Application.<init>(Application.java:153)
at ch.ntb.HeliX.application.Application$1.run(Application.java:757)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
If anyone has any ideas I'd be much obliged.
(Unfortunately my german is not very good, so I would prefer english replies if possible).