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

[RUNTIME ERROR OPENVINO] error while loading shared libraries: libinference_engine_transformations.s

alexandrepires5
7,195 Views

Hello to everyone, 

I have the following problem regarding 2020.3 version of openvino. I am trying to include openvino in a custom project and it is occurring the following runtime error: 

main: error while loading shared libraries: libinference_engine_transformations.so: cannot open shared object file: No such file or directory

I am building the detector as a library. The cmakelist is the following:

project(detector)
find_package(InferenceEngine REQUIRED)
find_package(OpenCV REQUIRED)
include_directories(${InferenceEngine_INCLUDE_DIRS})
add_library(${PROJECT_NAME} STATIC Detector.cpp ../../include/Detector/Detector.h)
add_library(lib::detector ALIAS ${PROJECT_NAME})

target_link_libraries(${PROJECT_NAME} PUBLIC
${InferenceEngine_LIBRARIES}
${OpenCV_LIBS})

 

I have already sourced the environment and its pointing to the lib location of all .so files(where libinference_engine_transformations.so is located). I can build the project no problem. The samples work without any issues. I am currently using UBUNTU 18.04 VM with an core i7.

Am I missing a step somewhere? I am building using CLion and the terminal(both gave the same error.)

 

UPDATE: Doing an ldd on the runtime app, shows this:

linux-vdso.so.1 (0x00007fffc63b0000)

libinference_engine.so => /opt/intel/openvino_2020.3.194/deployment_tools/inference_engine/lib/intel64/libinference_engine.so (0x00007f6384562000)

libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f63841d9000)

libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f6383fc1000)

libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6383bd0000)

libtbb.so.2 => /opt/intel/openvino_2020.3.194/deployment_tools/inference_engine/external/tbb/lib/libtbb.so.2 (0x00007f6383968000)

libinference_engine_transformations.so => /opt/intel/openvino_2020.3.194/deployment_tools/inference_engine/lib/intel64/libinference_engine_transformations.so (0x00007f6383699000)

libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6383495000)

libinference_engine_legacy.so => /opt/intel/openvino_2020.3.194/deployment_tools/inference_engine/lib/intel64/libinference_engine_legacy.so (0x00007f638303f000)

libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6382e20000)

libngraph.so => /opt/intel/openvino_2020.3.194/deployment_tools/ngraph/lib/libngraph.so (0x00007f63823f2000)

/lib64/ld-linux-x86-64.so.2 (0x00007f6384b01000)

libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f6382054000)

librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f6381e4c000)

 

0 Kudos
1 Solution
alexandrepires5
7,180 Views

I solved my own problem over this... Just need to add the lib path to /etc/ld.so.conf file:

include /etc/ld.so.conf.d/*.conf
/opt/intel/openvino_2020.3.194/deployment_tools/ngraph/lib/
/opt/intel/openvino_2020.3.194/deployment_tools/inference_engine/lib/intel64/

and update it with:

sudo ldconfig

View solution in original post

3 Replies
alexandrepires5
7,181 Views

I solved my own problem over this... Just need to add the lib path to /etc/ld.so.conf file:

include /etc/ld.so.conf.d/*.conf
/opt/intel/openvino_2020.3.194/deployment_tools/ngraph/lib/
/opt/intel/openvino_2020.3.194/deployment_tools/inference_engine/lib/intel64/

and update it with:

sudo ldconfig
MGonzalez506
Novice
6,934 Views

Me funcionó perfecto, gracias por compartirlo!

En mi caso estoy corriendo desde un Raspberrypi 3 B+, entonces estos fueron los comandos que utilicé:

sudo nano /etc/ld.so.conf

include /etc/ld.so.conf.d/*.conf
/opt/intel/openvino/deployment_tools/ngraph/lib/
/opt/intel/openvino/deployment_tools/inference_engine/lib/armv7l

Y luego actualizar con:

sudo ldconfig

 

Munesh_Intel
Moderator
7,155 Views

Hi Alexandre Pires,


Thank you for sharing your solution with our OpenVINO community.


Regards,

Munesh


0 Kudos
Reply