Ask Your Question

ricktarder's profile - activity

2012-07-18 08:36:44 -0600 received badge  Notable Question (source)
2012-07-11 03:18:40 -0600 received badge  Popular Question (source)
2012-07-11 03:10:42 -0600 received badge  Student (source)
2012-07-10 07:58:41 -0600 asked a question ndk-build deletes native OpenCV library

I tried to create a own OpenCV-2.4.2 android project using Eclipse and OpenCV on Linux. I followed the steps from the tutorials (Tutorial on using native code and static libraries and Tutorial on creating an own OpenCV application) to use static library initialization instead the dynamic approach. Also I am using a small native C++ part wich calls OpenCVs FeatureDetector() method (similar to samples/tutorial-4-mixed).

So when I try to copy the native lib libopencv_java.so into /libs/armeabi-v7a (according to step 3), build and run the application on my device it will throw an ExceptionInitializerError: couldn't load library 'opencv_java'.

The app can't load the file because ndk-build deletes it on creation of the app. My own native code part is built and placed correctly in /libs/armeabi-v7a but opencv_java.so is gone What am I missing?