我从源代码编译了OpenCV 4.1.1版本,以在Qt Creator环境中使用并且运行良好。但是,当我尝试将其包含在VS Code配置路径中时,它不包含库并且无法识别当前路径。
告诉我如何正确显示VS Code配置的路径,将是个很棒的事情。
有当前配置;
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"C:\\MinGW64\\lib\\gcc\\x86_64-w64-mingw32\\4.9.2\\include",
"C:\\Users\\user\\Desktop\\opencv-4.1.1\\build",
"C:\\Users\\user\\Desktop\\opencv-4.1.1\\build\\bin"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.16299.0",
"compilerPath": "C:\\MinGW64\\bin\\gcc.exe",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "gcc-x64"
}
],
"version": 4
}
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"C:\\MinGW64\\lib\\gcc\\x86_64-w64-mingw32\\4.9.2\\include",
"C:\\Users\\user\\Desktop\\opencv-4.1.1\\build",
"C:\\Users\\user\\Desktop\\opencv-4.1.1\\build\\bin"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"windowsSdkVersion": "10.0.16299.0",
"compilerPath": "C:\\MinGW64\\bin\\gcc.exe",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "gcc-x64"
}
],
"version": 4
}