Suse 64 - Linux (Beitrag von rogemax -
vielen Dank)
damit bei mir bt747 in der aktuellen Version 1.54.1 unter
64-bit opensuse 10.3 funktioniert, habe ich nach manueller
Installation (download vom zip-file + Entpacken in
beliebiges Verzeichnis - one-click-install vom build
service habe ich nicht ausprobiert) die Pfade in den
Dateien run_rxtx.sh und run_j2se.sh wie folgt ändern
müssen:
run_rxtx.sh:
#if [ -e /usr/share/java/RXTXcomm.jar ] ; then
# if librxtx-java seems to be installed locally (e.g., on
Ubuntu)
# RXTXPATH=/usr/lib
# RXTXLIBPATH=/usr/lib
# RXTXJAR=/usr/share/java/RXTXcomm.jar
#else
# You may need to change the next line to an absolute path.
MYROOTPATH=.
RXTXPATH=${MYROOTPATH}/lib/rxtx-2.1-7-bins-r2
RXTXLIBPATH=${RXTXPATH}/Linux/x86_64-unknown-linux-gnu
RXTXJAR=/RXTXcomm.jar
#fi
...
run_j2se.sh:
#!/bin/sh -v
ROOT_DIR=`dirname $0`
if [ -z "$ROOT_DIR" ] ; then ROOT_DIR="." ; fi
#if [ -e /usr/share/java/RXTXcomm.jar ] ; then
# if librxtx-java seems to be installed locally (e.g., on
Ubuntu)
# RXTXPATH=/usr/lib
# RXTXLIBPATH=/usr/lib
# RXTXJAR=/usr/share/java/RXTXcomm.jar
#else
# You may need to change the next line to an absolute path.
RXTXPATH=${ROOT_DIR}/lib/rxtx-2.1-7-bins-r2
RXTXLIBPATH=${RXTXPATH}/Linux/x86_64-unknown-linux-gnu
RXTXJAR=RXTXcomm.jar
#fi
...
Ansonsten bekomme ich - zumindest mit run_rxtx.sh aus dem
Terminal - folgende Fehlermeldung, sobald ich versuche,
einen Port zu öffnen, um die Verbindung zwischen GPS-Maus
(i-blue 747 von Transystems) und Linux herzustellen:
Info: trying to open /dev/ttyUSB0
java.lang.UnsatisfiedLinkError:
/root/Desktop/tars/bt747/lib/rxtx-2.1-7-bins-r2/Linux/i686-unknown-linux-gnu/librxtxSerial.so:
/root/Desktop/tars/bt747/lib/rxtx-2.1-7-bins-r2/Linux/i686-unknown-linux-gnu/librxtxSerial.so:
wrong ELF class: ELFCLASS32 (Possible cause: architecture
word width mismatch) thrown while loading
gnu.io.RXTXCommDriver
---------------------------
%3E%3E%3E%3E%3E%3E%3E CAUGHT UNHANDLED EXCEPTION IN
SuperWaba EVENT THREAD:
java.lang.UnsatisfiedLinkError:
/root/Desktop/tars/bt747/lib/rxtx-2.1-7-bins-r2/Linux/i686-unknown-linux-gnu/librxtxSerial.so:
/root/Desktop/tars/bt747/lib/rxtx-2.1-7-bins-r2/Linux/i686-unknown-linux-gnu/librxtxSerial.so:
wrong ELF class: ELFCLASS32 (Possible cause: architecture
word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at
java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at
gnu.io.CommPortIdentifier.%3Cclinit%3E(CommPortIdentifier.java:83)
at gps.connection.GPSRxTxPort.openPort(Unknown Source)
at gps.connection.GPSrxtx.openPort(Unknown Source)
at bt747.model.Controller.connectGPS(Unknown Source)
at bt747.waba_view.GPSconctrl.onEvent(Unknown Source)
at waba.ui.Control.postEvent(Control.java:611)
at waba.ui.Button.onEvent(Button.java:203)
at waba.ui.Control.postEvent(Control.java:611)
at waba.ui.Window._postEvent(Window.java:574)
at
waba.applet.SWEventThread.handleOneEvent(SWEventThread.java:84)
at waba.applet.SWEventThread.run(SWEventThread.java:48)
at java.lang.Thread.run(Thread.java:619)
Hoffe, daß spart anderen ein paar Stunden Suchen...