Ask Your Question
3

What is the reason for the error "cannot open source file 'opencv2/opencv.hpp'" in C++ with VS code on Ubuntu?

asked 2022-04-21 11:00:00 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-02-19 03:00:00 +0000

qstack gravatar image

The reason for the error "cannot open source file 'opencv2/opencv.hpp'" in C++ with VS code on Ubuntu could be because the compiler cannot find the OpenCV library files. This can happen if the OpenCV library is not properly installed or if the include paths are not set correctly. To fix this, ensure that OpenCV is installed properly and that the include paths are set correctly in the VS code project settings.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-04-21 11:00:00 +0000

Seen: 15 times

Last updated: Feb 19 '23