필터 지우기
필터 지우기

library dependencies of executables created with mcc in Linux

조회 수: 1 (최근 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 CenterFile Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by