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. Support Staff 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.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Already uploaded files

  • opencvappveyorinstall.PNG 58.8 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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