Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#72 closed defect (fixed)

Test joystick support on Ubuntu OS

Reported by: Florian Roth Owned by: Florian Roth
Priority: major Milestone: MS1: First release (1.0.0)
Component: controller Version: pre-1.0
Keywords: joystick, device, ubuntu Cc:

Description

Joystick support works fine under Windows XP.

Figgure out if it works under Ubuntu OS.

Attachments (1)

libjjstick.so.0.7 (12.0 KB) - added by Henrik Heimbuerger 16 years ago.
native joystick library, built on a Linux VM

Download all attachments as: .zip

Change History (6)

comment:1 Changed 16 years ago by Florian Roth

Owner: changed from Florian Roth to Henrik Heimbuerger
Status: newassigned
Type: enhancementdefect

I got the following error when I scan for Joysticks:

19:48:59,603 WARN GameControllerDeviceManager:72 - Game controller library failed to initialize, returning 0 game controllers.
java.lang.UnsatisfiedLinkError?: /home/flosk8/workspaces/wsJacavi/JACAVI/libs/libjjstick.so: /home/flosk8/workspaces/wsJacavi/JACAVI/libs/libjjstick.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)

at com.centralnexus.input.Joystick.<clinit>(Joystick.java:186)
at de.jacavi.appl.controller.device.impl.GameControllerDeviceManager?.scanForGameControllers(GameControllerDeviceManager?.java:51)
at de.jacavi.rcp.dlg.InputDeviceSettingsDialog?$5.run(InputDeviceSettingsDialog?.java:384)
at org.eclipse.jface.operation.ModalContext?$ModalContextThread?.run(ModalContext?.java:121)

maybe its the wrong .so maybe its an so for 64 Bit OS?

Could you please check this out and give me the ticket back.

comment:2 Changed 16 years ago by Henrik Heimbuerger

Owner: changed from Henrik Heimbuerger to Florian Roth

Yeah, that sounds very much like it.

To confirm, please do a "file libjjstick.so". You probably get something about an "ELF 64-bit shared object".

Guess we'll have to build the lib ourselves then. Download the archive, extract it (completely) and run "make" in the linux/ subdirectory. I tried building it in a VM and it worked immediately (well, I already had Java installed and I needed to get gcc and g++). The result will end up in the lib/ subdirectory, not in linux/!

I attached the version I built to this ticket, but it's probably better if you build your own:

root@ubuntu804desktop:/home/user/Desktop/joystick/lib# file libjjstick.so.0.7
libjjstick.so.0.7: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped

Changed 16 years ago by Henrik Heimbuerger

Attachment: libjjstick.so.0.7 added

native joystick library, built on a Linux VM

comment:3 Changed 16 years ago by SVN

New commit by froth (revision [217]):
[Related to ticket #72] replaced the libjjstick.so with the reight one for 32 Bit OS

Now everythiong works fine.

comment:4 Changed 16 years ago by Florian Roth

Resolution: fixed
Status: assignedclosed

Works fine now.

comment:5 Changed 16 years ago by Henrik Heimbuerger

Component: unspecifiedcontroller
Note: See TracTickets for help on using tickets.