Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is it correct that I didn't generate libopencv_java.so in building OpenCV4Android?

Hi,

I'm following these instructions to build OpenCV4Android from source code. The building process seems successful. However, under my <my_build_dir>/lib/armeabi-v7a folder, it generated the following .so files and many other .a files, but not libopencv_java.so. Is this a correct outcome?

libnative_camera_r2.2.0.so
libnative_camera_r2.3.3.so
libnative_camera_r3.0.1.so
libnative_camera_r4.0.0.so
libnative_camera_r4.0.3.so
libnative_camera_r4.1.1.so
libnative_camera_r4.2.0.so
libnative_camera_r4.3.0.so
libnative_camera_r4.4.0.so
libopencv_info.so

To my understanding, I'll need libopencv_java.so to achieve dynamic linking to my Android project. If I only have .a files in hand, I'll need to change my Android.mk for static linking. That's why I'm seeking libopencv_java.so.

More information:

  • I downloaded OpenCV-2.4.8 source code from sourceforge
  • My Android NDK version is Revision 9d
  • I'm working on ubuntu, my cmake version is 2.8.12

I'm relatively new to OpenCV. I hope this question is not too naive, and any comments are appreciated.

Thanks in advance!