OpenCVConfig.cmake Error
(base) C:\develop\nx_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin>cmake -B C:/develop/build C:/develop/nx_open_integrations/cpp/vms_server_plugins/openvino_object_detection_analytics_plugin ^
More? -DCMAKE_BUILD_TYPE=Release ^
More? -DmetadataSdkDir=C:/develop/metadata_sdk
-- Building for: Ninja
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/karmi/Downloads/winlibs-x86_64-posix-seh-gcc-14.2.0-mingw-w64msvcrt-12.0.0-r3/mingw64/bin/gcc.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:/Users/karmi/Downloads/winlibs-x86_64-posix-seh-gcc-14.2.0-mingw-w64msvcrt-12.0.0-r3/mingw64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
CMake Warning (dev) at CMakeLists.txt:17 (find_package):
Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake
--help-policy CMP0167" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found Boost: C:/Users/karmi/anaconda3/Library/lib/cmake/Boost-1.82.0/BoostConfig.cmake (found version "1.82.0")
CMake Error at CMakeLists.txt:20 (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!
this is the whole error i am encountering while building the plugin
i used the below command to build it
cmake -B C:/develop/build C:/develop/nx_open_integrations/cpp/vms_server_plugins/openvino_object_detection_analytics_plugin ^
-DCMAKE_BUILD_TYPE=Release ^
-DmetadataSdkDir=C:/develop/metadata_sdk
-
Hello,
Building with mingw compilers is not supported. Even if you succeed the plugin won't be binary compatible. Try switching to Visual Studio instead.
0 -
Hi Andrey,
i am using
cmake -B <build_dir> <src_dir> -DCMAKE_BUILD_TYPE=Release -DmetadataSdkDir=<unpacked_zip_dir>
cmake --build <build_dir> --config Release --target openvino_object_detection_analytics_plugin_zip
the above commands and specifying the paths, so the commands initially gave me errors like InferenceEngine.cmake is missing and OpenCVCinfig.cmake is missing
i added
set(OpenVINO_DIR "C:/openvino_2025/openvino_toolkit_windows_2025.2.0.19140.c01cd93e24d_x86_64/runtime/cmake")
find_package(OpenVINO REQUIRED)
in my CMakeLists.txt located at "C:\develop\nx_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\CMakeLists.txt"is it possible to for you guys to schdeule a call over meets and discuss this issue, i facing some issues and i need to get them solved.
the main issue is i am unable to build an openvino plugin through your nx-open-integration github documentation, and please i have gone through every documentation provided by you. if its possible for you guys to schedule a call please reach me out at karmikbarodia0902@gmail.com0 -
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools>cmake --build "C:/develop/nx_open_integrations/cpp/vms_server_plugins/openvino_object_detection_analytics_plugin/build" --config Release
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.1>Checking Build System
Building Custom Rule C:/develop/metadata_sdk/nx_kit/CMakeLists.txt
utils.cpp
debug.cpp
ini_config.cpp
output_redirector.cpp
test.cpp
json.cpp
nx_kit.vcxproj -> C:\develop\nx_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\b
uild\nx_kit\Release\nx_kit.lib
Building Custom Rule C:/develop/nx_open_integrations/cpp/vms_server_plugins/openvino_object_detection_analytics_plugi
n/CMakeLists.txt
consuming_device_agent.cpp
engine.cpp
engine_info.cpp
event_metadata.cpp
event_metadata_packet.cpp
metadata_types.cpp
object_metadata.cpp
object_metadata_packet.cpp
object_track_best_shot_packet.cpp
object_track_info.cpp
pixel_format.cpp
plugin.cpp
timestamped_object_metadata.cpp
action_response.cpp
active_setting_changed_action.cpp
active_setting_changed_response.cpp
attribute.cpp
device_info.cpp
error.cpp
lib_context.cpp
Generating Code...
Compiling...
log_utils.cpp
media_stream_statistics.cpp
plugin_diagnostic_event.cpp
settings_response.cpp
string.cpp
string_list.cpp
string_map.cpp
to_string.cpp
uuid_helper.cpp
Generating Code...
nx_sdk.vcxproj -> C:\develop\nx_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\b
uild\Release\nx_sdk.lib
Building Custom Rule C:/develop/nx_open_integrations/cpp/vms_server_plugins/openvino_object_detection_analytics_plugi
n/CMakeLists.txt
kuhn_munkres.cpp
tracking_by_matching.cpp
Generating Code...
opencv_tbm.vcxproj -> C:\develop\nx_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plug
in\build\Release\opencv_tbm.lib
Building Custom Rule C:/develop/nx_open_integrations/cpp/vms_server_plugins/openvino_object_detection_analytics_plugi
n/CMakeLists.txt
network.cpp
C:\develop\nx_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\src\lib\network.h(8,1
0): fatal error C1083: Cannot open include file: 'inference_engine.hpp': No such file or directory [C:\develop\nx_open_
integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\build\openvino_object_detection_analytic
s_plugin.vcxproj]
object_detection_processor.cpp
C:\develop\nx_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\src\lib\object_detect
or.h(9,10): fatal error C1083: Cannot open include file: 'inference_engine.hpp': No such file or directory [C:\develop\
nx_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\build\openvino_object_detection_
analytics_plugin.vcxproj]
object_detector.cpp
C:\develop\nx_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\src\lib\object_detect
or.h(9,10): fatal error C1083: Cannot open include file: 'inference_engine.hpp': No such file or directory [C:\develop\
nx_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\build\openvino_object_detection_
analytics_plugin.vcxproj]
object_tracker_utils.cpp
openvino_log_utils.cpp
C:\develop\nx_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\src\lib\openvino_log_
utils.h(5,10): fatal error C1083: Cannot open include file: 'inference_engine.hpp': No such file or directory [C:\devel
op\nx_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\build\openvino_object_detecti
on_analytics_plugin.vcxproj]
person_re_id.cpp
C:\develop\nx_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\src\lib\person_re_id.
h(14,10): fatal error C1083: Cannot open include file: 'inference_engine.hpp': No such file or directory [C:\develop\nx
_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\build\openvino_object_detection_an
alytics_plugin.vcxproj]
person_tracker.cpp
C:\develop\nx_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\src\lib\person_re_id.
h(14,10): fatal error C1083: Cannot open include file: 'inference_engine.hpp': No such file or directory [C:\develop\nx
_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\build\openvino_object_detection_an
alytics_plugin.vcxproj]
roi_processor.cpp
track.cpp
utils.cpp
C:\develop\nx_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\src\lib\utils.h(8,10)
: fatal error C1083: Cannot open include file: 'inference_engine.hpp': No such file or directory [C:\develop\nx_open_in
tegrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\build\openvino_object_detection_analytics_
plugin.vcxproj]
device_agent.cpp
C:\develop\nx_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\src\lib\object_detect
or.h(9,10): fatal error C1083: Cannot open include file: 'inference_engine.hpp': No such file or directory [C:\develop\
nx_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\build\openvino_object_detection_
analytics_plugin.vcxproj]
engine.cpp
C:\develop\nx_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\src\lib\object_detect
or.h(9,10): fatal error C1083: Cannot open include file: 'inference_engine.hpp': No such file or directory [C:\develop\
nx_open_integrations\cpp\vms_server_plugins\openvino_object_detection_analytics_plugin\build\openvino_object_detection_
analytics_plugin.vcxproj]
Generating Code...
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools>cmake --build "C:/develop/nx_open_integrations/cpp/vms_server_plugins/openvino_object_detection_analytics_plugin/build" --config Release
after running the above command i got this error0
Please sign in to leave a comment.
Comments
3 comments