How to get details on “Unable to load interface library” in using clib.
We’re building interface modules for a C++ library with clibgen – in different linux setups (server, local PC, cloud). We have a build that works, but not on all setups – and we use Matlab2021a. The error message on computer is:
Unable to load interface library:
‘/home/de11/sim_interfaces/matlab_to_cpp/cpp_lib/WI_MatlabInterface/WI_MatlabInterfaceInterface.so’.
Reason: The specified module could not be found.
Ensure the C++ dependent libraries for the interface library are added to
run-time path.
is telling me something, but not the full picture. As far as i can see all C++ dependent libraries are on the LD_LIBRARY_PATH and calling ldd on the command line tells me all dependencies can be resolved.
But how can i check the same within the matlab session?We’re building interface modules for a C++ library with clibgen – in different linux setups (server, local PC, cloud). We have a build that works, but not on all setups – and we use Matlab2021a. The error message on computer is:
Unable to load interface library:
‘/home/de11/sim_interfaces/matlab_to_cpp/cpp_lib/WI_MatlabInterface/WI_MatlabInterfaceInterface.so’.
Reason: The specified module could not be found.
Ensure the C++ dependent libraries for the interface library are added to
run-time path.
is telling me something, but not the full picture. As far as i can see all C++ dependent libraries are on the LD_LIBRARY_PATH and calling ldd on the command line tells me all dependencies can be resolved.
But how can i check the same within the matlab session? We’re building interface modules for a C++ library with clibgen – in different linux setups (server, local PC, cloud). We have a build that works, but not on all setups – and we use Matlab2021a. The error message on computer is:
Unable to load interface library:
‘/home/de11/sim_interfaces/matlab_to_cpp/cpp_lib/WI_MatlabInterface/WI_MatlabInterfaceInterface.so’.
Reason: The specified module could not be found.
Ensure the C++ dependent libraries for the interface library are added to
run-time path.
is telling me something, but not the full picture. As far as i can see all C++ dependent libraries are on the LD_LIBRARY_PATH and calling ldd on the command line tells me all dependencies can be resolved.
But how can i check the same within the matlab session? clibgen MATLAB Answers — New Questions