Ask Your Question

Revision history [back]

Missing .hhp files after installing with Cmake + minGw

I've followed a couple of tutorials in order to install OpenCV under windows and everything went fine. The problem is that after installation I don't have the headers that I was expecting to have under build/opencv2, such as "opencv2/highgui/highgui.hpp" and "opencv2/opencv.hpp". At this folder I only found "opencv_modules.hpp". Opening this file I see something like:

define HAVE_OPENCV_CALIB3D

define HAVE_OPENCV_CONTRIB

define HAVE_OPENCV_CORE ...

Also, the build examples are working, so I know that the libraries have been successfully build. I have lots of .ddl files at /build/bin and lots of .ddl.a at /build/lib. Why am I missing the headers? If the library is somehow build, how to compile a project that includes openCV?

I have been using OpenCV for a while but only on Linux. Now I need to compile it on windows and I'm finding everything much more complicated.

Missing .hhp files after installing with Cmake + minGw

I've followed a couple of tutorials in order to install OpenCV under windows and everything went fine. The problem is that after installation I don't have the headers that I was expecting to have under build/opencv2, such as "opencv2/highgui/highgui.hpp" and "opencv2/opencv.hpp". At this folder I only found "opencv_modules.hpp". Opening this file I see something like:

define HAVE_OPENCV_CALIB3D

define HAVE_OPENCV_CONTRIB

define HAVE_OPENCV_CORE ...

Also, the build examples are working, so I know that the libraries have been successfully build. I have lots of .ddl files at /build/bin and lots of .ddl.a at /build/lib. Why am I missing the headers? If the library is somehow build, how to compile a project that includes openCV?

I have been using OpenCV for a while but only on Linux. Now I need to compile it on windows and I'm finding everything much more complicated.


EDIT:

well, it turns out that I was not running the install process. After hitting "cmake -P cmake_install.cmake" the folder with the headers i was looking for was generated. After this I tryed to install opencv at a friend's machine and found another problem:

CMake Error at cmake_install.cmake:31 (FILE): file INSTALL cannot find "/cygdrive/c/OpenCV/build/C:/OpenCV/build/opencv2/opencv_modules.hpp".

I don't remember my previous installation having this ".../C/...": directory. Indeed there is no such 'opencv_modules.hpp' file at this folder, but why is this 'C' file there at first place? What is going on?

Another thing akward is that "/cygdrive/". I'm not sure, but this seems to be related to cygwin. I belived to be using only minGW, though. God! Such a hard time installing it! My binnaries from the first installation worked on this other computer, but i want to install it from scratch in order to make sure that I mastered it.