Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't compile android project wiht JNI code (algorithm not found)
    primarykey
    data
    text
    <p>I'm trying to build simple android app with some JNI code. I already try this <a href="https://stackoverflow.com/questions/15054666/opencv-on-android-headers-no-such-file-directory/15129570#15129570">suggestion</a>, but isn't help</p> <p>When I press build project in eclipse I get this error:</p> <pre><code>Description Resource Path Location Type fatal error: algorithm: No such file or directory Tracker line 56, external location: /home/slani/code/OpenCV-2.4.6-android-sdk/sdk/native/jni/include/opencv2/core/core.hpp C/C++ Problem make: *** [obj/local/armeabi/objs/detect_jni/detect_jni.o] Error 1 Tracker C/C++ Problem </code></pre> <p>Line 56 in core.hpp contains the relevant include.</p> <p>This is my Android.mk file jni folder:</p> <pre><code>LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) include /home/slani/code/OpenCV-2.4.6-android-sdk/sdk/native/jni/OpenCV.mk LOCAL_MODULE := detect_jni LOCAL_SRC_FILES := detect_jni.cpp include $(BUILD_SHARED_LIBRARY) </code></pre> <p>This is my Aplication.mk file in jni folder:</p> <pre><code>APP_STL := gnustl_static APP_CPPFLAGS := -frtti -fexceptions APP_ABI := all APP_PLATFORM := android-8 </code></pre> <p>This is my .cpp file:</p> <pre><code>#include &lt;jni.h&gt; #include &lt;opencv/cv.h&gt; #include &lt;opencv2/imgproc/imgproc.hpp&gt; #include &lt;opencv2/features2d/features2d.hpp&gt; using namespace cv; extern "C"{ JNIEXPORT void JNICALL Java_com_slani_tracker_OpenCamera_findObject((JNIEnv *env, jlong addRgba, jlong addHsv); JNIEXPORT void JNICALL Java_com_slani_tracker_OpenCamera_findObject((JNIEnv *env, jlong addRgba, jlong addHsv) { Mat&amp; rgba = *(Mat*)addRgba; Mat&amp; hsv = *(Mat*)addHsv; cvtColor(rgba, hsv,CV_RGBA2HSV); } } </code></pre> <p><img src="https://i.stack.imgur.com/2iNN6.png" alt="This is path to my ndk-build"></p> <p><img src="https://i.stack.imgur.com/ylb8l.png" alt="This is my path and symbols in eclipse"></p> <p>Can someone please help me? What could be causing this problem?</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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