Cannot find MCR Libraries on on Ubuntu

조회 수: 13 (최근 30일)
dovlopor
dovlopor 2018년 8월 31일
댓글: dovlopor 2018년 9월 1일
I am trying to use a library that is generated in matlab in my c++ project. I successfully did so on Windows 10. However I have a problem of finding libraries to link on Ubuntu.
My matlab generated library includes mclmcrrt.h, which I linked to my project using a path like:
C:\Program Files (x86)\MATLAB\MATLAB Runtime\v90\extern\lib\win32\microsoft\mclmcrrt.lib
I am not comfortable with linux and I expected that I would find the library in a similar path. In Ubuntu I have path like:
/usr/local/MATLAB/MATLAB_Runtime/v90/extern/lib/glnxa64/
and have 3 .map files in it, not all the library files as in windows. Is this an installation defect or should I use those .map files to get libries somehow?
  댓글 수: 2
Walter Roberson
Walter Roberson 2018년 9월 1일
The file you are looking for on Linux would be named libmwmclmcrrt.so . The .map files have to do with debugging.
dovlopor
dovlopor 2018년 9월 1일
Thanks, that's the answer I have been looking for. I am not particularly interested in being able to debug with the library.

댓글을 달려면 로그인하십시오.

답변 (1개)

GK
GK 2018년 8월 31일
Have you tried copying the files for win to Ubuntu on the same path in MATLAB folder.
  댓글 수: 1
Dovolpor
Dovolpor 2018년 9월 1일
I didn't think that would do. Because windows ones are .lib files. I expect .a or .so files in Linux.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Troubleshooting in MATLAB Compiler SDK에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by