Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open CV 2.2 Include Directory Missing

I have several Windows 7 64bit systems with OpenCV 2.2 installed on them using CMake and Visual Studio 2008 Standard. CMake generates everything in C:\libs\OpenCV-2.2.0\build just fine and Visual Studio 2008 compiles everything without complaint.

However, every time I do this process on various machines I find that the include directory (C:\libs\OpenCV-2.2.0\build\include\opencv2) is either empty or nearly so. I usually end up thrashing around compiling different versions and poking on random project files until it appears and every time I think I have it figured out. However, with each new install I'm back to the begining.

Is this a known issue for 64bit build of OpenCV 2.2 on Windows 7 64bit using Visual Studio 2008 and is there a known workaround?

Various questions here seem to be hinting at the same thing and guides online are either old or don't reference the problem at all.

like image 272
Steve Avatar asked Oct 25 '25 10:10

Steve


1 Answers

To solve this problem compile everything in release and debug then right click the INSTALL project in Visual Studio 2008 and choose Build. This will "install" numerous files and move all the include files into the proper location.

Now /include will contain subfolders

  • opencv
  • opencv2

and /include/opencv2 will contain numerous subfolders:

  • calib3d
  • contrib
  • core
  • feature2d
  • flann
  • gpu
  • highgui
  • imgproc
  • legacy
  • ml
  • objdetect
  • video
like image 184
Steve Avatar answered Oct 27 '25 23:10

Steve