赞
踩
VSCODE中opencv2\core\utility.hpp typedef std::recursive_mutex Mutex;报错问题及#include <opencv2/core/core.hpp>报错问题
##解决方法:更换MingGW版本至x86_64-13.2.0-release-posix-seh-msvcrt-rt_v11-rev1.7z。
链接于:https://github.com/niXman/mingw-builds-binaries/releases
2、下载后并替换原有mingw路径。保证环境变量可用。
报错识别不到opencv2/core/core.hpp这个文件。
解决方法:
更新 c_cpp_properties.json
{ "configurations": [ { "name": "Win32", "includePath": [ "${workspaceFolder}/**", "D:\\\\ALL_PROJECT\\\\DEMOs\\\\camera_cv\\\\cvcplus\\\\OpenCV-MinGW-Build\\\\include", //修改这里 "D:\\\\ALL_PROJECT\\\\DEMOs\\\\camera_cv\\\\cvcplus\\\\OpenCV-MinGW-Build\\\\include\\\\opencv2" //修改这里 ], "defines": [ "_DEBUG", "UNICODE", "_UNICODE" ], "windowsSdkVersion": "10.0.17763.0", "compilerPath": "D:/ALL_PROJECT/DEMOs/CCpp/mingw64/bin/g++.exe", //修改 "cStandard": "c17", "cppStandard": "c++17", "intelliSenseMode": "windows-gcc-x64" }, { "name": "winopencv", "includePath": [ "${workspaceFolder}/**" ], "defines": [ "_DEBUG", "UNICODE", "_UNICODE" ], "windowsSdkVersion": "10.0.17763.0", "compilerPath": "cl.exe", "cStandard": "c17", "cppStandard": "c++17", "intelliSenseMode": "windows-msvc-x64" } ], "version": 4 }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。