Mex file created with coder together with a standalone mcc program

1 view (last 30 days)
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?

Answers (1)

Dhruvesh Patel
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

Categories

Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!