NeuronRobotics / nrjavaserial

A Java Serial Port system. This is a fork of the RXTX project that uses in jar loading of the native code.
Other
345 stars 143 forks source link

java.lang.UnsatisfiedLinkError on 3.12.0+ #84

Closed lunderhage closed 8 years ago

lunderhage commented 8 years ago

Hi,

I get an UnsatisfiedLinkError when running my application on Raspberry Pi, starting from 3.12.0.

java.lang.UnsatisfiedLinkError: gnu.io.RXTXCommDriver.nativeGetVersion()Ljava/lang/String; at gnu.io.RXTXCommDriver.nativeGetVersion(Native Method) at gnu.io.RXTXCommDriver.(RXTXCommDriver.java:105) at gnu.io.NRSerialPort.getAvailableSerialPorts(NRSerialPort.java:153) at se.lunderhage.pcr1000.backend.daemon.SerialPortUtils.getSerialPorts(SerialPortUtils.java:46) at ...

3.11.0 is the last version not having this problem, but there I can't use 38400 bps on the raspberry for some reason. (38400 works fine with minicom).

Will try to build the ARM binaries and see what happens...

Regards

Rallymen007 commented 8 years ago

Same issue here, I've tried building the ARM libraries and it didn't fix it. I can't test 3.11 however, as I need a karaf bundle.

Rallymen007 commented 8 years ago

False alert, I solved the issue by installing liblockdev1-dev. I don't know if it's possible to check for the presence of the lib and display a proper error message though.

madhephaestus commented 8 years ago

The warning and conflict resolution would happen at the .deb packaging level. I just set myself up a new PPA, so ill look into bundling up this jar and making a system lib perhaps? It would require a lot more discussion in any case