Ask Your Question
0

Could not find OpenCV Sample - face-detection.apk! (not build opencv sample for Android)

asked 2015-08-10 09:36:28 -0600

stackprogramer gravatar image

updated 2015-08-11 00:36:28 -0600

hi my friends,i use opencv library for android,i run other sample opencv successfully but for Sample - face-detection this have a message "Could not find OpenCV Sample - face-detection.apk! "; i seted opencv in eclipse according below:

1)i downloaded OpenCV-2.4.9-android-sdk;

2)c/c++ build i setted ${NDKROOT}/ndk-build

3)i set NDKROOT system varrible;

4)goto Preference → Android → NDK and i choosed my ndk location

4)c/c++ build >ToolChain Editor i seted current builder =android builder

5)i too installed opencv manager

6)i installed CDT plugin

please help me

edit retag flag offensive close merge delete

Comments

after this problem i went to Project Properties>C/C++ Build>Tool Chain Editor and i setted Current toolchain: Android GCC Current builder: Android Builder now we have this errors
Errors running builder 'CDT Builder' on project 'OpenCV Sample - face-detection'.

stackprogramer gravatar imagestackprogramer ( 2015-08-11 00:19:00 -0600 )edit

after this i setted Project Properties>C/C++ Build

(uncheck) use default build command
Build command: ndk-build
(uncheck) generate Makefiles automatically

now it has these errors

Description Resource Path Location Type * Android NDK: Aborting. . Stop. OpenCV Sample - face-detection line 155, external location: K:\android-ndk-r10b\build\core\build-local.mk C/C++ Problem

stackprogramer gravatar imagestackprogramer ( 2015-08-11 00:28:25 -0600 )edit

i may have renamed the project, and the eclipse forgot to rename the "Refresh Policy".

Just update "Project properties -> C/C++ Build -> Refresh Policy" manually solved my problem.

but it have previous errors?

description Resource Path Location Type * Android NDK: Aborting. . Stop. OpenCV Sample - face-detection line 155, external location: K:\android-ndk-r10b\build\core\build-local.mk C/C++ Problem

stackprogramer gravatar imagestackprogramer ( 2015-08-11 00:33:51 -0600 )edit

2 answers

Sort by » oldest newest most voted
0

answered 2015-08-13 10:31:14 -0600

stackprogramer gravatar image

updated 2015-08-13 10:32:00 -0600

i imported only face detection sample,after i imported opencv4android directory ,and i do these work ,it worked correctly;

1)i downloaded OpenCV-2.4.9-android-sdk;

2)c/c++ build i setted ${NDKROOT}/ndk-build

3)i set NDKROOT system varrible;

4)goto Preference → Android → NDK and i choosed my ndk location

4)c/c++ build >ToolChain Editor i seted current builder =android builder

5)i too installed opencv manager

6)i installed CDT plugin

edit flag offensive delete link more
0

answered 2016-05-27 11:39:20 -0600

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

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-08-10 09:36:28 -0600

Seen: 527 times

Last updated: Aug 13 '15