linux + vscode 搭建openvino测试环境

一、c_cpp_properties.json

{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/**",
                "/usr/local/include/opencv4",
                "/usr/local/include/opencv4/opencv2",
                "/opt/intel/openvino_2021.4.752/deployment_tools/inference_engine/include"
            ],
            "defines": [],
            "compilerPath": "/usr/bin/gcc",
            "cStandard": "gnu11",
            "cppStandard": "gnu++14",
            "intelliSenseMode": "gcc-x64"
        }
    ],
    "version": 4
}

二、launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "g++ build and debug active file",
            "type": "cppdbg",
            "request": "launch",
            "program": "${fileDirname}/${fileBasenameNoExtension}",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": true,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ],
            "preLaunchTask": "g++ build active file",
            "miDebuggerPath": "/usr/bin/gdb"
        }
    ]
 
}

三、tasks.json

{
 
    "version": "2.0.0",
    "tasks": [
        {
            "type": "shell",
            "label": "g++ build active file",
            "command": "g++",
            "args": [
                "-g", "-std=c++11", "${fileDirname}/**.cpp", //"${fileDirname}/*.cpp"当前工作目录下所有的cpp
                "-o", "${fileDirname}/${fileBasenameNoExtension}", // "-o", "${fileDirname}/${fileBasenameNoExtension}.exe",
                "-I", "/usr/local/include",    // 引入opencv头文件
                "-I", "/usr/local/include/opencv4",
                "-I", "/usr/local/include/opencv4/opencv2",
                "-I", "/opt/intel/openvino_2021.4.752/deployment_tools/inference_engine/include",
                "-L", "/usr/local/lib",      // 指定动态链接库的路径
                "-L", "/opt/intel/openvino_2021.4.752/deployment_tools/ngraph/lib",
                "-L", "/opt/intel/openvino_2021.4.752/deployment_tools/inference_engine/lib/intel64",
                "-L", "/opt/intel/openvino_2021/inference_engine/external/tbb/lib",
                "-l", "opencv_core",
                "-l", "opencv_imgproc",
                "-l", "opencv_imgcodecs",
                "-l", "opencv_video",
                "-l", "opencv_ml",
                "-l", "opencv_highgui",
                "-l", "opencv_objdetect",
                "-l", "opencv_flann",
                "-l", "opencv_imgcodecs",
                "-l", "opencv_photo",
                "-l", "opencv_videoio",

                "-l", "AutoPlugin",
                "-l", "clDNNPlugin",
                "-l", "GNAPlugin",
                "-l", "HDDLPlugin",
                "-l", "HeteroPlugin",
                "-l", "inference_engine_c_api",
                "-l", "inference_engine_ir_reader",
                "-l", "inference_engine_legacy",
                "-l", "inference_engine_lp_transformations",
                "-l", "inference_engine_preproc",
                "-l", "inference_engine",
                "-l", "inference_engine_transformations",
                "-l", "MKLDNNPlugin",
                "-l", "MultiDevicePlugin",
                "-l", "myriadPlugin",
                "-l", "hwloc",  
                "-l", "tbbbind",  
                "-l", "tbbmalloc_proxy",  
                "-l", "tbbmalloc", 
                "-l", "tbb_preview",  
                "-l", "tbb",  
                "-l", "onnx_proto",  
                "-l", "protobuf",
                "-l", "onnx_importer",  
                "-l", "protobuf"

            ],
            "options": {
                "cwd": "/usr/bin"
            },
            "problemMatcher": [
                "$gcc"
            ],
            "group": "build"
        }
    ]
}

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值