Mex file created with coder together with a standalone mcc program

조회 수: 1(최근 30일)
Hi, I have two standalone program communicating to save time I have created a mex version of one of the files which works fine on the complied computer. But then I tries to use the two files on another computer where I have installed the MATLAB Compiler Runtime libery this dose not work.
Does any one know how to make a a mcc program and a mex file work on other identical systems?
  댓글 수: 1
Jan
Jan 2017년 3월 14일
Please explain "does not work" with any details.

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

답변(1개)

Dhruvesh Patel
Dhruvesh Patel 2017년 3월 23일
Since you have not mentioned the error, I would like to point you to a couple of general resources which might help you resolve your issue.
  1. The version of MATLAB Compiler used to create the standalone applicatin must be compatible with the version of MCR installed on the client machine which tries to run the application. Please refer the following documentation to find the compatible MCR version for your application. List of MATLAB versions and compatible MCR versions.
  2. The path structure in a standalone application is not the same as the path structure in MATLAB. This may lead to the application not having access to files that were available when running the code in MATLAB. Please read the following blog article that discusses this topic. Path Management in Deployed Applications

Community Treasure Hunt

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

Start Hunting!

Translated by