Mex file created with coder together with a standalone mcc program

2 次查看(过去 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 个)

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

类别

Help CenterFile Exchange 中查找有关 Write C Functions Callable from MATLAB (MEX Files) 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by