MATLAB Answers


Mex file created with coder together with a standalone mcc program

Asked by Martin Andersson on 14 Mar 2017
Latest activity Answered by Dhruvesh Patel on 23 Mar 2017
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 Comment

Please explain "does not work" with any details.

Sign in to comment.

1 Answer

Answer by Dhruvesh Patel on 23 Mar 2017

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


Sign in to comment.