Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

OpenVino cmake error

mohan__deepa
Beginner
7,844 Views

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.
0 Kudos
15 Replies
RBang
New Contributor II
7,844 Views

Hi, not sure if it helps but came across this link - https://software.intel.com/en-us/forums/computer-vision/topic/779930
It mentions that if VS2015 is installed without customizing the install to select the c++ package then by default it comes without it and you can get errors like No CMAKE_C_COMPILER could be found..

0 Kudos
Patil__Naina
Beginner
7,844 Views

Hi, 

I am trying to install OpenVINO on NUC i5. Successfully installed it, however when i try to build the inference engine samples, i encounter the below error: 

Can someone point out what i am missing? I have installed Opencv 3.3.1 from wget https://github.com/opencv/opencv/archive/3.3.1.zip

CMake Error at CMakeLists.txt:61 (find_package):
  By not providing "FindInferenceEngine.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "InferenceEngine", but CMake did not find one.

  Could not find a package configuration file provided by "InferenceEngine"
  (requested version 1.4) with any of the following names:

    InferenceEngineConfig.cmake
    inferenceengine-config.cmake

  Add the installation prefix of "InferenceEngine" to CMAKE_PREFIX_PATH or
  set "InferenceEngine_DIR" to a directory containing one of the above files.
  If "InferenceEngine" provides a separate development package or SDK, be
  sure it has been installed.

Thanks and Regards

Naina

0 Kudos
Tibrewal__Siddhant
7,844 Views

Patil, Naina wrote:

Hi, 

I am trying to install OpenVINO on NUC i5. Successfully installed it, however when i try to build the inference engine samples, i encounter the below error: 

Can someone point out what i am missing? I have installed Opencv 3.3.1 from wget https://github.com/opencv/opencv/archive/3.3.1.zip

CMake Error at CMakeLists.txt:61 (find_package):
  By not providing "FindInferenceEngine.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "InferenceEngine", but CMake did not find one.

  Could not find a package configuration file provided by "InferenceEngine"
  (requested version 1.4) with any of the following names:

    InferenceEngineConfig.cmake
    inferenceengine-config.cmake

  Add the installation prefix of "InferenceEngine" to CMAKE_PREFIX_PATH or
  set "InferenceEngine_DIR" to a directory containing one of the above files.
  If "InferenceEngine" provides a separate development package or SDK, be
  sure it has been installed.

Thanks and Regards

Naina

 

Hi Naina,
you need to use the opencv versions with tags after 3.4.2-openvino because the inference engine is only supported after this tag (check the tags section in the opencv github). Hope this helps.
Bests, Sid

0 Kudos
Yukiyasu_M_Intel
Employee
7,844 Views

I had similar issue when installing R5 and found it was mistakes related to environ.

Make sure source setupvars.sh properly cleared the error.

    $ source /opt/intel/computer_vision_sdk/bin/setupvars.sh

There is a pitfall in the installation guide that once you start "sudo" everything, it may slip the inclusion of setupvars.sh.

sudo won't inherit environ set by setupvars.sh...

0 Kudos
Tsin__Ross
New Contributor I
7,844 Views

I have same problem under ubuntu 18.04

###################################################

Build Inference Engine samples

-- /etc/*-release distrib: Ubuntu 18.04
CMake Error at /opt/intel/computer_vision_sdk_2018.5.445/deployment_tools/inference_engine/src/extension/cmake/CPUID.cmake:324 (file):
  file STRINGS file
  "/opt/intel/computer_vision_sdk_2018.5.445/deployment_tools/inference_engine/samples/cpuid.txt"
  cannot be read.
Call Stack (most recent call first):
  /opt/intel/computer_vision_sdk_2018.5.445/deployment_tools/inference_engine/src/extension/cmake/feature_defs.cmake:17 (include)
  /opt/intel/computer_vision_sdk_2018.5.445/deployment_tools/inference_engine/src/extension/CMakeLists.txt:9 (include)


-- Host CPU features:
-- Configuring incomplete, errors occurred!
See also "/opt/intel/computer_vision_sdk_2018.5.445/deployment_tools/inference_engine/samples/CMakeFiles/CMakeOutput.log".
Error on or near line 219; exiting with status 1
 

0 Kudos
Smistad__Erik
Beginner
7,844 Views

I can also confirm this error with reading the cpuid.txt file in CMake. The following hack fixed it for me:

Edit computer_vision_sdk/inference_engine/src/extension/cmake/CPUID.cmake and change line 251 to write to the cmake binary dir instead of the current path:

std::ofstream of(\"cpuid.txt\");

to

std::ofstream of(\"${CMAKE_BINARY_DIR}\"/cpuid.txt\");

0 Kudos
OGuy
Beginner
7,844 Views

Has anyone successfully installed this on a Raspi Model 3 B+
Following the instructions at - https://software.intel.com/en-us/articles/OpenVINO-Install-RaspberryPI
 

I am stuck when I try to run the step - cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=armv7-a"

I get an error -  

pi@raspberrypi:~/Downloads/inference_engine_vpu_arm/deployment_tools/inference_engine/samples/build $ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-march=armv7-a"
CMake Error at CMakeLists.txt:60 (find_package):
  By not providing "FindInferenceEngine.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "InferenceEngine", but CMake did not find one.

  Could not find a package configuration file provided by "InferenceEngine"
  (requested version 1.5) with any of the following names:

    InferenceEngineConfig.cmake
   
inferenceengine-config.cmake

  Add the installation prefix of "InferenceEngine" to CMAKE_PREFIX_PATH or
  set "InferenceEngine_DIR" to a directory containing one of the above files.
  If "InferenceEngine" provides a separate development package or SDK, be
  sure it has been installed.


-- Configuring incomplete, errors occurred!
See also "/home/pi/Downloads/inference_engine_vpu_arm/deployment_tools/inference_engine/samples/build/CMakeFiles/CMakeOutput.log".

 

Has anyone gotten past this point?
 

0 Kudos
JunLin
Beginner
7,773 Views

i faced the same problem have u solved it?

 

0 Kudos
Chan__William
Beginner
7,844 Views

hi deepa

try running the command prompt as an Administrator

0 Kudos
Pradeep_S_Intel
Employee
7,844 Views

Solution for Ubuntu

 

  1. Delete “CmakeCache.List” under $inference_engine/samples/build”
  2. Login as root user. Run $sudo –i
  3. Re-run ~/opt/intel/computer_vision_sdk_xxxxxx/bin/setupvar.sh”
  4. Now re-run the "cmake" under "samples/build/"
0 Kudos
Pradeep_S_Intel
Employee
7,844 Views

Solution for Windows 10:

Got to/click Start Windows -> This PC -> Properties -> Advanced System Settings -> Environment Variables->  Under System Variables Select New-> and add below

Variable Name: InferenceEngine_DIR

Variable Value:  <C:\Intel\computer_vision_sdk_xxxxxx\deployment_tools\inference_engine\share>  (Replace this with your local/install path)

0 Kudos
Leon__Leonardo
Beginner
7,844 Views

There isn't "CmakeCache.List" file in inference/samples/build.

Only CMakeCache.txt and  CMakeFiles

0 Kudos
sayyad__asif
Beginner
7,844 Views

while installation on ubuntu 18.04 I'm Facing below error 

=======================================================

CMake Error at CMakeLists.txt:142 (find_package):
  By not providing "FindInferenceEngine.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "InferenceEngine", but CMake did not find one.

  Could not find a package configuration file provided by "InferenceEngine"
  (requested version 1.6) with any of the following names:

    InferenceEngineConfig.cmake
    inferenceengine-config.cmake

  Add the installation prefix of "InferenceEngine" to CMAKE_PREFIX_PATH or
  set "InferenceEngine_DIR" to a directory containing one of the above files.
  If "InferenceEngine" provides a separate development package or SDK, be
  sure it has been installed.

0 Kudos
Shawn_S_Intel
Employee
7,844 Views

sayyad, asif wrote:

while installation on ubuntu 18.04 I'm Facing below error 

=======================================================

CMake Error at CMakeLists.txt:142 (find_package):
  By not providing "FindInferenceEngine.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "InferenceEngine", but CMake did not find one.

  Could not find a package configuration file provided by "InferenceEngine"
  (requested version 1.6) with any of the following names:

    InferenceEngineConfig.cmake
    inferenceengine-config.cmake

  Add the installation prefix of "InferenceEngine" to CMAKE_PREFIX_PATH or
  set "InferenceEngine_DIR" to a directory containing one of the above files.
  If "InferenceEngine" provides a separate development package or SDK, be
  sure it has been installed.

Before running this:

cmake -DCMAKE_BUILD_TYPE=Release /opt/intel/openvino/deployment_tools/inference_engine/samples

Make sure you run this:

source /opt/intel/openvino/bin/setupvars.sh

0 Kudos
fikri
Beginner
5,556 Views

please help me i have a problem like this.

i am using CMake 3.21, Visual Studio 2019 with msbuild, python 3.6.5 , OpenVino Tool kit 2021.4.582 and processor AMD A9 7th

 

###############|| Generate VS solution for Inference Engine demos using cmake ||###############


Waiting for 0 seconds, press a key to continue ...
Creating Visual Studio 16 2019 x64 files in C:\Users\user\Documents\Intel\OpenVINO\inference_engine_demos_build...
-- The C compiler identification is MSVC 19.29.30038.1
-- The CXX compiler identification is MSVC 19.29.30038.1
-- Detecting C compiler ABI info
CMake Error at C:/Program Files/CMake/share/cmake-3.21/Modules/CMakeDetermineCompilerABI.cmake:49 (try_compile):
Failed to open

C:/Users/user/Documents/Intel/OpenVINO/inference_engine_demos_build/CMakeFiles/CMakeTmp/CMakeLists.txt

Permission denied
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.21/Modules/CMakeTestCCompiler.cmake:26 (CMAKE_DETERMINE_COMPILER_ABI)
CMakeLists.txt:16 (project)


-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe
CMake Error at C:/Program Files/CMake/share/cmake-3.21/Modules/CMakeTestCCompiler.cmake:53 (try_compile):
Failed to open

C:/Users/user/Documents/Intel/OpenVINO/inference_engine_demos_build/CMakeFiles/CMakeTmp/CMakeLists.txt

Permission denied
Call Stack (most recent call first):
CMakeLists.txt:16 (project)


-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.21/Modules/CMakeTestCCompiler.cmake:66 (message):
The C compiler

"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe"

is not able to compile a simple test program.

It fails with the following output:

 

 

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:16 (project)


-- Configuring incomplete, errors occurred!
See also "C:/Users/user/Documents/Intel/OpenVINO/inference_engine_demos_build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/user/Documents/Intel/OpenVINO/inference_engine_demos_build/CMakeFiles/CMakeError.log".
Error

thanks.

0 Kudos
Reply