OpenCVSample - face-detection c/c++ problem

408 views
Skip to first unread message

sanju

unread,
Sep 21, 2012, 6:44:50 AM9/21/12
to android...@googlegroups.com
AnyBody plz help me i'm beginner i dont know ho can solve this issue with OpenCVSample face-detection i have generate libdetection_based_tracker.so successfully 

but problem block showing this error 

           problem                                                                                  resource                                              path                 location                       type

 program" /ndk-build.cmd" is not found in PATH                OpenCVSample - face-detection                                                                                        c/c+

     Plz tell me Anybody whats happening
                  

bob

unread,
Sep 27, 2012, 1:57:35 PM9/27/12
to

hi ,i'm  beginner too but i have this problem as i remenber u should fix ur path as it's shown to do it u have  to download ndk :http://developer.android.com/tools/sdk/ndk/index.html
and then config ur eclipse project:right clic on ur project -new-others.choose c/c++ then choose convert to c/c++ project ->finish

(a) Right-click on the project and select Properties.

(b)open c/c++ build ->enviroment->ADD->name :SA and the value:the path where u put the ndk installed 

(c)Select C/C++ Build, choose Builder Settings tab, then change Build command: to

 

\${SA}/android-ndk-r8/ndk-build.cmd                      
PS:.cmd if u have windows and without if u have unix OS

 

(d) Select C/C++General >Paths and Symbol on the left panel ,then select include tab, chooseGNUC++language,removeexistingincludedirectoriesandaddthefollowings:

 

${SA}/android-ndk-r8/platforms/android-9/arch-arm/usr/include

${SA}/android-ndk-r8/sources/cxx-stl/stlport/stlport

${SA}/OpenCV-2.4.2-android-sdk/sdk/native/jni/include

 

(e)Right-click on the project ,then select Clean Project.

i hope that it could help u 

see also this:http://docs.opencv.org/trunk/doc/tutorials/introduction/android_binary_package/android_dev_intro.html#building-application-native-part-from-eclipse-cdt-builder


                  
Reply all
Reply to author
Forward
0 new messages