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.

Missed header file onnx/onnx-ml.pb.h

redradist
Novice
1,569 Views

Hi all,

 

I've faced with issue that:

~/Projects/OpenVINO/cmake-build-debug/_deps/ext_onnx-src/onnx/onnx_pb.h:50:10: fatal error: onnx/onnx-ml.pb.h: No such file or directory

Here is my options:

-DVERBOSE_BUILD=ON -DENABLE_TEMPLATE_PLUGIN=ON -DCMAKE_BUILD_TYPE=Debug -DENABLE_PYTHON=ON -DPYTHON_EXECUTABLE=/usr/local/bin/python3 -DENABLE_WHEEL=ON -DENABLE_TESTS=ON -DENABLE_FASTER_BUILD=ON -DONNX_ML=1 -DIE_EXTRA_MODULES=${OPENVINO_CONTRIB_REPO_DIR}/modules

Seems like onnx should be built during compile time `~/Projects/OpenVINO/cmake-build-debug/_deps/ext_onnx-src` because cmake download sources from the git repo ...

Seems like this issue is that `~/Projects/OpenVINO/cmake-build-debug/_deps/ext_onnx-src` not compiled before main target

Maybe I missed some option ?

0 Kudos
2 Replies
Iffa_Intel
Moderator
1,543 Views

Greetings,

 

First of all, it is recommended for you to use the latest OpenVINO version 2021.3 and refer to the wiki section from the link I provide below.

Build the OpenVINO from source correctly according to your OS:

https://github.com/openvinotoolkit/openvino/wiki

 

Make sure you could successfully build it (means all pre-requisite had been installed & setup correctly)

 

I had attached the successfully OpenVINO 2021.3 built from source & I'm using Ubuntu 18.04

My steps are the same as this guide: https://github.com/openvinotoolkit/openvino/wiki/BuildingForLinux

 

NOTE: make sure you are using CMake* 3.13 or higher

 

Sincerely,

Iffa

0 Kudos
Iffa_Intel
Moderator
1,505 Views

Greetings,


Intel will no longer monitor this thread since we have provided a solution. If you need any additional information from Intel, please submit a new question.


Sincerely,

iffa


0 Kudos
Reply