library dependencies of executables created with mcc in Linux

3 ビュー (過去 30 日間)
Daniel
Daniel 2012 年 9 月 12 日
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 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by