Ask Your Question

not able to import sdk/native

asked 2012-08-14 07:32:37 -0500

Rekha gravatar image

updated 2012-09-30 04:09:46 -0500

Kirill Kornyakov gravatar image

When I'm trying to build the face-detection sample app, it shows the following error. No such file or directory
make: *** No rule to make target `'.  Stop.

I'm using Eclipse Juno, and I have imported the opencv sdk to my workspace but it only shows the java file not the native sdk.. Why so? Is the above problem is also related to this?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2012-10-28 09:26:02 -0500

ett gravatar image

updated 2012-10-28 09:27:08 -0500

Do you copy them into your workspace or just open them? If you copy them you gonna have a bad time.

edit flag offensive delete link more


Agree. I fixed the build by setting the actual path at the project's

frankie gravatar imagefrankie ( 2012-11-08 20:03:28 -0500 )edit

the error which you have posted is occurring for me also, but it is not resolving

priyanka27 gravatar imagepriyanka27 ( 2015-12-23 06:05:29 -0500 )edit

answered 2016-04-18 03:52:08 -0500

oabm77 gravatar image

as it says in the book: Android Application Programming with OpenCV Chapter 1 Page 23 about building the OpenCv samples with eclipse:

If we are working on Mac or Linux, the C++ samples might be misconfigured to use the Windows build executable. The symptom is an error message such as Program "{ndk}/ndk-build.cmd" not found in PATH . The solution is to right-click on the project in Package Explorer, select Properties from the context menu, select the C/C++ Build section, and edit the Build command: field to remove the .cmd extension. These steps should be repeated for all the native (C++) projects, which include OpenCV Sample - face-detection and OpenCV Tutorial 2 - Mixed Processing.

Although in my case I only add the NDK path and leave alone the cmd extension.

image description

My OS: elementary OS 0.3.2 Freya (Ubuntu 14.04)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2012-08-14 07:32:37 -0500

Seen: 1,506 times

Last updated: Oct 28 '12