Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot open include file: "opencv2/opencv.hpp": No such file or directory #195

Open
Niklaus28 opened this issue Jul 21, 2020 · 2 comments
Open

Comments

@Niklaus28
Copy link

I follow the instruction as below:
To compile on Windows open yolo_mark.sln in MSVS2019, compile it x64 & Release and run the file: x64/Release/yolo_mark.cmd. Change paths in yolo_mark.sln to the OpenCV 4.1.0 installed on your computer:

(right click on project) -> properties -> C/C++ -> General -> Additional Include Directories: C:\C:\Opencv\opencv-4.1.0\opencv-4.1.0\include

(right click on project) -> properties -> Linker -> General -> Additional Library Directories: C:\Opencv\build\x64

but the error still appear

@stevenwong951028
Copy link

stevenwong951028 commented Aug 31, 2020

I think you got your directories wrong. Check your opencv directories.

(right click on project) -> properties -> C/C++ -> General -> Additional Include Directories: YOUR OPENCV DIR\build\install\include
you should have the file "opencv.hpp" within your include directory

(Linker) YOUR OPENCV DIR\build\install\x64\vc16\lib
you should have the "lib" files within your linker directory.

With these out of the way, I'm stuck with:
image

@stevenwong951028
Copy link

I think you got your directories wrong. Check your opencv directories.

(right click on project) -> properties -> C/C++ -> General -> Additional Include Directories: YOUR OPENCV DIR\build\install\include
you should have the file "opencv.hpp" within your include directory

(Linker) YOUR OPENCV DIR\build\install\x64\vc16\lib
you should have the "lib" files within your linker directory.

With these out of the way, I'm stuck with:
image

solved by copying the dll into the same directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants