Unable to launch cygpath

Sereen Shalby picture Sereen Shalby · Oct 29, 2013 · Viewed 9.4k times · Source

I am new to openCV and I downloaded it to work with it in Eclipse Juno.

I have download version 2.4.6 and I have download NDK version R9 and I am working on windows platform and still can't run the tutorials of openCV because of the following errors. I followed the steps on this documentation .

I tried to change the path on the build path part (C:\android-ndk\android-ndk-r9\ndk-build.cmd NDK_DEBUG=1)

[2013-10-29 18:06:56 - Unable to launch cygpath. Is Cygwin on the path?] java.io.IOException: Cannot run program "cygpath": CreateProcess error=2, The system cannot find the file specified
[2013-10-29 18:07:12 - ManagerActivity] Manifest attribute 'minSdkVersion' is set to '@ANDROID_NATIVE_API_LEVEL@'. Integer is expected.
[2013-10-29 18:07:13 - package] Manifest attribute 'minSdkVersion' is set to '@ANDROID_SDK_VERSION@'. Integer is expected.

Answer

Pimp Trizkit picture Pimp Trizkit · Feb 3, 2014

I don't think you need Cygwin when using NDK-R9. I think it was integrated in with R8 (or whatever they did to get around it). So you can ignore that error. I get that error as well, I'm looking how to get rid of it. But this error does not stop me from compiling. I've been ignoring it.

As far as the other two errors, they mention it needs an integer value. You need to put this element into your Manifest.xml file:

<uses-sdk
        android:minSdkVersion="10"
        android:targetSdkVersion="18" />

... Or use the API level range you plan to comply with