Community
cancel
Showing results for 
Search instead for 
Did you mean: 
mohan__deepa
Beginner
2,279 Views

OpenVino cmake error

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
14 Replies
RBang
New Contributor II
2,279 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..

Patil__Naina
Beginner
2,279 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

2,279 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

Yukiyasu_M_Intel
Employee
2,279 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...

Tsin__Ross
New Contributor I
2,279 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
 

Smistad__Erik
Beginner
2,279 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\");

OGuy
Beginner
2,279 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?
 

JunLin
Beginner
2,208 Views

i faced the same problem have u solved it?

 

Tags (1)
Chan__William
Beginner
2,279 Views

hi deepa

try running the command prompt as an Administrator

Pradeep_S_Intel
Employee
2,279 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/"
Pradeep_S_Intel
Employee
2,279 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)

Leon__Leonardo
Beginner
2,279 Views

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

Only CMakeCache.txt and  CMakeFiles

sayyad__asif
Beginner
2,279 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.

Shawn_S_Intel
Employee
2,279 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

Reply