Ask Your Question
1

OpenCV Manager not installing correct libraries for some devices

asked 2015-11-11 18:20:56 -0600

Savail gravatar image

updated 2015-11-14 07:16:49 -0600

Hey, Some users of my app report that after installing the OpenCV Manager and running my app they encounter a messagebox with error:

"OpenCV was not initialized correctly. Application will be shut down."

Also when they run the OpenCVManager app there's a the problem visible:

path: /data/app/org.opencv.engine-1/lib/arm64

2.4 - null

3.0 - libopencv_java3.so

So 2.4 doesn't get installed somehow and that's the problem probably? Cause on my device I got both 2.4 and 3.0 pointing to some libs. My project is using OpenCV 3.00 package. This is my android.mk file:

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

include C:/OpenCV4Android/OpenCV-android-sdk/sdk/native/jni/OpenCV.mk

LOCAL_MODULE    := myNativeLib
LOCAL_SRC_FILES := myNativeLib.cpp
LOCAL_LDLIBS +=  -llog -ldl

include $(BUILD_SHARED_LIBRARY)

Maybe I lack sth here? But since I'm using the async initialisation I guess I don't have to add anything here...

I haven't found this reported as a bug but this issue is similar to http://answers.opencv.org/question/71...

Is there maybe some reliable work-around to fix the issue? I don't quite understand the solution in the above link. Does it mean I should statically link a concrete OpenCV version? Won't it cause more bad than good? If there's no solution I quess I should submit a bug. Anyway, I would be really very grateful for your time and support!

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-11-14 07:17:29 -0600

Savail gravatar image

Static linking and getting rid of OpenCV Manager solved the problem.

edit flag offensive delete link more
0

answered 2016-05-27 11:33:25 -0600

watch this video this migth help you https://www.youtube.com/watch?v=ETc8P...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-11-11 17:31:39 -0600

Seen: 4,036 times

Last updated: Nov 14 '15