fu-tyan / java-simple-serial-connector

Automatically exported from code.google.com/p/java-simple-serial-connector
0 stars 0 forks source link

Unable to load on Minibian, Raspberry Pi 1 B #79

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected output? What do you see instead?

The following exception is thrown:

     [java] Exception in thread "main" java.lang.UnsatisfiedLinkError: /root/.jssc/linux/libjSSC-2.6_armsf.so: /root/.jssc/linux/libjSSC-2.6_armsf.so: cannot open shared object file: No such file or directory
     [java]     at java.lang.ClassLoader$NativeLibrary.load(Native Method)
     [java]     at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1929)
     [java]     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1814)
     [java]     at java.lang.Runtime.load0(Runtime.java:809)
     [java]     at java.lang.System.load(System.java:1083)
     [java]     at jssc.SerialNativeInterface.<clinit>(SerialNativeInterface.java:172)
     [java]     at jssc.SerialPort.<init>(SerialPort.java:118)
     [java]     at spider.io.IOThread.<init>(IOThread.java:68)
     [java]     at spider.io.SlaveMaster.<init>(SlaveMaster.java:60)
     [java]     at spider.master.App.<init>(App.java:73)
     [java]     at spider.master.App.main(App.java:318)
     [java] Java Result: 1

What version of the product are you using? On what operating system?

jssc version 2.6

Linux raspberrypi 3.12.28+ #709 PREEMPT Mon Sep 8 15:28:00 BST 2014 armv6l 
GNU/Linux

Please provide any additional information below.

I run the test application as root and the file 
/root/.jssc/linux/libjSSC-2.6_armsf.so is present in the said folder.

root@raspberrypi:~/.jssc/linux# pwd
/root/.jssc/linux
root@raspberrypi:~/.jssc/linux# ll
total 22
-rw-r--r-- 1 root root 10383 Jun  1  2013 libjSSC-2.6_armhf.so
-rw-r--r-- 1 root root 10527 Jun  1  2013 libjSSC-2.6_armsf.so

Original issue reported on code.google.com by adrian.l...@gmail.com on 7 Feb 2015 at 5:46

GoogleCodeExporter commented 9 years ago
I've copied the libjSSC-2.6-armhf.so over the soft float versiona and 
dissalowed write access to it.

The problem went away. Since the OS uses hard float I think there is an issue 
with the detection in your code.

Original comment by adrian.l...@gmail.com on 9 Feb 2015 at 10:32