library dependencies of executables created with mcc in Linux
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I'm trying to understand how the runtime system of Matlab works.
My problem is that I thought that an executable would run against the MCR libraries (provided everything went ok, i.e. the target machine has the right MCR version installed, etc).
What I'm puzzled about is that when I ldd an executable (that runs ok) I see dependencies against the MCR libraries and dependencies against other local, non matlab libraries. For instance:
[casdanie@cina-hpws01 test]$ ldd ~/work/dynamo/releases/v-1.0.92/matlab/bin/dynamo
linux-vdso.so.1 => (0x00007fffc775a000)
libmwmclmcrrt.so => /usr/local/cina/matlab_tools/v714/runtime/glnxa64
/libgcc_s.so.1 (0x00002afb96a6c000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003816200000)
This seems to mean that, for instance, my application will look in the target machine for a local version of the pthread library, which means that the portability of the application is not ensured even if the final user has the right MCR installation...
Am I doing something wrong during compile time?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 C Shared Library Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!