Support Request #4197
closedPlugin Description Generator could not load plugin which depends on shared library
Description
Supportanfrage
I have a problem using ADTF 3.3.3 on Linux when using shared libraries.
I have a target X that is compiled in the runtime as well as the ADTF plugin. The ADTF plugin uses the shared library X and everything compiles fine until the plugindescription is generated. It seems that the plugindescription generator is not looking in the very same directory the .adtfplugin file is located because I get the following error message:
2018-09-19 15:42:02 [ERROR]: Could not register plugin in runtime Result code '-27 '(ERR_OPEN_FAILED) - Could not load plugin "/.../_install/_/bin/TF_CNN_ForwardPass.adtfplugin",libX.so: cannot open shared object file: No such file or directory [File: /mnt/data/jenkins/ws/A3_bld/PLATFORM/U1604_x64_gcc54/source/src/libraries/ucom3/src/runtime.cpp] [Line: 1782] [Func: LoadPluginImpl] [main.cpp(229)]
2018-09-19 15:42:02 [ERROR]: Result code '-27 '(ERR_OPEN_FAILED) - Could not load plugin "/.../_install/_/bin/....adtfplugin",libX.so: cannot open shared object file: No such file or directory [File: /mnt/data/jenkins/ws/A3_bld/PLATFORM/U1604_x64_gcc54/source/src/libraries/ucom3/src/runtime.cpp] [Line: 1782] [Func: LoadPluginImpl] [main.cpp(693)]
Lösung
If your plugin depends on other libraries, you have to define them for the Plugin Description Generator by using RAW_ARG.
Otherwise the runtime could not load the plugin, neither in for generating plugindescription nor using in adtf launcher.