How to compile OpenCV on Windows?

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 VS2010, I opened the project file and then had it run a build. Then I changed the parameters in my project which wanted to use OpenCV to look in release for the appropriate files, needed a bit of fiddling but I think I have it now.

amr at Stack Overflow Visit the source

Was this solution helpful to you?

Other answers

For anyone else interested in a guide how to compile OpenCV with TBB support in Visual Studio 2010, I created a video tutorial for it: http://www.youtube.com/watch?v=XeBhwbRoKvk (although this is for Windows 7 32 bit)

toefel

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.