Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Tolbert__Donnie
Beginner
108 Views

OpenVINO 2019R1 build fails on Raspian

Hello,

I downloaded the new release of OpenVINO for Raspberry PI but the build of the object_detection_sample_ssd fails due to signed/unsigned comparisons and unused variables in the extension/ext_spacial_transformer.cpp file.  Build messages are below.  I fixed it just by changing the types of the iterator variables, and removing the one unused variable:

 

$ make object_detection_sample_ssd
Scanning dependencies of target ie_cpu_extension
[  0%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_argmax.cpp.o
[  3%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_base.cpp.o
[  3%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_ctc_greedy.cpp.o
[  6%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_depth_to_space.cpp.o
[ 10%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_detectionoutput.cpp.o
[ 10%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_detectionoutput_onnx.cpp.o
[ 13%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_expand.cpp.o
[ 13%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_fill.cpp.o
[ 17%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_gather.cpp.o
[ 17%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_grn.cpp.o
[ 20%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_interp.cpp.o
[ 24%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_list.cpp.o
[ 24%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_mvn.cpp.o
[ 27%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_normalize.cpp.o
[ 27%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_pad.cpp.o
[ 31%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_powerfile.cpp.o
[ 34%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_priorbox.cpp.o
[ 34%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_priorbox_clustered.cpp.o
[ 37%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_priorgridgenerator_onnx.cpp.o
[ 37%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_proposal.cpp.o
^[T[ 41%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_proposal_onnx.cpp.o
^T[ 41%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_psroi.cpp.o
[ 44%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_range.cpp.o
[ 48%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_region_yolo.cpp.o
[ 48%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_reorg_yolo.cpp.o
[ 51%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_resample.cpp.o
[ 51%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_reverse_sequence.cpp.o
[ 55%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_roifeatureextractor_onnx.cpp.o
[ 55%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_shuffle_channels.cpp.o
[ 58%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_simplernms.cpp.o
[ 62%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_space_to_depth.cpp.o
[ 62%] Building CXX object ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_spatial_transformer.cpp.o
/home/pi/inference_engine_vpu_arm/deployment_tools/inference_engine/src/extension/ext_spatial_transformer.cpp: In member function ‘virtual InferenceEngine::StatusCode InferenceEngine::Extensions::Cpu::SpatialTransformerImpl::execute(std::vector<std::shared_ptr<InferenceEngine::Blob> >&, std::vector<std::shared_ptr<InferenceEngine::Blob> >&, InferenceEngine::ResponseDesc*)’:
/home/pi/inference_engine_vpu_arm/deployment_tools/inference_engine/src/extension/ext_spatial_transformer.cpp:53:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (int i = 0; i < output_H_ * output_W_; ++i) {
                         ~~^~~~~~~~~~~~~~~~~~~~~~~
/home/pi/inference_engine_vpu_arm/deployment_tools/inference_engine/src/extension/ext_spatial_transformer.cpp:60:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (int i = 0; i < N; ++i) {
                         ~~^~~
/home/pi/inference_engine_vpu_arm/deployment_tools/inference_engine/src/extension/ext_spatial_transformer.cpp:72:31: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
             for (int j = 0; j < C; ++j) {
                             ~~^~~
/home/pi/inference_engine_vpu_arm/deployment_tools/inference_engine/src/extension/ext_spatial_transformer.cpp:73:35: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
                 for (int s = 0; s < output_H_; ++s) {
                                 ~~^~~~~~~~~~~
/home/pi/inference_engine_vpu_arm/deployment_tools/inference_engine/src/extension/ext_spatial_transformer.cpp:74:39: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
                     for (int t = 0; t < output_W_; ++t) {
                                     ~~^~~~~~~~~~~
/home/pi/inference_engine_vpu_arm/deployment_tools/inference_engine/src/extension/ext_spatial_transformer.cpp:39:16: error: unused variable ‘data_size’ [-Werror=unused-variable]
         size_t data_size = inputs[0]->size();
                ^~~~~~~~~
cc1plus: all warnings being treated as errors
ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/build.make:806: recipe for target 'ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_spatial_transformer.cpp.o' failed
make[3]: *** [ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/ext_spatial_transformer.cpp.o] Error 1
CMakeFiles/Makefile2:195: recipe for target 'ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/all' failed
make[2]: *** [ie_cpu_extension/CMakeFiles/ie_cpu_extension.dir/all] Error 2

 

Thanks,

-Donnie

0 Kudos
3 Replies
Shubha_R_Intel
Employee
108 Views

Dear Donnie:

From where are you getting this file ext_spatial_transformer.cpp ? It is not in our 2019 R1 repo. Please make sure that you download your raspberry pi OpenVino stuff as described below:

https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_raspbian.html

Thanks for using OpenVino !

Shubha

 

Dmitry_K_Intel3
Employee
108 Views

There is ext_spatial_transformer.cpp in the previous release (2018R5): https://download.01.org/openvinotoolkit/2018_R5/packages/l_openvino_toolkit_ie_p_2018.5.445.tgz (this guide references to it as the  latest version https://software.intel.com/articles/OpenVINO-Install-RaspberryPI). However the latest version of the guide and the library is now 2019R1: https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_raspbian.html and https://download.01.org/opencv/2019/openvinotoolkit/l_openvino_toolkit_raspbi_p_2019.1.094.tgz. Please try this one.

Tolbert__Donnie
Beginner
108 Views

I noticed that under the “additional downloads” when downloading the latest 2019 OpenVINO release there was a file which had raspbi in the title.  That is what I downloaded.  At the time the documentation for raspberry pi still referenced then 2018 version, and I was told in another discussion that the 2019 version should fix an issue I’m having on raspberry pi.  Attached is a screenshot of the link I mentioned.

 

Ill check the raspberry pi instructions if they are updated for the 2019 version.

Reply