Ubuntu VSCode OpenCV 环境配置
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu VSCode OpenCV 环境配置
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
settings.json 中添加
"code-runner.executorMap": {"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt -std=c++11 `pkg-config --libs --static opencv4` `pkg-config --cflags opencv4` && $dir$fileNameWithoutExt"},
c_cpp_properties.json 添加
{"configurations": [{"name": "Linux","includePath": ["${workspaceFolder}/**","/usr/local/include/opencv4"],"defines": [],"compilerPath": "/usr/bin/gcc","cStandard": "c11","cppStandard": "c++17","intelliSenseMode": "clang-x64"}],"version": 4
}
"/usr/local/include/opencv4" 為本機(jī) OpenCV 的安裝路徑。
其余參考:
https://www.cnblogs.com/flyinggod/p/10867530.html
https://blog.csdn.net/fightfightfight/article/details/82857397
https://www.cnblogs.com/YiYA-blog/p/10082635.html
https://blog.csdn.net/u010648921/article/details/82628616
總結(jié)
以上是生活随笔為你收集整理的Ubuntu VSCode OpenCV 环境配置的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Jupyter Notebook 远程访
- 下一篇: 不孕不育精子什么样