Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Problem with nGetAxisMap on Linux  (Read 1731 times)
0 Members and 1 Guest are viewing this topic.
Offline Niwak

Senior Member


Medals: 1
Projects: 1



« Posted 2007-12-27 09:35:29 »

I was using jinput happily on Linux (Ubuntu) for keyboard and mouse input, until I plugged a joystick (Microsoft Sidewinder).
With this device plugged, the JVM throws a 'UnsatisfiedLinkError' for the 'nGetAxisMap' function (when enumerating js devices).

This is strange since I'm sure that the native library is loaded. I performed tests with the jinput-test.jar :
-  event devices are correctly detected and working (I had unplugged the USB joystick for this test),
- looking at the source (CVS) code, before calling nGetAxisMap, the js devices handling class call other native methods defined in the joystick c file (nGetName for example) without throwing any link exception.
I have performed these test with the latest (2007-12-07) and previous (2007-07-26) combined binaries.

It looks like if the signature of the C function nGetAxisMap does not match the java expected one.

Is someone experimenting the same problems ?

Any idea would be welcomed. Thanks

           Vincent
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #1 - Posted 2007-12-27 10:21:05 »

Hi

I'm not at home right now, so I can't check this. It's possible an old linux .so made it's way in to the release. Incase that is what has happened, I have built the linux .so, but I have can't test it right now. If you wish, you can try it. Please let us know. I'll check this out in the new year when I am home again.

Cheers

Endolf

Offline Niwak

Senior Member


Medals: 1
Projects: 1



« Reply #2 - Posted 2007-12-27 20:29:25 »

Thanks a lot ! It solved the problem. I will post an updated zip here when I will get the time to.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Niwak

Senior Member


Medals: 1
Projects: 1



« Reply #3 - Posted 2007-12-28 00:56:16 »

It ends up that the build you provide was not completely working ; the link problem was gone but I had a new one ; getAxisMap failed with errno 22, that is to say invalid argument.

Therefore I built jinput from scratch using the ant script (I was surprised how easy it is to build, this is great work). And now it works perfectly.

The compiled linux dist is http://vbousquet.free.fr/jinput-linux.zip if you want to compare.

I will try to investigate this a bit further.

   Vincent
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #4 - Posted 2007-12-28 13:52:13 »

When I get home, I'll do a full build, for win32 and linux and update the distribution.

Thanks for spotting this and letting us know.

Cheers

Endolf

Offline Erik

Innocent Bystander





« Reply #5 - Posted 2007-12-29 23:42:01 »

I can confirm this. I had the exact same problem on my Ubuntu machine.
I also got the same error using the rebuilt linux.so and the problems went away with Niwak's build.
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #6 - Posted 2008-01-04 11:00:23 »

Hi

Sorry for the delay on this, I caught a virus of some sort (soft squidgy human virus, not computer one), and I've been in bed for several days, still not back to 100% now. I've not made it home as I'm not safe to drive yet, please bear with me. I'm hoping to make it home on sunday, so hopefully next week some time I can resolve this.

Cheers

Endolf

Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #7 - Posted 2008-01-09 23:26:32 »

Hi

I've uploaded a new binary distribution, it's the same as the december one with a new linux so. I've also updated the webstart demo.

Please give it a try and let me know.

Endolf

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

pw (37 views)
2014-07-24 01:59:36

Riven (38 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21

Zero Volt (50 views)
2014-07-17 23:47:54

danieldean (42 views)
2014-07-17 23:41:23

MustardPeter (44 views)
2014-07-16 23:30:00

Cero (60 views)
2014-07-16 00:42:17

Riven (57 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!