You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compiler is unable to detect the OpenCV library and reported it is not found.
> Executing task: C/C++: g++ build active file <
Starting build...
/usr/bin/g++ -g /home/wbadry/Desktop/simplecv/testing.cpp -o /home/wbadry/Desktop/simplecv/testing
/home/wbadry/Desktop/simplecv/testing.cpp:1:10: fatal error: opencv2/core.hpp: No such file or directory
1 |#include <opencv2/core.hpp>| ^~~~~~~~~~~~~~~~~~
compilation terminated.
Build finished with error(s).
The terminal process failed to launch (exit code: -1).
I would appreciate it if there is an extra step to be done as I expected the VSCode extension to compile it with no problem. I believe I miss some flags.
Your help is appreciated. Thanks
The text was updated successfully, but these errors were encountered:
Bug type: Language Service
Describe the bug
I tried to use VSCode to compile a simple check for OpenCV. I already have the latest version of OpenCV
The library is installed as expected in
/usr/include/opencv4
I made a simple C++ program
The extension was able to detect the library location, and it was added to c_cpp_properties.json :
I then configured a building task.json (tried cpp, g++, same result)
The problem
The compiler is unable to detect the OpenCV library and reported it is not found.
I would appreciate it if there is an extra step to be done as I expected the VSCode extension to compile it with no problem. I believe I miss some flags.
Your help is appreciated. Thanks
The text was updated successfully, but these errors were encountered: