How to compile OpenCV on Windows?

Let’s learn how to compile OpenCV on Windows. The most accurate or helpful solution is served by Stack Overflow.

There are ten answers to this question.

Best solution

Compiling OpenCV on Windows 7 64bit

I'm trying to get OpenCV working on Windows 7 64bit. I tried installing the vs2008.exe installer bundle from the OpenCV website but it produced errors when trying to compile, I Google'd these and it appears that installer is no good for 64bit versions of Windows 7, bugger. I've tried having a crack at compiling using CMake, but really having no luck, does anyone know of a way to get OpenCV installed on here so I can use it in VS2010? Cheers

Answer:

Managed to solve it, in the 'release' folder which CMake creates I was opening the wrong file with VS...

Read more

amr at Stack Overflow Mark as irrelevant Undo

Other solutions

Opencv 2.0 wont compile/run?

Brand new to opencv 2.0 never used it before. (Yes did spend 2 hours looking through docs/google before posting) Tried looking all over the net for help with this. found lots of people having the same problems and not being resolved, or its out of date...

Answer:

OpenCV2.0 did compile for me. I did have problems with 1.1, however Ubuntu has it built ready to install...

Read more

Stuart at Yahoo! Answers Mark as irrelevant Undo

What do you suggest to import OpenCV to Android (Eclipse) 4.4.2 on Windows 7 errors?

Description Resource Path Location Type make.exe: * No rule to make target ../../sdk/native/jni/DetectionBasedTracker_jni.cpp', needed byobj/local/armeabi-v7a/objs/detection_based_tracker/DetectionBasedTracker_jni.o'. Stop. OpenCV Sample - face-detection...

Answer:

First of all, you need to follow this tutorial : Page on stanford.edu to setup everything. The issue...

Read more

Lakshya Jain at Quora Mark as irrelevant Undo

How to compile a programme that uses Opencv 2.1 libraries??I use C++ bindings for coding.?

and Is there any IDE which makes us easy to work with Opencv Project???I amunable to compile it after installing it in My Kubuntu operating system through Muon package manager.all libraries are installed.Please help..

Answer:

Are you refering to Linux Did you checkup the following link? http://dasl.mem.drexel.edu/~noahKuntz...

Read more

RaviKira... at Yahoo! Answers Mark as irrelevant Undo

Windows Vista CLASSPATH or PATH setting error while using JGrasp IDE to compile C++?

hi I am using JGrasp IDE to try out C++. I used JGrasp before for Java. It does not have any problem when I used XP. I started to have this problem when I ported JGrasp to my Vista 64b. After I installed JGrasp on Vista, it couldn't compile Java. It...

Answer:

I tried running a C file in JGrasp and I got the gcc error. I download BloodShed C++, which installs...

Read more

just_ken... at Yahoo! Answers Mark as irrelevant Undo

How the hell do I compile in C for windows?

I don't want to download Linux and I don't own a Mac. I tried JGrasp and it said I needed GCC so I tried downloading MinGW and it gave me a download ERROR. This is frustrating, can someone, speak to me like I'm an eight yr old and explain to me how I...

Answer:

Download error? What is your URL? Try Pelles C for Windows or LCC http://www.cs.virginia.edu/~lcc-win...

Read more

Mustang at Yahoo! Answers Mark as irrelevant Undo

Is it possible to compile C code for Windows under an emulated UNIX environment and then link that with Visual Studio libraries?

By "emulated UNIX environment", I mean the likes of Cygwin, where common GNU/BSD utilities (like make, gcc or clang, or automake/autoconf for example) can be used to compile the majority of the code.  I'll suppose in this example that one big...

Answer:

I think its possible. (Please correct me if I am wrong). Beacause Cygwin will convert Linux System calls...

Read more

Puran Chand Rajpurohit at Quora Mark as irrelevant Undo

Which compiler will be able to compile C programs with the header file, <windows.h> ?

Especially turbo c is not able to compile windows.h header file. It can only compiled by some other compilers.

Answer:

GCC Compiler is a third party compiler. But it can able to compile that header files.

Read more

Shankar Thiyagaraajan at Quora Mark as irrelevant Undo

How to compile a C++ program in Windows 7 Command Prompt?

Hello, I was wondering, if there was a way to compile C+ code that I wrote with Notepad++ in the Windows CMD program? I can't afford Visual Basic, so that is out of the question. ...show more

Answer:

MinGW, a contraction of "Minimalist GNU for Windows", is a minimalist development environment...

Read more

WJZZDXZWZ5GB77GCRNCMEXCWKY at Yahoo! Answers Mark as irrelevant Undo

I try to compile my java file but it does not recognise the javac command in windows dos..?

i have install JDK 6...i created this java file from another pc and compiled it and saved the souce file and class file on by USB drive..When i run these java file using java command it runs perfectly but when i edit it and try to compile it give me...

Answer:

This type of error we get when our java path is not set.To set java path go to my computers>>...

Read more

saiam01f at Yahoo! Answers Mark as irrelevant Undo

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.