Installed opencv 3.4.2 using chocolatey, yet can't include opencv files

Guthrie's Avatar


10 Oct, 2018 12:06 PM


I'm using a slightly modified version of a git repository. In my forked repository, I have added a .cpp file and try to include a couple of opencv headers:

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/opencv.hpp>

after discovering that I could install the opencv libraries, I still continued to get the C1083 error(s):

fatal error C1083: Cannot open include file: 'opencv2/core/core.hpp': No such file or directory [C:\projects\solvespace\build\src\solvespace-core.vcxproj]

It's probably something very obvious that I'm missing and this may be a better question for stack overflow, but I figured that I'm probably missing something vital in the appveyor.yml file. I think it may be possible that I'm just not referencing the proper directory that opencv was installed in?

 I attached a picture of opencv installing.

  1. 1 Posted by Owen McDonnell on 10 Oct, 2018 04:40 PM

    Owen McDonnell's Avatar

    You probably either need to copy those library files to your build directory or add some IncludePath to your project file.
    Looks like this is the way you'd do that in Cmake.

  2. Ilya Finkelshteyn closed this discussion on 10 Dec, 2018 09:01 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

18 Jan, 2020 12:49 PM
18 Jan, 2020 11:37 AM
18 Jan, 2020 05:35 AM
18 Jan, 2020 02:13 AM
18 Jan, 2020 12:16 AM