Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
94 Views

OpenVino demo demo_squeezenet_download_convert_run fail

Hi,

I follow the Linux installation steps step by step carefully . But I get the compile error when I run the script "demo_squeezenet_download_convert_run.sh".

Ubuntu 18.04.5 LTS

version : l_openvino_toolkit_p_2020.4.287

Could you help me figure it out please?

======================================================================

(demo) zaccur@ubuntu:demo$ sudo -H ./demo_squeezenet_download_convert_run.sh
target_precision = FP16
[setupvars.sh] OpenVINO environment initialized


###################################################

 

Downloading the Caffe model and the prototxt
Installing dependencies
Hit:1 http://mirrors.aliyun.com/ubuntu bionic InRelease
Get:2 http://mirrors.aliyun.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:3 http://packages.microsoft.com/repos/vscode stable InRelease
Get:4 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:6 http://mirrors.aliyun.com/ubuntu bionic-proposed InRelease [242 kB]
Get:7 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease [74.6 kB]
Hit:5 https://apt.llvm.org/bionic llvm-toolchain-bionic-10 InRelease
Fetched 494 kB in 2s (308 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
28 packages can be upgraded. Run 'apt list --upgradable' to see them.
Run sudo -E apt -y install build-essential python3-pip virtualenv cmake libcairo2-dev libpango1.0-dev libglib2.0-dev libgtk2.0-dev libswscale-dev libavcodec-dev libavformat-dev libgstreamer1.0-0 gstreamer1.0-plugins-base

Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.4ubuntu1).
libgtk2.0-dev is already the newest version (2.24.32-1ubuntu1).
virtualenv is already the newest version (15.1.0+ds-1.1).
libglib2.0-dev is already the newest version (2.56.4-0ubuntu0.18.04.6).
libpango1.0-dev is already the newest version (1.40.14-1ubuntu0.1).
libavcodec-dev is already the newest version (7:3.4.8-0ubuntu0.2).
libavformat-dev is already the newest version (7:3.4.8-0ubuntu0.2).
libswscale-dev is already the newest version (7:3.4.8-0ubuntu0.2).
python3-pip is already the newest version (9.0.1-2.3~ubuntu1.18.04.2).
cmake is already the newest version (3.10.2-1ubuntu2.18.04.1).
gstreamer1.0-plugins-base is already the newest version (1.14.5-0ubuntu1~18.04.1).
libcairo2-dev is already the newest version (1.15.10-2ubuntu0.1).
libgstreamer1.0-0 is already the newest version (1.14.5-0ubuntu1~18.04.1).
0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpng-dev is already the newest version (1.6.34-1ubuntu0.18.04.2).
0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from -r /opt/intel/openvino_2020.4.287/deployment_tools/demo/../open_model_zoo/tools/downloader/requirements.in (line 1))
Requirement already satisfied: requests in /usr/local/lib/python3.6/dist-packages (from -r /opt/intel/openvino_2020.4.287/deployment_tools/demo/../open_model_zoo/tools/downloader/requirements.in (line 2))
Requirement already satisfied: chardet<4,>=3.0.2 in /usr/lib/python3/dist-packages (from requests->-r /opt/intel/openvino_2020.4.287/deployment_tools/demo/../open_model_zoo/tools/downloader/requirements.in (line 2))
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/lib/python3/dist-packages (from requests->-r /opt/intel/openvino_2020.4.287/deployment_tools/demo/../open_model_zoo/tools/downloader/requirements.in (line 2))
Requirement already satisfied: idna<3,>=2.5 in /usr/lib/python3/dist-packages (from requests->-r /opt/intel/openvino_2020.4.287/deployment_tools/demo/../open_model_zoo/tools/downloader/requirements.in (line 2))
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests->-r /opt/intel/openvino_2020.4.287/deployment_tools/demo/../open_model_zoo/tools/downloader/requirements.in (line 2))
Run python3 /opt/intel/openvino_2020.4.287/deployment_tools/open_model_zoo/tools/downloader/downloader.py --name squeezenet1.1 --output_dir /root/openvino_models/models --cache_dir /root/openvino_models/cache

################|| Downloading models ||################

========== Retrieving /root/openvino_models/models/public/squeezenet1.1/squeezenet1.1.prototxt from the cache

========== Retrieving /root/openvino_models/models/public/squeezenet1.1/squeezenet1.1.caffemodel from the cache

################|| Post-processing ||################

========== Replacing text in /root/openvino_models/models/public/squeezenet1.1/squeezenet1.1.prototxt


Target folder /root/openvino_models/ir/public/squeezenet1.1/FP16 already exists. Skipping IR generation with Model Optimizer.If you want to convert a model again, remove the entire /root/openvino_models/ir/public/squeezenet1.1/FP16 folder. Then run the script again

 

###################################################

Build Inference Engine samples

-- The C compiler identification is Clang 10.0.1
-- The CXX compiler identification is Clang 10.0.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /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: /usr/bin/c++
-- Check for working CXX compiler: /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 strtoll
-- Looking for strtoll - found
-- Found InferenceEngine: /opt/intel/openvino_2020.4.287/deployment_tools/inference_engine/lib/intel64/libinference_engine.so (Required is at least version "2.1")
-- Configuring done
-- Generating done
-- Build files have been written to: /root/inference_engine_samples_build
[ 45%] Built target format_reader
[ 81%] Built target gflags_nothreads_static
[ 90%] Linking CXX executable ../intel64/Release/classification_sample_async
CMakeFiles/classification_sample_async.dir/main.cpp.o: In function `ClassificationResultT<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::topResults(unsigned int, InferenceEngine::Blob&, std::vector<unsigned int, std::allocator<unsigned int> >&)':
main.cpp:(.text._ZN21ClassificationResultTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10topResultsEjRN15InferenceEngine4BlobERSt6vectorIjSaIjEE[_ZN21ClassificationResultTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10topResultsEjRN15InferenceEngine4BlobERSt6vectorIjSaIjEE]+0x50): undefined reference to `typeinfo for InferenceEngine::TBlob<short, std::enable_if<true, void> >'
main.cpp:(.text._ZN21ClassificationResultTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10topResultsEjRN15InferenceEngine4BlobERSt6vectorIjSaIjEE[_ZN21ClassificationResultTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10topResultsEjRN15InferenceEngine4BlobERSt6vectorIjSaIjEE]+0x93): undefined reference to `typeinfo for InferenceEngine::TBlob<unsigned short, std::enable_if<true, void> >'
main.cpp:(.text._ZN21ClassificationResultTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10topResultsEjRN15InferenceEngine4BlobERSt6vectorIjSaIjEE[_ZN21ClassificationResultTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10topResultsEjRN15InferenceEngine4BlobERSt6vectorIjSaIjEE]+0xd6): undefined reference to `typeinfo for InferenceEngine::TBlob<unsigned long, std::enable_if<true, void> >'
main.cpp:(.text._ZN21ClassificationResultTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10topResultsEjRN15InferenceEngine4BlobERSt6vectorIjSaIjEE[_ZN21ClassificationResultTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10topResultsEjRN15InferenceEngine4BlobERSt6vectorIjSaIjEE]+0x119): undefined reference to `typeinfo for InferenceEngine::TBlob<int, std::enable_if<true, void> >'
main.cpp:(.text._ZN21ClassificationResultTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10topResultsEjRN15InferenceEngine4BlobERSt6vectorIjSaIjEE[_ZN21ClassificationResultTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10topResultsEjRN15InferenceEngine4BlobERSt6vectorIjSaIjEE]+0x15c): undefined reference to `typeinfo for InferenceEngine::TBlob<float, std::enable_if<true, void> >'
main.cpp:(.text._ZN21ClassificationResultTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10topResultsEjRN15InferenceEngine4BlobERSt6vectorIjSaIjEE[_ZN21ClassificationResultTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10topResultsEjRN15InferenceEngine4BlobERSt6vectorIjSaIjEE]+0x19f): undefined reference to `typeinfo for InferenceEngine::TBlob<unsigned char, std::enable_if<true, void> >'
main.cpp:(.text._ZN21ClassificationResultTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10topResultsEjRN15InferenceEngine4BlobERSt6vectorIjSaIjEE[_ZN21ClassificationResultTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10topResultsEjRN15InferenceEngine4BlobERSt6vectorIjSaIjEE]+0x1e2): undefined reference to `typeinfo for InferenceEngine::TBlob<signed char, std::enable_if<true, void> >'
main.cpp:(.text._ZN21ClassificationResultTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10topResultsEjRN15InferenceEngine4BlobERSt6vectorIjSaIjEE[_ZN21ClassificationResultTINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE10topResultsEjRN15InferenceEngine4BlobERSt6vectorIjSaIjEE]+0x225): undefined reference to `typeinfo for InferenceEngine::TBlob<long, std::enable_if<true, void> >'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
classification_sample_async/CMakeFiles/classification_sample_async.dir/build.make:99: recipe for target 'intel64/Release/classification_sample_async' failed
make[3]: *** [intel64/Release/classification_sample_async] Error 1
CMakeFiles/Makefile2:300: recipe for target 'classification_sample_async/CMakeFiles/classification_sample_async.dir/all' failed
make[2]: *** [classification_sample_async/CMakeFiles/classification_sample_async.dir/all] Error 2
CMakeFiles/Makefile2:312: recipe for target 'classification_sample_async/CMakeFiles/classification_sample_async.dir/rule' failed
make[1]: *** [classification_sample_async/CMakeFiles/classification_sample_async.dir/rule] Error 2
Makefile:216: recipe for target 'classification_sample_async' failed
make: *** [classification_sample_async] Error 2
Error on or near line 207; exiting with status 1

0 Kudos
1 Reply
Highlighted
Moderator
78 Views

Hi Zaccur Li,

Thanks for reaching out.

 

This demo is to verify your installation is successful. These errors occur due to the incomplete installation.

Please make sure you are installing all OpenVINO packages. You may have forgotten to install external dependencies. Please refer to the following link to install them.

https://docs.openvinotoolkit.org/latest/openvino_docs_install_guides_installing_openvino_linux.html#...

 

Regards,

Aznie


0 Kudos