简体   繁体   English

Android openCV示例错误:找不到-lopencv_java

[英]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. 我只是按照教程来设置android opencv并尝试运行面部检测示例。

But it had the errors as shown: 但是它有如下所示的错误: 错误味精

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 我正在使用ndk-r10,elipse juno 4.2和opencv android 2.4.9

which ndk-r10 are you using ? 您正在使用哪个ndk-r10? The one for 32-bit target, 64-bit target, or both ? 一个用于32位目标,一个64位目标或同时用于两者?

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 . 从您的错误中,我看到了对arm64-v8a的引用,这是一个64位目标,但是OpenCV SDK仅针对armeabiarmeabi-v7amipsx86预编译。

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. 如果要为64位Android目标编译项目,则需要先重新编译OpenCV,但我不知道它是否已受支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM