Cannot load native library in ARM

384 views
Skip to first unread message

lemongrass

unread,
Dec 5, 2017, 3:07:30 AM12/5/17
to bndtools-users
Hello,
In my OSGi bundle, I am using sqlite4java which in-turn uses native libraries.

I have the following in bnd file of my bundle 

Bundle-NativeCode: lib/sqlite4java-win32-x64.dll; osname=win32; processor=x86_64,\
lib/sqlite4java-win32-x86.dll; osname=win32; processor=x86,\
lib/libsqlite4java-linux-amd64.so; osname=linux; processor=x86_64,\
lib/libsqlite4java-linux-i386.so; osname=linux; processor=x86,\
lib/libsqlite4java-linux-arm.so;osname=linux; processor=ARM,\
lib/libsqlite4java-osx.dylib; osname=macosx; processor=x86_64,\
lib/libsqlite4java-osx.dylib; osname=macosx; processor=x86

It is working fine in Windows but when I try to run in ARM it cannot find the native libraries and fails with the following exception 

com.almworks.sqlite4java.SQLiteException: [-91] cannot load library: java.lang.UnsatisfiedLinkError: no sqlite4java-linux-arm in java.library.path
 at com.almworks.sqlite4java.SQLite.loadLibrary(SQLite.java:97)

I have tried processor=ARM-le as recommended at https://www.osgi.org/developer/specifications/reference/

I am using bnd 3.4.0. What could be wrong?

Running on 32 bit Linux(Yocto based) on iMX6 

Timothy Ward

unread,
Dec 5, 2017, 3:11:37 AM12/5/17
to bndtool...@googlegroups.com
I have tried processor=ARM-le as recommended at https://www.osgi.org/developer/specifications/reference/

The reference uses an underscore for ARM_le - that may be it.

Tim

--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

lemongrass

unread,
Dec 5, 2017, 3:42:25 AM12/5/17
to bndtools-users
The reference uses an underscore for ARM_le - that may be it.

Thanks for the reply. I indeed used  ARM_le. This was a typo in the post only. My bad.
Reply all
Reply to author
Forward
0 new messages