- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I try to follow the instruction to build this Open Model Zoo Demos in windows OS and I ran into these error messages:
https://docs.openvino.ai/latest/omz_demos.html
C:\Open_Model_Zoo_Demos_2023\open_model_zoo\demos>build_demos_msvc.bat
Searching for the latest Visual Studio...
Creating Visual Studio 16 2019 x64 files in C:\Users\allensen\Documents\Intel\OpenVINO\omz_demos_build...
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19044.
-- The C compiler identification is MSVC 19.29.30136.0
-- The CXX compiler identification is MSVC 19.29.30136.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:140 (find_package):
By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenCV", but
CMake did not find one.
Could not find a package configuration file provided by "OpenCV" with any
of the following names:
OpenCVConfig.cmake
opencv-config.cmake
Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
"OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
See also "C:/Users/allensen/Documents/Intel/OpenVINO/omz_demos_build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/allensen/Documents/Intel/OpenVINO/omz_demos_build/CMakeFiles/CMakeError.log".
###############|| Build Open Model Zoo Demos using MS Visual Studio ||###############
cmake --build . --config Release
CMake is re-running because C:/Users/allensen/Documents/Intel/OpenVINO/omz_demos_build/CMakeFiles/generate.stamp is out-of-date.
the file 'C:/Users/allensen/Documents/Intel/OpenVINO/omz_demos_build/CMakeFiles/3.21.4/CMakeCCompiler.cmake'
is newer than 'C:/Users/allensen/Documents/Intel/OpenVINO/omz_demos_build/CMakeFiles/generate.stamp.depend'
result='-1'
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19044.
CMake Error at CMakeLists.txt:140 (find_package):
By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenCV", but
CMake did not find one.
Could not find a package configuration file provided by "OpenCV" with any
of the following names:
OpenCVConfig.cmake
opencv-config.cmake
Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
"OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
See also "C:/Users/allensen/Documents/Intel/OpenVINO/omz_demos_build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/allensen/Documents/Intel/OpenVINO/omz_demos_build/CMakeFiles/CMakeError.log".
CMake Configure step failed. Build files cannot be regenerated correctly.
Done.
Any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi DarkHorse,
Thank you for reaching out to us.
To build the demos, you need to source OpenVINO™ environment and OpenCV. To install OpenCV for OpenVINO, see the instructions on GitHub.
Here are the steps for installing prebuilt OpenCV on Windows OS:
- Download OpenCV windows package on the official OpenCV releases page Windows archive contains VC postfix, e.g.: opencv-4.6.0-vc14_vc15.exe
- Extract the archive
- Setup environment variables by running the script opencv\build\setup_vars_opencv4.cmd
Additionally, you'll need to specify the "OpenCV_DIR" path before building the demos. Run the following command in the command prompt:
set "OpenCV_DIR=<OpenCV_Installation_Dir>\opencv\build"
Regards,
Hairul
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi DarkHorse,
Thank you for reaching out to us.
To build the demos, you need to source OpenVINO™ environment and OpenCV. To install OpenCV for OpenVINO, see the instructions on GitHub.
Here are the steps for installing prebuilt OpenCV on Windows OS:
- Download OpenCV windows package on the official OpenCV releases page Windows archive contains VC postfix, e.g.: opencv-4.6.0-vc14_vc15.exe
- Extract the archive
- Setup environment variables by running the script opencv\build\setup_vars_opencv4.cmd
Additionally, you'll need to specify the "OpenCV_DIR" path before building the demos. Run the following command in the command prompt:
set "OpenCV_DIR=<OpenCV_Installation_Dir>\opencv\build"
Regards,
Hairul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Hairul,
Cool is working now.. Thanks for the workaround.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi DarkHorse,
Glad to know that your issue has been resolved.
This thread will no longer be monitored since this issue has been resolved. If you need any additional information from Intel, please submit a new question.
Regards,
Hairul
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page