Consumable library not found

I try “Creating functions and function block libraries written in C++”, “Creating a Shared Native Library project with the PLCnext CLI”:
Functions and functions blockshttps://www.plcnext.help/te/Programming/Cplusplus/Function_blocks_in_Cpp.htmThis feature is based on Shared Native Libraries and is a combination of C++ implementation and C# wrapper. The PLCnext Technology Toolchain supports Shared Native Libraries with a…
This Shared Native Library shall in turn use a consumable library:
Shared or consumable librariesI followed the procedures described in the links provided for my Shared Native Library ‘Standard_FB’ and the consumable library ‘libPlc.so’, in Windows®. I copied the consumable bin contents to Standard_FBCpp\external . The deploy ed .pcwlx library contains the libPlc.so under the path PROJECT\Logical%20Elements\AXCF3152_25.6.0. But when I try to download and start a project with these libraries, I get this error:
MSG_ONL0156 Fehler bei der Initialisierung der nativen Bibliothek ‘/opt/plcnext/projects/current/Plc/Eclr/SharedLibraries/Standard_FB/libStandard_FB@Dom#1.so [ libPlc.so: cannot open shared object file: No such file or directory ]’.Adding the shared object file libPlc.so into the /usr/local/lib directory on the target didn’t help. If I do have to copy the .so somewhere in order for PLCnext to find it, where is the place? Or what did I miss?




Not having the exact same situation, but I had a c++ project, where I got a similar message when I have copied a config file along the .so file, as the manual pointed.

However, this manual is outdated and was not true. Simply adding the pcwlx file as library in the PLC project was enough, no more error. Don’t know, if this helps.

Thanks for your comment, but in my case adding the Standard_FB.pcwlx file as library in the PLC project resulted in the described error. For now, I copy the libPlc.so file into /lib.