Dear All,
I am trying to integrate C code(Mpeg4 decoder) to some Java code on ARM Linux using JNI. I have a jvm running on the ARM Linux.
While running the application I get an error:
Test Case Four - Play a captured video sequence Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/j2re1.3.1/lib/armv4l/libvidec.so: /usr/local/j2re1.3.1/lib/armv4l/libvidec.so: R_ARM_PC24 relocation out of range
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1298)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at VidecApi.<clinit>(VidecApi.java:120)
at SteffensGUI.main(SteffensGUI.java:87)
I feel this is mostly due to the position independent code.(PIC). I even tried compiling the libraries that are used by libvidec.so using fPIC.
Still I get this error.
Any insight into this would be of great help.
Thanks
Harish.
Do You Yahoo!?
Yahoo! Health - Feel better, live better