user2301281
user2301281

Reputation: 787

Android openCV Sample Error: cannot find the -lopencv_java

I'm just follow the tutorial to setup the android opencv and try to run the sample of face-detection.

But it had the errors as shown: error msg

I had google around but still can't find the solution. Any idea how to solve it? I'm using ndk-r10, elipse juno 4.2, & opencv android 2.4.9

Upvotes: 0

Views: 567

Answers (1)

ph0b
ph0b

Reputation: 14463

which ndk-r10 are you using ? The one for 32-bit target, 64-bit target, or both ?

From your error I see a reference to arm64-v8a which is a 64-bit target, but the OpenCV SDK is only precompiled for armeabi, armeabi-v7a, mips and x86.

If you want to compile your project for 64-bit Android targets, you'll need to recompile OpenCV first but I don't know if it's already supported yet.

Upvotes: 1

Related Questions