Im working on a "UsbScopeNode" on a Raspberry Pi - a Raspberry Pi which gathers data with a plugged in Usb Scope. The Usb Scope is the HS4 from tiepie :
I programmed the first steps on my windows pc and made it to the point where i was able to get the data , settings and everything. So I decided to switch to the arm library. But now I seem to have problems with jna on my raspberry pi. The very small program crashes when I am trying to load the library. My code to load the library looks as follows:
LibTiePieHS4Library INSTANCE = (LibTiePieHS4Library) Native.loadLibrary((Platform.isARM()? "libtiepie" : "c"), LibTiePieHS4Library.class);
Its almost the same as I used for the version under windows but in this case the libtiepie is a ".so" file and not a dll.
Im getting following Error Message from my code:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/jna-3577/jna3799405475131998919.tmp: /tmp/jna-3577/jna3799405475131998919.tmp: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)
at java.lang.Runtime.load0(Runtime.java:792)
at java.lang.System.load(System.java:1059)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:761)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:736)
at com.sun.jna.Native.<clinit>(Native.java:131)
at Ftest_USBScope.controller.LibTiePieHS4Library.<clinit>(LibTiePieHS4Library.java:17)
at Ftest_USBScope.controller.HS4.<init>(HS4.java:48)
at Ftest_USBScope.controller.ScopeNodeManager.initializeScopes(ScopeNodeManager.java:85)
at Ftest_USBScope.controller.ScopeNodeManager.<init>(ScopeNodeManager.java:43)
at Ftest_USBScope.main.Main_USBScope.main(Main_USBScope.java:14)
Jna on the R-Pi is installed and i followed the setup steps from tiepie for the library installation.
Installationguide for library: http://www.tiepie.com/en/software/LibTiePie_02x#s4
library API: http://api.tiepie.com/libtiepie/0.2.2/
I hope someone can help me and I'd be happy to deliver more details if necessary
thanks, soc