I'm trying to use opencv 4.x library on C .
When I run a test code on vscode, the error occured 'fatal error: opencv2/core.hpp: No such file or directory'
But there is the file in the directory.
I checked vscode's json file and I set the include path correctly. I don't know why.
Can you tell me anything i missed?
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"C:\\minGW opencv\\opencv\\build\\include"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.18362.0",
"compilerPath": "C:/minGW opencv/minGW/bin/g .exe",
"cStandard": "c17",
"cppStandard": "c 17",
"intelliSenseMode": "windows-gcc-x64"
}
],
"version": 4
}
I have that header file in the right path.
CodePudding user response:
C:\\minGW opencv\\opencv\\build\\include
is the wrong include path for your project. (it only contains cmake scripts, no actual headers)
assuming you did a proper mingw32-make install
before (well, did you ??), it should be:
C:\\minGW opencv\\opencv\\build\\install\\include