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.
6392 Discussions

compilation issue for openvino-2020.3.0

OKI__HIdetaka
New Contributor I
1,761 Views

Hi , 

I have a problem to compile openvino-2020.3.0.zip downloaded from github. I expect it should be the source which corresponds to 2020.3.194 birary package.

The extracted ngraph and inference_engine/thirdparty/ade  directories are empty and it causes erros in cmake.  I would like to know how to get complete source tree of snapshot of 2020.3.194.

There is no problem to compile the source tree cloned from github, but somehow its ie_api seems to be  incompatible with 2020.3.194 binary.  Currently I use 22020.3.194 binary for Xeon servers , and I would like to build compatible ie_api one for Arm64 boxes.

Regards,

0 Kudos
11 Replies
Iffa_Intel
Moderator
1,732 Views

Greetings,


Please help to download from Openvino official site here :

https://software.intel.com/content/www/us/en/develop/tools/openvino-toolkit/get-started.html


and try to compile again.

Choose carefully according to your development environment (eg: windows/Linux/etc)


Sincerely,

Iffa



0 Kudos
OKI__HIdetaka
New Contributor I
1,727 Views

Hi, 

Thanks for your reply.

I suppose that Openvino official site provides only pre-compiled binary packages for x86_64 linux, linux with FPGA and Windows platforms except some releases for Raspberry Pi. Could you please direct how to download source tree?

I would like to download the source tree which is compiled as OpenVINO 2020.3.194 release. I suppose it could be downloaded from https://github.com/openvinotoolkit/openvino/releases/tag/2020.3.0  but both .zip and .tar.gz are not complete ones as I described in my previous post.

Best Regards,

 

0 Kudos
samontab
Valued Contributor II
1,721 Views

Hi,

The complete source code is on the git repository. The issue is that the "missing" code is stored as sub-modules in github, and the zip file doesn't add them.

Just do this instead of downloading the zip file:

git clone --recursive https://github.com/openvinotoolkit/openvino.git

That way it will grab the sub-modules as well, for example:

ls openvino/inference-engine/thirdparty/ade

CMakeLists.txt LICENSE README.md sources tutorial

 

0 Kudos
OKI__HIdetaka
New Contributor I
1,717 Views

Hi,

I understand to use "git submodule" command for source tree cloned from github. But zip file or tarball downloaded from https://github.com/openvinotoolkit/openvino/releases/tag/2020.3.0   does not incude .git repository info and "git submodule" does not work.

I can successfully compile the source tree clones with "git clone https://github.com/openvinotoolkit/openvino" and "git submodule --recursive --init", but ie-api of compiled inference engine is incompatible with 2020.3.194 x86_64 binary package, even using source tree cloned on June 4th, one day after 2020.3.194 release.

The souce files in cloned openvino/inference_engine/ie_bridges/c or python are much different from the ones in openvino-2020.3.0.tar.gz supposed as snapshot for 2020.3.194.

Best Regards,

0 Kudos
samontab
Valued Contributor II
1,710 Views

You're not specifying a branch when cloning so you're getting master, which is the latest.

Maybe this is the branch you're looking for:

git clone --recursive --branch releases/2020/4 https://github.com/openvinotoolkit/openvino.git

 

0 Kudos
OKI__HIdetaka
New Contributor I
1,702 Views

Dear,

I appreciate your direction. 

I cloned both branch release/2020/4 and release/2020/3 and confirmed that release/2020/3 is identical with untared 2020.3.0 except ngraph/ , inference-engine/thirdparty/ade/ and some misc files like as .git, .github, README.md and so on.  I have compiled release/2020/3 successfully.

Thank you very much for your help.

Best Regards,

0 Kudos
OKI__HIdetaka
New Contributor I
1,698 Views

Dear,

Can I ask one more question?

Regarding OpenCV, there are three tags 4.3.0, 4.3.0-openvino and 4.3.0-openvino-2020.3.0 in github. Which one I should use to build compatible binary with 2020.3.194 release? 

Best Regards,

 

0 Kudos
OKI__HIdetaka
New Contributor I
1,690 Views

Hi, 

I have executed  opencv_version command in /opt/intel/openvino_2020.3.194/opencv/bin/ on xeon server and the result is "4.3.0-openvino-2020.3.0".  I will clone with 4.3.0-openvino-2020.3.0 tag.

Best Regards,

0 Kudos
samontab
Valued Contributor II
1,688 Views

Glad to hear it worked for you.

Yeah, that OpenCV version sounds like the correct one.

Keep in mind that if you want to have exactly the same binaries you'll need the same OS version, which will have the same versions of all the dependencies.

I mention this because if you are building OpenVINO is a supported OS, like Ubuntu 18.04 for example, then OpenCV is downloaded automatically from here:

https://download.01.org/opencv/2020/openvinotoolkit/2020.3/inference_engine/

This is specified at the following file:

inference-engine/cmake/dependencies.cmake

 Having said that, compiling that version of OpenCV might also work for you depending on your environment and needs.

Good Luck!

OKI__HIdetaka
New Contributor I
1,676 Views

Hi,

My target ARCH is arm64 and the target OS is some sort of embeded linux. I suppose there is no suitable one in  https://download.01.org/opencv/2020/openvinotoolkit/2020.3/inference_engine/ . I compiled OpenCV source cloned from github successfully.

Thanks again for your advise.

Best Regards,

0 Kudos
samontab
Valued Contributor II
1,670 Views

Glad to hear it worked for you, enjoy!

0 Kudos
Reply