Note that there are some explanatory texts on larger screens.

plurals
  1. POBuilding opencv libraries doesn't generate "libopencv_java244.so"
    text
    copied!<p>I have been trying to get opencv to work in eclipse and I've been following <a href="http://docs.opencv.org/doc/tutorials/introduction/desktop_java/java_dev_intro.html" rel="nofollow">this tutorial</a> to try and get it to work in eclipse. I've gotten to the part where I create my .so libraries which is running <code>make -j8</code>. This works fine when I run it on a 32 bit linux system. I get all the necessary files I need but I get an exception in Eclipse when I try to run my program.</p> <blockquote> <p>Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/joris/opencv/build/lib/libopencv_java246.so: /home/user/opencv/build/lib/libopencv_java246.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)</p> </blockquote> <p>After looking up what this means, I discovered that the library is 32 bit but my jvm is 64 bit. I can't change the jvm that I'm using, so I need to build my native libraries in 64 bit.</p> <p>I tried building the opencv libraries on a 64 bit system now, but I am unable to find the libopencv_java246.so file that I got from building it on a 32 bit system.</p> <blockquote> <p>user@BEL-8WF4XW1:~$ find /home/user/opencv/ -name *.so</p> <p>/home/user/opencv/3rdparty/lib/mips/libnative_camera_r4.0.3.so</p> <p>/home/user/opencv/3rdparty/lib/mips/libnative_camera_r4.2.0.so</p> <p>/home/user/opencv/3rdparty/lib/mips/libnative_camera_r4.1.1.so</p> <p>/home/user/opencv/3rdparty/lib/armeabi-v7a/libnative_camera_r2.3.3.so</p> <p>/home/user/opencv/3rdparty/lib/armeabi-v7a/libnative_camera_r4.0.3.so</p> <p>/home/user/opencv/3rdparty/lib/armeabi-v7a/libnative_camera_r3.0.1.so</p> <p>/home/user/opencv/3rdparty/lib/armeabi-v7a/libnative_camera_r4.0.0.so</p> <p>/home/user/opencv/3rdparty/lib/armeabi-v7a/libnative_camera_r4.2.0.so</p> <p>/home/user/opencv/3rdparty/lib/armeabi-v7a/libnative_camera_r4.1.1.so</p> <p>/home/user/opencv/3rdparty/lib/armeabi-v7a/libnative_camera_r2.2.0.so</p> <p>/home/user/opencv/3rdparty/lib/armeabi/libnative_camera_r2.3.3.so</p> <p>/home/user/opencv/3rdparty/lib/armeabi/libnative_camera_r4.0.3.so</p> <p>/home/user/opencv/3rdparty/lib/armeabi/libnative_camera_r3.0.1.so</p> <p>/home/user/opencv/3rdparty/lib/armeabi/libnative_camera_r4.0.0.so</p> <p>/home/user/opencv/3rdparty/lib/armeabi/libnative_camera_r4.2.0.so</p> <p>/home/user/opencv/3rdparty/lib/armeabi/libnative_camera_r4.1.1.so</p> <p>/home/user/opencv/3rdparty/lib/armeabi/libnative_camera_r2.2.0.so</p> <p>/home/user/opencv/3rdparty/lib/x86/libnative_camera_r2.3.3.so</p> <p>/home/user/opencv/3rdparty/lib/x86/libnative_camera_r4.0.3.so</p> <p>/home/user/opencv/3rdparty/lib/x86/libnative_camera_r3.0.1.so</p> <p>/home/user/opencv/3rdparty/lib/x86/libnative_camera_r4.2.0.so</p> <p>/home/user/opencv/3rdparty/lib/x86/libnative_camera_r4.1.1.so</p> <p>user@BEL-8WF4XW1:~$ </p> </blockquote> <p>I don't understand why it does work on the 32 bit system but not on the 64 bit system. Can anyone help me understand?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload