Intel® Distribution of OpenVINO™ Toolkit
Community support and discussions about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all things computer vision-related on Intel® platforms.
5919 Discussions

Errors executing build_demos_msvc.bat VS2019 to run "Object Detection C++ Demo"

RGVGreatCoder
Novice
309 Views

I am trying to run the "Object Detection C++ Demo" (https://docs.openvino.ai/2021.4/omz_demos_object_detection_demo_cpp.html).

In the process, I encountered errors when executing [build_demos_msvc.bat VS2019]. 

These are the steps I executed:

  1. "pip uninstall openvino-dev": I ran this thinking this openvino version  for Python will conflict with the offline/online runtime installer version, I want to run for C++ programs.
  2. Downloaded and installed the offline/online runtime installer. All good in this step.
  3. Executed "setupvars.bat" successfully and "build_demos_msvc.bat" with errors, as follows:
<PATH>\open_model_zoo\demos>"C:\Program Files (x86)\Intel\openvino_2022.1.0.643\setupvars.bat"
Python 3.9.13
[setupvars.bat] OpenVINO environment initialized

<PATH>\open_model_zoo\demos>build_demos_msvc.bat
Searching for the latest Visual Studio...
The most recent version of Visual Studio installed on this computer (2022) is not supported by this script.
If one of the supported versions is installed, try to pass an argument to this script to indicate which version should be used.
Supported versions: VS2015 VS2017 VS2019
Error

<PATH>\open_model_zoo\demos>build_demos_msvc.bat VS2019
Creating Visual Studio 16 2019 Win32 files in C:\Users\manue\Documents\Intel\OpenVINO\omz_demos_build...
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
-- The C compiler identification is MSVC 19.29.30145.0
-- The CXX compiler identification is MSVC 19.29.30145.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/x86/cl.ex
e - 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/x86/cl.
exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:44 (message):
  Only 64-bit supported on Windows


-- Configuring incomplete, errors occurred!
See also "C:/Users/manue/Documents/Intel/OpenVINO/omz_demos_build/CMakeFiles/CMakeOutput.log".

###############|| Build Open Model Zoo Demos using MS Visual Studio ||###############

cmake --build . --config Release
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1009: Project file does not exist.
Switch: ALL_BUILD.vcxproj
Error

 I have VS2022 (which I understood is not supported) and VS2019 v16.11.15 (which is supported).

Please help me fix the error above.

0 Kudos
12 Replies
Wan_Intel
Moderator
287 Views

Hi RGVGreatCoder,

Thanks for reaching out to us.

The error you encountered “Only 64-bit supported on Windows” was due to your Visual Studio 16 2019 is version Win32. Use Visual Studio 16 2019 x64 and build the application again.

 

 

Regards,

Wan


RGVGreatCoder
Novice
277 Views

I got the Only 64-bit supported on Windows” error after executing the "build_demos_msvc.bat VS2019" at the command prompt. How can I call VS2019 x64 executing the same batch file at the command prompt? Or, am I missing a setting or a step?

RGVGreatCoder
Novice
264 Views

I decided that, instead of executing "build_demos_msvc.bat VS2019"  at the command prompt, I make use of "CMake" mentioned on this page (https://docs.openvino.ai/2022.1/omz_demos.html#build-the-demo-applications).

These are the steps I performed:

 

C:\Users\manue\source\repos\AI-Machine-Learning>md omzoo_odcpp_demo
C:\Users\manue\source\repos\AI-Machine-Learning>cd omzoo_odcpp_demo

C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo>cmake -A x64 c:\users\manue\source\repos\ai-machine-learning\open_mod
el_zoo\demos
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
-- The C compiler identification is MSVC 19.32.31329.0
-- The CXX compiler identification is MSVC 19.32.31329.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.32.31326/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/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/c
l.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenCV: C:/Program Files (x86)/Intel/openvino_2022.1.0.643/extras/opencv (found version "4.5.5") found components: core highg
ui videoio imgproc imgcodecs gapi
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Check size of __int32
-- Check size of __int32 - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/manue/source/repos/AI-Machine-Learning/omzoo_odcpp_demo

 

At this point, I can't tell if there were any issues but if there were, please let me know.

Following, I executed "cmake --build . --config Release --target object_detection_demo" and noticed all the errors that appeared occurred on "...cpp\models\models.vcxproj":

 

C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo>cmake --build . --config Release --target object_detection_demo
Microsoft (R) Build Engine version 17.2.1+52cd2da31 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking Build System
  Building Custom Rule C:/Users/manue/source/repos/AI-Machine-Learning/open_model_zoo/demos/thirdparty/gflags/CMakeLists.txt
  gflags.cc
  gflags_reporting.cc
  gflags_completions.cc
  windows_port.cc
  Generating Code...
  gflags_nothreads_static.vcxproj -> C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\intel64\Release\gflags_nothread
  s_static.lib
  Building Custom Rule C:/Users/manue/source/repos/AI-Machine-Learning/open_model_zoo/demos/common/cpp/utils/CMakeLists.txt
  args_helper.cpp
  config_factory.cpp
  images_capture.cpp
  kuhn_munkres.cpp
  performance_metrics.cpp
  Generating Code...
  utils.vcxproj -> C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\intel64\Release\utils.lib
  Building Custom Rule C:/Users/manue/source/repos/AI-Machine-Learning/open_model_zoo/demos/common/cpp/models/CMakeLists.txt
  associative_embedding_decoder.cpp
  classification_model.cpp
  deblurring_model.cpp
  detection_model.cpp
  detection_model_centernet.cpp
  detection_model_faceboxes.cpp
  detection_model_retinaface.cpp
  detection_model_retinaface_pt.cpp
  detection_model_ssd.cpp
  detection_model_yolo.cpp
C:\Program Files (x86)\Intel\openvino_2022.1.0.643\runtime\include\ngraph/op/region_yolo.hpp(13,19): error C2874: using-declaration causes a multiple declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(23): message : see declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(115,24): error C2027: use of undefined type 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(23): message : see declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(115,38): error C2039: 'get_mask': is not a member of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\om
zoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(40): message : see declaration of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(307,24): error C2027: use of undefined type 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(23): message : see declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\m
odels\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(307,26): error C2039: 'get_num_coords': is not a member of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learn
ing\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(40): message : see declaration of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_
demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(308,25): error C2027: use of undefined type 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\
models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(23): message : see declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(308,27): error C2039: 'get_num_classes': is not a member of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Lear
ning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(40): message : see declaration of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_
demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(309,27): error C2027: use of undefined type 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(23): message : see declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(309,29): error C2039: 'get_mask': is not a member of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(40): message : see declaration of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(310,15): error C3536: 'mask': cannot be used before it is initialized [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(312,28): error C2027: use of undefined type 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(23): message : see declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(312,30): error C2039: 'get_input_shape': is not a member of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Lear
ning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(40): message : see declaration of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_
demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(313,24): error C3536: 'shape': cannot be used before it is initialized [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(313,26): error C2109: subscript requires array or pointer type [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(314,27): error C2109: subscript requires array or pointer type [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(322,40): error C2027: use of undefined type 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(23): message : see declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(322,42): error C2039: 'get_anchors': is not a member of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(40): message : see declaration of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(322,62): error C2109: subscript requires array or pointer type [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(323,44): error C2027: use of undefined type 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(23): message : see declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(323,46): error C2039: 'get_anchors': is not a member of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(40): message : see declaration of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(323,66): error C2109: subscript requires array or pointer type [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(328,25): error C2027: use of undefined type 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(23): message : see declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(328,27): error C2039: 'get_num_regions': is not a member of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Lear
ning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(40): message : see declaration of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(329,29): error C2027: use of undefined type 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(23): message : see declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\m
odels\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(329,31): error C2039: 'get_anchors': is not a member of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(40): message : see declaration of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
  hpe_model_associative_embedding.cpp
  hpe_model_openpose.cpp
  image_model.cpp
  model_base.cpp
  openpose_decoder.cpp
  segmentation_model.cpp
  super_resolution_model.cpp
  Generating Code...
  Building Custom Rule C:/Users/manue/source/repos/AI-Machine-Learning/open_model_zoo/demos/common/cpp/monitors/CMakeLists.txt
  cpu_monitor.cpp
  memory_monitor.cpp
  presenter.cpp
  query_wrapper.cpp
  Generating Code...
  monitors.vcxproj -> C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\intel64\Release\monitors.lib

 

I then executed CMake for Degbug "cmake --build . --config Debug --target object_detection_demo" and noticed all the errors that appeared also occurred on "...cpp\models\models.vcxproj":

 

C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo>cmake --build . --config Debug --target object_detection_demo
Microsoft (R) Build Engine version 17.2.1+52cd2da31 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

  Checking Build System
  Building Custom Rule C:/Users/manue/source/repos/AI-Machine-Learning/open_model_zoo/demos/thirdparty/gflags/CMakeLists.txt
  gflags.cc
  gflags_reporting.cc
  gflags_completions.cc
  windows_port.cc
  Generating Code...
  gflags_nothreads_static.vcxproj -> C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\intel64\Debug\gflags_nothreads_
  static_debug.lib
  Building Custom Rule C:/Users/manue/source/repos/AI-Machine-Learning/open_model_zoo/demos/common/cpp/utils/CMakeLists.txt
  args_helper.cpp
  config_factory.cpp
  images_capture.cpp
  kuhn_munkres.cpp
  performance_metrics.cpp
  Generating Code...
  utils.vcxproj -> C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\intel64\Debug\utils.lib
  Building Custom Rule C:/Users/manue/source/repos/AI-Machine-Learning/open_model_zoo/demos/common/cpp/models/CMakeLists.txt
  associative_embedding_decoder.cpp
  classification_model.cpp
  deblurring_model.cpp
  detection_model.cpp
  detection_model_centernet.cpp
  detection_model_faceboxes.cpp
  detection_model_retinaface.cpp
  detection_model_retinaface_pt.cpp
  detection_model_ssd.cpp
  detection_model_yolo.cpp
C:\Program Files (x86)\Intel\openvino_2022.1.0.643\runtime\include\ngraph/op/region_yolo.hpp(13,19): error C2874: using-declaration causes a multiple declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(23): message : see declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(115,24): error C2027: use of undefined type 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(23): message : see declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\m
odels\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(115,38): error C2039: 'get_mask': is not a member of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(40): message : see declaration of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_
demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(307,24): error C2027: use of undefined type 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\
models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(23): message : see declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(307,26): error C2039: 'get_num_coords': is not a member of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learn
ing\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(40): message : see declaration of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_
demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(308,25): error C2027: use of undefined type 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(23): message : see declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(308,27): error C2039: 'get_num_classes': is not a member of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(40): message : see declaration of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_
demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(309,27): error C2027: use of undefined type 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(23): message : see declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(309,29): error C2039: 'get_mask': is not a member of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(40): message : see declaration of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_
demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(310,15): error C3536: 'mask': cannot be used before it is initialized [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(312,28): error C2027: use of undefined type 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(23): message : see declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(312,30): error C2039: 'get_input_shape': is not a member of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(40): message : see declaration of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(313,24): error C3536: 'shape': cannot be used before it is initialized [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(313,26): error C2109: subscript requires array or pointer type [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(314,27): error C2109: subscript requires array or pointer type [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(322,40): error C2027: use of undefined type 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(23): message : see declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(322,42): error C2039: 'get_anchors': is not a member of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(40): message : see declaration of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_
demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(322,62): error C2109: subscript requires array or pointer type [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(323,44): error C2027: use of undefined type 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(23): message : see declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(323,46): error C2039: 'get_anchors': is not a member of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(40): message : see declaration of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(323,66): error C2109: subscript requires array or pointer type [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(328,25): error C2027: use of undefined type 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(23): message : see declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(328,27): error C2039: 'get_num_regions': is not a member of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(40): message : see declaration of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_
demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(329,29): error C2027: use of undefined type 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(23): message : see declaration of 'ngraph::op::v0::RegionYolo' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\src\detection_model_yolo.cpp(329,31): error C2039: 'get_anchors': is not a member of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo\demos\common\cpp\models\include\models/detection_model_yolo.h(40): message : see declaration of 'std::shared_ptr<ngraph::op::v0::RegionYolo>' [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\common\cpp\models\models.vcxproj]
  hpe_model_associative_embedding.cpp
  hpe_model_openpose.cpp
  image_model.cpp
  model_base.cpp
  openpose_decoder.cpp
  segmentation_model.cpp
  super_resolution_model.cpp
  Generating Code...
  Building Custom Rule C:/Users/manue/source/repos/AI-Machine-Learning/open_model_zoo/demos/common/cpp/monitors/CMakeLists.txt
  cpu_monitor.cpp
  memory_monitor.cpp
  presenter.cpp
  query_wrapper.cpp
  Generating Code...
  monitors.vcxproj -> C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\intel64\Debug\monitors.lib

 

Thank you for your help and hopefully you can help me troubleshoot the errors mentioned above.

Wan_Intel
Moderator
246 Views

Hi RGVGreatCoder,

Could you please uninstall or remove Visual Studio version 2022? The supported version of Microsoft Visual Studio to build the demo applications on Microsoft Windows is version 2019. You may refer to here for more information.

 

 

Regards,

Wan


RGVGreatCoder
Novice
235 Views

Uninstalling VS2022 is not an option for me because I am using it for other projects at work that are in production that require .net core 6 (I am a software developer).  In fact, I was about to uninstall VS2019 a week ago since I have not been using it for a month already.

Is there a way to run "CMake" with an attribute to specify what version of Visual Studio to use? Would it work if I specify the generator name like this "cmake --config Debug -G VS2019..."?
RGVGreatCoder
Novice
220 Views

I believe to have ran the "CMake" with VS2019 generator; however, I still encountered issues. Let me provide the steps and details below:

 

 

 

C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo>"C:\Program Files (x86)\Intel\ope
nvino_2022.1.0.643\setupvars.bat"
Python 3.9.13
[setupvars.bat] OpenVINO environment initialized

C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo>cmake -G "Visual Studio 16 2019" -A x64 c:\users\manue\source\repos\ai-machine-learning\open_model_zoo\demos
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Check size of __int32
-- Check size of __int32 - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/manue/source/repos/AI-Machine-Learning/omzoo_odcpp_d
emo

 

 

I don't seem to see any errors above, except "pthread.h" not found. If you see issues please let me know.

 

With Visual Studio 2019, I opened the "Demo.sln" solution. I selected "Debug", "x64" and right-clicked "object_detection_demo" project and selected "build". When done, there were 26 errors. Below is a screenshot of the errors and again, all pointing to the "models" project:

RGVGreatCoder_0-1656175510363.png

How can I fix these issues? What am I missing?

 

OS: Windows 11 Home (build: 22000.739)
CMake: 3.23.2
Generator: VS2019 (ver: 16.11.16)
Python: 3.9.13
numpy: 1.19.5
OpenCV: 4.5.5-openvino
Cuda compilation tools, release 11.7, V11.7.64

 

Wan_Intel
Moderator
191 Views

Hi RGVGreatCoder,

Thanks for sharing your information with us. We are investigating this issue, and we will get back to you as soon as possible.

 

 

Regards,

Wan


RGVGreatCoder
Novice
164 Views

I just realized that I am using OpenVINO 2022.1.0 runtime/offline installer. However, the demo I am trying to process is from open_model_zoo 2021.4.2 I had saved on my computer some months ago. Could this be causing the 26 errors my screenshot above from VS2019 is listing? Do I need to use open_model_zoo 2022.1.0 instead?

Well, I downloaded the open_model_zoo 2022.1.0 but, when I executed "CMake" on it, I encountered an error I reported in this separate case: Failed to run Object Detection C++ Demo on Windows 10 & VS2019 - Intel Communities .

Hopefully I can get a response from you as soon as possible. 

Thank you.

RGVGreatCoder
Novice
155 Views

As I mentioned on my post immediately above, I downloaded the "open_model_zoo 2022.1.0". I then copied the content in the "<path>\open_model_zoo_2021\demos\thirdparty\gflags" folder into the "<path>\open_model_zoo_2022\demos\thirdparty\gflags" folder. I then proceeded to build for the "Debug/x64" and "Release/x64" object_detection_demo project from within VS2019 and this time, I did not see any errors.

These are the generated/created files for "Release"

Directory of C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\intel64\Release

06/29/2022  12:03 AM    <DIR>          .
06/28/2022  08:53 PM    <DIR>          ..
06/28/2022  08:49 PM           665,608 gflags_nothreads_static.lib
06/28/2022  08:50 PM         4,440,774 models.lib
06/28/2022  08:49 PM           432,026 monitors.lib
06/29/2022  12:03 AM                 0 objdet_release.txt
06/28/2022  08:50 PM           450,048 object_detection_demo.exe
06/28/2022  08:50 PM           340,756 pipelines.lib
06/28/2022  08:49 PM         1,000,328 utils.lib
               7 File(s)      7,329,540 bytes
               2 Dir(s)  36,831,825,920 bytes free

These are the generated/created files for "Debug"

Directory of C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_odcpp_demo\intel64\Debug

06/29/2022  12:07 AM    <DIR>          .
06/28/2022  08:53 PM    <DIR>          ..
06/28/2022  08:53 PM         3,447,462 gflags_nothreads_static_debug.lib
06/28/2022  08:53 PM           856,064 gflags_nothreads_static_debug.pdb
06/28/2022  08:54 PM        29,571,984 models.lib
06/28/2022  08:54 PM         5,697,536 models.pdb
06/28/2022  08:53 PM         3,047,520 monitors.lib
06/28/2022  08:53 PM         1,159,168 monitors.pdb
06/29/2022  12:07 AM                 0 objdet_debug.txt
06/28/2022  08:54 PM         1,911,808 object_detection_demo.exe
06/28/2022  08:54 PM        13,660,160 object_detection_demo.pdb
06/28/2022  08:54 PM         2,495,300 pipelines.lib
06/28/2022  08:54 PM         4,100,096 pipelines.pdb
06/28/2022  08:53 PM         6,468,654 utils.lib
06/28/2022  08:53 PM         4,198,400 utils.pdb
              13 File(s)     76,614,152 bytes
               2 Dir(s)  36,830,924,800 bytes free

However, when I double-clicked the "object_detection_demo.exe" files in either folder, I get this error:

RGVGreatCoder_0-1656479533938.png

 

Questions:

  1. Did I do wrong copying the content of the "gflags" folder in "open_model_zoo_2021" to "open_model_zoo_2022"?
  2. Why am I getting that System Error message if I installed OpenVINO 2022.1.0 runtime/offline installer and I also ran "pip install openvino-dev[onnx,tensorflow2]" (this one because I want the extra developer tools)? What am I missing?
  3. How can I run the "open_detection_demo c++" from within VS2019 (I will appreciate detailed steps as possible) in "Debug" mode to see how to code works?

Thank you and will be waiting for your reply,

Manuel Hernandez

RGVGreatCoder
Novice
140 Views

I deleted the "open_model_zoo" folder and the "omzoo_odcpp_demo" folder to redo the steps again. This time, I git cloned the "open_model_zoo" and ran git module update, then "CMake" before building the projects in Visual Studio 2019. All went smooth and with no errors. However, when I doubled clicked "object_detection_demo.exe" inside [C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_demos\intel64\Release] folder, I got a System Error that read:

"The code execution cannot proceed because openvino.dll was not found. Reinstalling the program may fix this problem."

Following are the steps I performed:

 

C:\Users\manue\source\repos\AI-Machine-Learning>git clone https://github.com/openvinotoolkit/open_model_zoo.git
Cloning into 'open_model_zoo'...
remote: Enumerating objects: 96248, done.
remote: Total 96248 (delta 0), reused 0 (delta 0), pack-reused 96248
Receiving objects: 100% (96248/96248), 281.41 MiB | 6.06 MiB/s, done.
Resolving deltas: 100% (65378/65378), done.
Updating files: 100% (2620/2620), done.

C:\Users\manue\source\repos\AI-Machine-Learning>cd open_model_zoo

C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo>git submodule update --init --recursive
Submodule 'demos/thirdparty/gflags' (https://github.com/gflags/gflags.git) registered for path 'demos/thirdparty/gflags'
Cloning into 'C:/Users/manue/source/repos/AI-Machine-Learning/open_model_zoo/demos/thirdparty/gflags'...
Submodule path 'demos/thirdparty/gflags': checked out 'e171aa2d15ed9eb17054558e0b3a6a413bb01067'
Submodule 'doc' (https://github.com/gflags/gflags.git) registered for path 'demos/thirdparty/gflags/doc'
Cloning into 'C:/Users/manue/source/repos/AI-Machine-Learning/open_model_zoo/demos/thirdparty/gflags/doc'...
Submodule path 'demos/thirdparty/gflags/doc': checked out '8411df715cf522606e3b1aca386ddfc0b63d34b4'

C:\Users\manue\source\repos\AI-Machine-Learning\open_model_zoo>cd..

C:\Users\manue\source\repos\AI-Machine-Learning>cd omzoo_demos

C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_demos> "C:\Program Files (x86)\Intel\openvino_2022.1.0.643\setupvars.bat"
Python 3.9.13
[setupvars.bat] OpenVINO environment initialized

C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_demos>cmake -G "Visual Studio 16 2019" -A x64 c:\users\manue\source\repos\ai-machine-
learning\open_model_zoo\demos
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22000.
-- The C compiler identification is MSVC 19.29.30145.0
-- The CXX compiler identification is MSVC 19.29.30145.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
-- Found OpenCV: C:/Program Files (x86)/Intel/openvino_2022.1.0.643/extras/opencv (found version "4.5.5") found components: core highgui vi
deoio imgproc imgcodecs gapi
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Check size of __int32
-- Check size of __int32 - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/manue/source/repos/AI-Machine-Learning/omzoo_demos

 

I then proceeded to build the "Release/x64" and "Debug/x64" for object_detection_demo project from within Visual Studio 2019 and I saw no errors as well.

These are the generated/created files for "Release":

 

Directory of C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_demos\intel64\Release

06/30/2022  12:07 AM    <DIR>          .
06/29/2022  08:21 PM    <DIR>          ..
06/29/2022  08:20 PM           665,608 gflags_nothreads_static.lib
06/29/2022  08:21 PM         4,423,824 models.lib
06/29/2022  08:20 PM           432,148 monitors.lib
06/29/2022  08:21 PM           450,048 object_detection_demo.exe
06/29/2022  08:21 PM           340,848 pipelines.lib
06/29/2022  08:20 PM         1,003,410 utils.lib
               6 File(s)      7,315,886 bytes
               2 Dir(s)  33,059,774,464 bytes free

 

These are the generated/created files for "Debug":

Directory of C:\Users\manue\source\repos\AI-Machine-Learning\omzoo_demos\intel64\Debug

06/30/2022  12:13 AM    <DIR>          .
06/29/2022  08:21 PM    <DIR>          ..
06/29/2022  08:22 PM         3,447,462 gflags_nothreads_static_debug.lib
06/29/2022  08:22 PM           856,064 gflags_nothreads_static_debug.pdb
06/29/2022  08:22 PM        29,367,566 models.lib
06/29/2022  08:22 PM         5,664,768 models.pdb
06/29/2022  08:22 PM         3,052,948 monitors.lib
06/29/2022  08:22 PM         1,159,168 monitors.pdb
06/29/2022  08:23 PM         1,909,760 object_detection_demo.exe
06/29/2022  08:23 PM        13,651,968 object_detection_demo.pdb
06/29/2022  08:23 PM         2,494,224 pipelines.lib
06/29/2022  08:23 PM         4,091,904 pipelines.pdb
06/29/2022  08:22 PM         6,446,374 utils.lib
06/29/2022  08:22 PM         4,198,400 utils.pdb
              12 File(s)     76,340,606 bytes
               2 Dir(s)  33,058,201,600 bytes free

However, when I double-clicked the "object_detection_demo.exe" in the "Release" folder, I get this error:

RGVGreatCoder_0-1656565777865.png

Questions:

  1. Why am I getting that System Error message if I installed OpenVINO 2022.1.0 runtime/offline installer and I also ran "pip install openvino-dev[onnx,tensorflow2]" (this one because I want the extra developer tools)? What am I missing?
  2. How can I run (debug) the "object_detection_demo c++" project in Visual Studio 2019 in such a way I can set breakpoints in the source code to learn how it works (I will really appreciate detailed steps)? 

Thank you and will be waiting for your reply,

Manuel Hernandez

Wan_Intel
Moderator
96 Views

Hi RGVGreatCoder,

Thanks for your patience. We've got reply from the relevant team.

The error seems to be from the Microsoft Visual Studio and not from OpenVINO™ toolkit. Let's focus on using build_demos_msvc.bat VS2019 and the system is Windows 10. Make sure to run the Command Prompt and select "Run as administrator " because the path directory is not accessible by Microsoft Visual Studio. If the issue still happens, please re-install the Microsoft Visual Studio 2019 based on the configuration here.

go.jpg

Hope this information help.

 

 

Regards,

Wan

 

Wan_Intel
Moderator
40 Views

Hi RGVGreatCoder,

Thanks for your question.

This thread will no longer be monitored since we have provided suggestions. 

If you need any additional information from Intel, please submit a new question.

 

 

Best regards,

Wan


Reply