No controller (again)

Installation and usage on Linux / Installation unter Linux
User avatar
Michael
Posts: 1825
Joined: 25 May 2008 16:11
Location: Germany
Contact:

Re: No controller (again)

Post by Michael »

Are there any exceptions visible in the console window or the log file?

Michael
jonluk
Posts: 10
Joined: 07 Oct 2008 19:28

Re: No controller (again)

Post by jonluk »

Console shows:
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)
Log file:
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 800x600x?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
No Joystick found
Trying to open xml File files/Application/ApplicationSettings.xml
Trying to open xml File ressources/environments/SkyBox/Small/Small.xml
Environment loaded
Loading ressources/models/helicopter/Lama/Lama.obj
Creating Sound ressources/models/helicopter/Lama/Lama.wav
Sound ressources/models/helicopter/Lama/Lama.wav created
Creating Sound ressources/miscellaneous/crash.wav
Sound ressources/miscellaneous/crash.wav created
Key listener added
Status line added
Visible set true
Keyboard and mouse registered
Application successfully initialized
Stopping HELI-X
Just upgrade my kernel to 2.6.26 to see if that made any difference but it didn't....
User avatar
Michael
Posts: 1825
Joined: 25 May 2008 16:11
Location: Germany
Contact:

Re: No controller (again)

Post by Michael »

Did you get the same error in the Joystick tool? The unsatisfied Link is strange...

Michael
jonluk
Posts: 10
Joined: 07 Oct 2008 19:28

Re: No controller (again)

Post by jonluk »

If by joystick tool you mean the Analizer then no it just worked straight away.
jonluk
Posts: 10
Joined: 07 Oct 2008 19:28

Re: No controller (again)

Post by jonluk »

Hi Michael,
I've fixed it.
There was a bit in this thread viewtopic.php?f=9&t=9&st=0&sk=t&sd=a&start=10 about downloading the newest jinput libraries. I put the new libjinput-linux.so into the relevant heli-x directory and bingo it's up and running.

YIPEE :) :) :) at last a sim that I can run :)
User avatar
Michael
Posts: 1825
Joined: 25 May 2008 16:11
Location: Germany
Contact:

Re: No controller (again)

Post by Michael »

Hello,

interesting. Could you please tell me,
1. When you downloaded your version of HELI-X
2. Where you got the libjinput-linix.so which works.

Thanks,

Michael
jonluk
Posts: 10
Joined: 07 Oct 2008 19:28

Re: No controller (again)

Post by jonluk »

My copy of heli-x on 7th Oct.
I got the latest jinput binaries from https://jinput.dev.java.net/servlets/Pr ... entList%3b - there's a link called 'Latest jinput binaries'.
User avatar
Michael
Posts: 1825
Joined: 25 May 2008 16:11
Location: Germany
Contact:

Re: No controller (again)

Post by Michael »

Thanks, I will check this.

Michael
thomas_e
Posts: 1
Joined: 03 Nov 2008 22:01

Re: No controller (again)

Post by thomas_e »

Hi Michael,

hatte das gleiche Problem und nach Austausch der libjinput-linux.so funktionierts bei mir :-)

Was mir bei der Problemanalyse noch aufgefallen war, sind die "merkwürdigen" Zeichen hinterm ControllerNamen.
Sowohl Linux, als auch Windows scheinen da ein Darstellungsproblem zu haben.
Es wird wohl ein Stick aus China sein ;-)

Joystick-Analyzer (by Michael Schreiner)
Linux plugin claims to have found 8 controllers

Controller: ? PPM
Type: Stick
Digital component found:Trigger
Digital component found:Thumb
Digital component found:Thumb 2
Analog component found:x
Analog component found:y
Analog component found:z
Analog component found:rx
Analog component found:ry

mfg
thomas_e
User avatar
Michael
Posts: 1825
Joined: 25 May 2008 16:11
Location: Germany
Contact:

Re: No controller (again)

Post by Michael »

Hallo Thomas,

danke. Was für ein Linux-System hast Du?

Michael
Post Reply