java - Installing rxtx bundle in my Raspberry -


i want install rxtx bundle on raspberry pi bundle running on kura platform (equinox osgi container kura)

i installed rxtx native library using: sudo apt-get install librxtx-java

the .so installed on directory: /usr/lib/jni/

pi@raspberrypi /usr/lib/jni $ ls librxtxi2c-2.2pre1.so       librxtxparallel.so     librxtxrs485-2.2pre1.so  librxtxserial-2.2pre1.so librxtxi2c.so               librxtxraw-2.2pre1.so  librxtxrs485.so          librxtxserial.so librxtxparallel-2.2pre1.so  librxtxraw.so   

then followed link wrappe rxtx library in bundle http://rxtx.qbang.org/wiki/index.php/wrapping_rxtx_in_an_eclipse_plugin

i added bundle manifest this:

bundle-nativecode: /usr/lib/jni/librxtxserial.so;osname="linux";processor="armv6l" 

cause os type linux, architecture arm:

pi@raspberrypi ~ $ cat /proc/sys/kernel/{ostype,osrelease,version} linux 3.18.11+ #781 preempt tue apr 21 18:02:18 bst 2015  pi@raspberrypi ~ $ arch armv6l 

but still can't install bundle, got error:

!entry  1 0 2015-06-19 10:19:40.982 !message [iagent][remotebundleadminimpl@17f36b1] [startbundle] bundle cannot started: error[code=-6000;message=failed start bundle: bundle "rxtx_bundle_1.0.0 [77]" not resolved. reason: no match found native code: /usr/lib/jni/librxtxserial.so; processor=armv6l; osname=linux;details=null] !stack 0 org.osgi.framework.bundleexception: bundle "rxtx_bundle_1.0.0 [77]" not resolved. reason: no match found native code: /usr/lib/jni/librxtxserial.so; processor=armv6l; osname=linux         @ org.eclipse.osgi.framework.internal.core.abstractbundle.getresolvererror(abstractbundle.java:1332)         @ org.eclipse.osgi.framework.internal.core.abstractbundle.getresolutionfailureexception(abstractbundle.java:1316)         @ org.eclipse.osgi.framework.internal.core.bundlehost.startworker(bundlehost.java:323)         @ org.eclipse.osgi.framework.internal.core.abstractbundle.start(abstractbundle.java:300)         @ org.tigris.mtoolkit.iagent.internal.rpc.remotebundleadminimpl.startbundle(remotebundleadminimpl.java:230)         @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)         @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)         @ java.lang.reflect.method.invoke(method.java:606)         @ org.tigris.mtoolkit.iagent.internal.pmp.invocationthread.run(invocationthread.java:54)         @ org.tigris.mtoolkit.iagent.internal.utils.threadpool$worker.run(threadpool.java:179)         @ java.lang.thread.run(thread.java:724) 

what have did wrong? lot help!

updates after following @jorge martinez suggestion: here updated line of manifest:

bundle-nativecode: nativelib/librxtxserial.so;osname="linux";processor="armv6l" 

here list of content of rxtx bundle: enter image description here

jorge's response correct. have physically examined bundle being created eclipse confirm nativelib directory present? when exporting bundle eclipse, have ensure specify folders , files included in build. done opening build.properties file , placing check mark folder/files wish include.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -