Ask Your Question

Revision history [back]

windows install missing files

I just installed OpenCV from the SourceForge installer, so I should have the pre-built libraries. I also defined OPENCV_DIR and added %OPENCV_DIR%\bin to the path. Then I created a new app in VS2017 and added the statements from the "Test It!" section of the 'How to build applications with OpenCV inside the "Microsoft Visual Studio"' tutorial.

Problem #1: VS could not find <opencv2\core.hpp> When I went to this folder, I discovered that there is only one file in it, opencv.hpp. Where are the other files? I tried downloading the OpenCV 3.3 installer again and installing into a different folder, but the results were the same. Is the installer buggy?

Problem #2: This is probably a result of #1, but the namespace cv is not defined.

Do I have to install CMake and download the source from GitHub just to get started?