Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

Error building demos on 2020.2

Lechatellier__Brice
770 Views

Hi,

Since the latest version, I can't build the demos,

Running on Catalina 10.15.4 with Xcode 11.4

I also saw that the $LD_LIBRARY_PATH includes a reference to /opt/intel//openvino_2020.2.117/deployment_tools/inference_engine/external/mkltiny_mac/lib but the lib is not in the package anymore, is this normal?

➜  openvino source ./bin/setupvars.sh
[setupvars.sh] OpenVINO environment initialized
➜  openvino cd inference_engine/demos
➜  demos ./build_demos.sh

Setting environment variables for building demos...
[setupvars.sh] OpenVINO environment initialized
-- The C compiler identification is AppleClang 11.0.3.11030032
-- The CXX compiler identification is AppleClang 11.0.3.11030032
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for C++ include unistd.h
-- Looking for C++ include unistd.h - found
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - found
-- Looking for C++ include sys/types.h
-- Looking for C++ include sys/types.h - found
-- Looking for C++ include fnmatch.h
-- Looking for C++ include fnmatch.h - found
-- Looking for C++ include stddef.h
-- Looking for C++ include stddef.h - found
-- Check size of uint32_t
-- Check size of uint32_t - done
-- Looking for strtoll
-- Looking for strtoll - found
-- Found OpenCV: /opt/intel/openvino_2020.2.117/opencv (found version "4.3.0") found components:  core imgproc
-- Found InferenceEngine: /opt/intel/openvino_2020.2.117/deployment_tools/inference_engine/lib/intel64/libinference_engine.dylib (Required is at least version "2.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/brice/omz_demos_build
Scanning dependencies of target monitors
Scanning dependencies of target gflags_nothreads_static
[  2%] Building CXX object thirdparty/gflags/CMakeFiles/gflags_nothreads_static.dir/src/gflags.cc.o
[  2%] Building CXX object thirdparty/gflags/CMakeFiles/gflags_nothreads_static.dir/src/gflags_reporting.cc.o
[  3%] Building CXX object thirdparty/gflags/CMakeFiles/gflags_nothreads_static.dir/src/gflags_completions.cc.o
[  6%] Building CXX object common/monitors/CMakeFiles/monitors.dir/memory_monitor.cpp.o
[  6%] Building CXX object common/monitors/CMakeFiles/monitors.dir/presenter.cpp.o
[  6%] Building CXX object common/monitors/CMakeFiles/monitors.dir/cpu_monitor.cpp.o
[  7%] Linking CXX static library ../../intel64/Release/lib/libmonitors.a
[  7%] Built target monitors
[  9%] Linking CXX static library ../../intel64/Release/lib/libgflags_nothreads.a
[  9%] Built target gflags_nothreads_static
Scanning dependencies of target crossroad_camera_demo
Scanning dependencies of target human_pose_estimation_demo
Scanning dependencies of target mask_rcnn_demo
Scanning dependencies of target text_detection_demo
Scanning dependencies of target gaze_estimation_demo
Scanning dependencies of target common
Scanning dependencies of target interactive_face_detection_demo
Scanning dependencies of target object_detection_demo_faster_rcnn
[ 10%] Building CXX object mask_rcnn_demo/CMakeFiles/mask_rcnn_demo.dir/main.cpp.o
[ 11%] Building CXX object crossroad_camera_demo/CMakeFiles/crossroad_camera_demo.dir/main.cpp.o
[ 12%] Building CXX object object_detection_demo_faster_rcnn/CMakeFiles/object_detection_demo_faster_rcnn.dir/main.cpp.o
[ 13%] Building CXX object text_detection_demo/CMakeFiles/text_detection_demo.dir/main.cpp.o
[ 14%] Building CXX object multi_channel/common/CMakeFiles/common.dir/decoder.cpp.o
[ 15%] Building CXX object human_pose_estimation_demo/CMakeFiles/human_pose_estimation_demo.dir/main.cpp.o
[ 17%] Building CXX object gaze_estimation_demo/CMakeFiles/gaze_estimation_demo.dir/main.cpp.o
[ 18%] Building CXX object interactive_face_detection_demo/CMakeFiles/interactive_face_detection_demo.dir/detectors.cpp.o
[ 19%] Building CXX object multi_channel/common/CMakeFiles/common.dir/graph.cpp.o
[ 20%] Building CXX object human_pose_estimation_demo/CMakeFiles/human_pose_estimation_demo.dir/src/human_pose.cpp.o
[ 21%] Building CXX object gaze_estimation_demo/CMakeFiles/gaze_estimation_demo.dir/src/exponential_averager.cpp.o
[ 22%] Building CXX object gaze_estimation_demo/CMakeFiles/gaze_estimation_demo.dir/src/face_detector.cpp.o
[ 23%] Building CXX object human_pose_estimation_demo/CMakeFiles/human_pose_estimation_demo.dir/src/human_pose_estimator.cpp.o
[ 25%] Building CXX object text_detection_demo/CMakeFiles/text_detection_demo.dir/src/cnn.cpp.o
[ 26%] Linking CXX executable ../intel64/Release/mask_rcnn_demo
[ 26%] Built target mask_rcnn_demo
[ 27%] Building CXX object interactive_face_detection_demo/CMakeFiles/interactive_face_detection_demo.dir/face.cpp.o
[ 28%] Linking CXX executable ../intel64/Release/object_detection_demo_faster_rcnn
[ 28%] Built target object_detection_demo_faster_rcnn
[ 29%] Building CXX object multi_channel/common/CMakeFiles/common.dir/input.cpp.o
[ 30%] Building CXX object text_detection_demo/CMakeFiles/text_detection_demo.dir/src/image_grabber.cpp.o
[ 31%] Linking CXX executable ../intel64/Release/crossroad_camera_demo
[ 31%] Built target crossroad_camera_demo
[ 32%] Building CXX object multi_channel/common/CMakeFiles/common.dir/output.cpp.o
/opt/intel/openvino/inference_engine/demos/multi_channel/common/input.cpp:283:10: error: 'start' overrides a member
      function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
    void start();
         ^
/opt/intel/openvino/inference_engine/demos/multi_channel/common/input.cpp:39:18: note: overridden virtual function is
      here
    virtual void start() = 0;
                 ^
/opt/intel/openvino/inference_engine/demos/multi_channel/common/input.cpp:290:10: error: 'read' overrides a member
      function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
    bool read(VideoFrame& frame);
         ^
/opt/intel/openvino/inference_engine/demos/multi_channel/common/input.cpp:41:18: note: overridden virtual function is
      here
    virtual bool read(VideoFrame& frame) = 0;
                 ^
/opt/intel/openvino/inference_engine/demos/multi_channel/common/input.cpp:292:11: error: 'getAvgReadTime' overrides a
      member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
    float getAvgReadTime() const {
          ^
/opt/intel/openvino/inference_engine/demos/multi_channel/common/input.cpp:43:19: note: overridden virtual function is
      here
    virtual float getAvgReadTime() const = 0;
                  ^
3 errors generated.
make[2]: *** [multi_channel/common/CMakeFiles/common.dir/input.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 34%] Building CXX object interactive_face_detection_demo/CMakeFiles/interactive_face_detection_demo.dir/main.cpp.o
[ 35%] Building CXX object gaze_estimation_demo/CMakeFiles/gaze_estimation_demo.dir/src/face_inference_results.cpp.o
Scanning dependencies of target object_detection_demo_ssd_async
[ 36%] Building CXX object object_detection_demo_ssd_async/CMakeFiles/object_detection_demo_ssd_async.dir/main.cpp.o
[ 37%] Building CXX object gaze_estimation_demo/CMakeFiles/gaze_estimation_demo.dir/src/gaze_estimator.cpp.o
[ 38%] Building CXX object text_detection_demo/CMakeFiles/text_detection_demo.dir/src/text_detection.cpp.o
[ 39%] Building CXX object human_pose_estimation_demo/CMakeFiles/human_pose_estimation_demo.dir/src/peak.cpp.o
Scanning dependencies of target object_detection_demo_yolov3_async
[ 40%] Building CXX object object_detection_demo_yolov3_async/CMakeFiles/object_detection_demo_yolov3_async.dir/main.cpp.o
[ 42%] Building CXX object gaze_estimation_demo/CMakeFiles/gaze_estimation_demo.dir/src/head_pose_estimator.cpp.o
/opt/intel/openvino/inference_engine/demos/object_detection_demo_ssd_async/main.cpp:192:56: warning: 'getLayerByName' is
      deprecated: Migrate to IR v10 and work with ngraph::Function directly. The method will be removed in 2020.3
      [-Wdeprecated-declarations]
            const CNNLayerPtr outputLayer = cnnNetwork.getLayerByName(outputName.c_str());
                                                       ^
/opt/intel/openvino_2020.2.117/deployment_tools/inference_engine/include/cpp/ie_cnn_network.h:211:5: note:
      'getLayerByName' has been explicitly marked deprecated here
    INFERENCE_ENGINE_DEPRECATED("Migrate to IR v10 and work with ngraph::Function directly. The method will be r...
    ^
/opt/intel/openvino_2020.2.117/deployment_tools/inference_engine/include/ie_api.h:45:57: note: expanded from macro
      'INFERENCE_ENGINE_DEPRECATED'
#define INFERENCE_ENGINE_DEPRECATED(msg) __attribute__((deprecated((msg))))
                                                        ^
make[1]: *** [multi_channel/common/CMakeFiles/common.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 43%] Building CXX object interactive_face_detection_demo/CMakeFiles/interactive_face_detection_demo.dir/visualizer.cpp.o
/opt/intel/openvino/inference_engine/demos/object_detection_demo_yolov3_async/main.cpp:133:24: warning: 'CNNLayer' is
      deprecated: Migrate to IR v10 and work with ngraph::Function directly. The method will be removed in 2020.3
      [-Wdeprecated-declarations]
    YoloParams(CNNLayer::Ptr layer) {
                       ^
/opt/intel/openvino_2020.2.117/deployment_tools/inference_engine/include/ie_layers.h:91:7: note: 'CNNLayer' has been
      explicitly marked deprecated here
class INFERENCE_ENGINE_INTERNAL_CNNLAYER_CLASS(CNNLayer) {
      ^
/opt/intel/openvino_2020.2.117/deployment_tools/inference_engine/include/ie_api.h:66:5: note: expanded from macro
      'INFERENCE_ENGINE_INTERNAL_CNNLAYER_CLASS'
    INFERENCE_ENGINE_INTERNAL("Migrate to IR v10 and work with ngraph::Function directly. The method will be rem...
    ^
/opt/intel/openvino_2020.2.117/deployment_tools/inference_engine/include/ie_api.h:59:41: note: expanded from macro
      'INFERENCE_ENGINE_INTERNAL'
# define INFERENCE_ENGINE_INTERNAL(msg) INFERENCE_ENGINE_DEPRECATED(msg)
                                        ^
/opt/intel/openvino_2020.2.117/deployment_tools/inference_engine/include/ie_api.h:45:57: note: expanded from macro
      'INFERENCE_ENGINE_DEPRECATED'
#define INFERENCE_ENGINE_DEPRECATED(msg) __attribute__((deprecated((msg))))
                                                        ^
[ 44%] Building CXX object human_pose_estimation_demo/CMakeFiles/human_pose_estimation_demo.dir/src/render_human_pose.cpp.o
[ 45%] Building CXX object text_detection_demo/CMakeFiles/text_detection_demo.dir/src/text_recognition.cpp.o
[ 46%] Building CXX object gaze_estimation_demo/CMakeFiles/gaze_estimation_demo.dir/src/ie_wrapper.cpp.o
[ 47%] Building CXX object gaze_estimation_demo/CMakeFiles/gaze_estimation_demo.dir/src/landmarks_estimator.cpp.o
[ 48%] Building CXX object gaze_estimation_demo/CMakeFiles/gaze_estimation_demo.dir/src/results_marker.cpp.o
[ 50%] Linking CXX executable ../intel64/Release/text_detection_demo
[ 50%] Built target text_detection_demo
[ 51%] Building CXX object gaze_estimation_demo/CMakeFiles/gaze_estimation_demo.dir/src/utils.cpp.o
[ 52%] Linking CXX executable ../intel64/Release/human_pose_estimation_demo
[ 52%] Built target human_pose_estimation_demo
[ 53%] Linking CXX executable ../intel64/Release/interactive_face_detection_demo
[ 53%] Built target interactive_face_detection_demo
1 warning generated.
[ 54%] Linking CXX executable ../intel64/Release/object_detection_demo_ssd_async
[ 54%] Built target object_detection_demo_ssd_async
1 warning generated.
[ 55%] Linking CXX executable ../intel64/Release/object_detection_demo_yolov3_async
[ 55%] Built target object_detection_demo_yolov3_async
[ 56%] Linking CXX executable ../intel64/Release/gaze_estimation_demo
[ 56%] Built target gaze_estimation_demo
make: *** [all] Error 2
Error on or near line 85; exiting with status 1

 

0 Kudos
8 Replies
SIRIGIRI_V_Intel
Employee
770 Views

Hi Brice,

OpenVINO officially supports on macOS* 10.14.x and validated on 10.14.4

Make sure that you use the supported hardware. Please follow the official documentation for more details.

Regards,

Ram prasad

0 Kudos
Lechatellier__Brice
770 Views

Thanks, that's unfortunate, do you know when support for Catalina will be available please?

Do you know why "mkltiny_mac" is not in the openvino package anymore?

 

0 Kudos
SIRIGIRI_V_Intel
Employee
770 Views

Intel does not comment on future releases. We will let you know if the support is available. please keep an eye on the forum.

mkltiny is removed to significantly decrease the binary distribution size required for inference on CPU.

Regards,

Ram prasad

0 Kudos
Lechatellier__Brice
770 Views

Thanks, it has been removed but still required in the CMake file, is that normal?

0 Kudos
SIRIGIRI_V_Intel
Employee
770 Views

Can you please provide more information on where it is required and used.

Regards,

Ram prasad

0 Kudos
Lechatellier__Brice
770 Views

In /opt/intel/openvino/bin/setupvars.sh line 60

export DYLD_LIBRARY_PATH=$INSTALLDIR/deployment_tools/inference_engine/external/mkltiny_mac/lib:$INSTALLDIR/deployment_tools/inference_engine/external/tbb/lib:$IE_PLUGINS_PATH:$DYLD_LIBRARY_PATH

 

0 Kudos
SIRIGIRI_V_Intel
Employee
770 Views

Thanks for pointing out.

This can be useful for the users if they install the mkltiny library separately. The user can modify the path for the mkl library accordingly. However it should not effect the environment for OpenVINO.

Regards,

Ram prasad

0 Kudos
Raj__Neev
Beginner
770 Views

Ram prasad (Intel) wrote:

Hi Brice,

OpenVINO officially supports on macOS* 10.14.x and validated on 10.14.4

Make sure that you use the supported hardware. Please follow the official documentation for more details.

Regards,

Ram prasad

 

For me it is failing even on MacOs 10.14.16.

0 Kudos
Reply