MCR cache fails to copy over external dependencies for compiled binary
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
I've compiled my Matlab script using mcc.
mcc('-m', '-c', '-R', '-singleCompThread', '-R' , '-nodisplay' , '-R' , '-nojvm', 'my_script.m', '-d', 'build-binary', '-a', '/path/to/external/libs');
but when I try running it, I get the following error
------------------------------------------
Setting up environment variables
---
LD_LIBRARY_PATH is .:/usr/local/matlab/MATLAB_Runtime/v99//runtime/glnxa64:/usr/local/matlab/MATLAB_Runtime/v99//bin/glnxa64:/usr/local/matlab/MATLAB_Runtime/v99//sys/os/glnxa64:/usr/local/matlab/MATLAB_Runtime/v99//sys/opengl/lib/glnxa64
Error using loadlibrary
/root/.mcrCache9.9/my_c0/my_script/libMyLib_thunk_glnxa64.so: cannot open shared object file: No such file or directory
The file that it claims to be missing is in the same directory as the compiled binary of my MATLAB script, but MATLAB fails to copy it over to the .mcrCache.
How can I tell it to do that?
My current "workaround" is to run the program once so that the cache is generated, manually copy over the missing library, and rerun it. But this is a slow hack, and I need the correct solution.
Operating system
Debian GNU/Linux 9 (stretch)
Software
MATLAB Runtime v99 for Linux (not the full MATLAB installation)
Thanks!
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu C Shared Library Integration finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!