- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.cmakeAdd 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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\");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi deepa
try running the command prompt as an Administrator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Solution for Ubuntu
- Delete “CmakeCache.List” under $inference_engine/samples/build”
- Login as root user. Run $sudo –i
- Re-run ~/opt/intel/computer_vision_sdk_xxxxxx/bin/setupvar.sh”
- Now re-run the "cmake" under "samples/build/"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There isn't "CmakeCache.List" file in inference/samples/build.
Only CMakeCache.txt and CMakeFiles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.cmakeAdd 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page