OpenVino cmake error

    技术2022-07-12  64

    问题描述:安装OpenVino后运行Demo时CMake出错

    When I try to run the demo, during the inference engine build, I get an error related to cmake

    I installed cmake on windows. I have windows 10 OS and VS 2015. Kindly advice how I can get rid of this error and make progress

    "c:\Intel\computer_vision_sdk_2018.1.249\deployment_tools\demo\\..\inference_engine\samples\build"

    -- The C compiler identification is unknown

    -- The CXX compiler identification is unknown

    CMake Error at CMakeLists.txt:17 (project):

      No CMAKE_C_COMPILER could be found.

    CMake Error at CMakeLists.txt:17 (project):

      No CMAKE_CXX_COMPILER could be found.

     Creating "Debug\CompilerIdC.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

    ClCompile:

      CL.exe /c /nologo /W0 /WX- /Od /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc140.pdb" /Gd /TC /errorReport:queue CMakeCCompilerId.c

    TRACKER : error TRK0005: Failed to locate: "CL.exe". The system cannot find the file specified. [C:\Intel\computer_vision_sdk_2018.1.249\deployment_tools\inference_engine\samples\build\CMakeFiles\3.11.1\CompilerIdC\CompilerIdC.vcxproj]

    解决方案:

    原因可能有两种,

    一是VS2015安装不完整,没有安装windows SDK,需要更新安装;

    二是VS2015默认的开发语言不是C++,需要重设下。

    重设方法为:工具---导入和导出设置---重置所有设置---“否,仅重置设置”---选择自己喜欢的开发环境

    参考:https://software.intel.com/zh-cn/node/780454

    Processed: 0.020, SQL: 10