Compiling Android-OpenCV library with Cygwin

I'm trying to follow this tutorial from Stanford University

My environment variables are all set according to the tutorial and everything worked perfectly until step 3c):

c. Type the following in the Cygwin terminal to compile the OpenCV libraries:


This compilation can take a while, maybe 30 minutes or more.

Where I get the following output in my cygwin-terminal:

Isa@LESTER ~/opencv/android/build
$ make
[100%] Generating android-opencv
Compile thumb  : png <= /home/Isa/opencv/3rdparty/libpng/png.c
/home/Isa/android-ndk-r4-crystax/build/core/ recipe for target        '/home/Isa/opencv/android/build/obj/local/armeabi/objs/png/png.o' failed
make[3]: *** [/home/Isa/opencv/android/build/obj/local/armeabi/objs/png/png.o] Error 127
make[3]: *** Warte auf noch nicht beendete Prozesse...
CMakeFiles/ndk.dir/build.make:55: recipe for target 'android-opencv' failed
make[2]: *** [android-opencv] Error 2
CMakeFiles/Makefile2:63: recipe for target 'CMakeFiles/ndk.dir/all' failed
make[1]: *** [CMakeFiles/ndk.dir/all] Error 2
Makefile:75: recipe for target 'all' failed
make: *** [all] Error 2

Has anyone else tried to do this tutorial? It seems pretty nice and I really really want to have it working. I'd appreciate any hint to solve this error. Let me know if you need more information to help me out.

Thanks in advance, Isa


The error you got is quite similar to those here:

Have a double check in your environment, as doing the setup for OpenCV on Android can be a little trick sometimes, and as such it might be the source of your current problem.

If you really want to achieve good results developing Android, I would rather suggest you to do it on Linux Ubuntu.

In the case you still need to keep MSW in your machine, just do a dual boot as it will allow you to have your development host in a Linux platform.

Some years ago I had to implement a project using open source tools, but to do it on Windows XP, and I remember that using Cygwin was a big headache.

So, you will be better of running your development environment on Ubuntu.

Need Your Help

Generate variables that equal dynamically created form elements

javascript jquery forms variables for-loop

In a previous question, I learned how to generate dynamic form elements with increasing element Ids.

How do I get js2-mode to use spaces instead of tabs in Emacs?

javascript emacs ide js2-mode

I am using js2-mode to edit Javascript in Emacs, but I can't seem to get it to stop using tabs instead of spaces for indentation. My other modes work fine, just having issues w/ js2.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.