linux + vscode 搭建openvino测试环境

linux + vscode 搭建openvino测试环境,第1张

一、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"
        }
    ]
}

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/713564.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-24
下一篇 2022-04-24

发表评论

登录后才能评论

评论列表(0条)

保存