Error when running deployed stand-alone application that uses mex files for c++ code

3 次查看(过去 30 天)
Hi All,
I have created a standalone application using deploytool, which runs perfectly on the development computer. However, on other computers I get the error message "Error using mex. No supported compiler or sdk was found". The error is generated by the following line: "eval(['mex -g ', mexDistanceFile])", where mexDistanceFile is a c++ file. I am using Matlab R2014b. Any help would be much appreciated. Thanks!!

采纳的回答

Kirby Fears
Kirby Fears 2016-6-22
编辑:Kirby Fears 2016-6-22
That error is thrown because the mex command attempts to compile a c++ file into .mex. You probably don't have the compiler on other machines. The code you distribute to other computers should be calling the pre-compiled library, not attempting to compile it again.
Check out this link describing how to compile a .mex file and then use it afterward.
  1 个评论
RJ
RJ 2016-7-28
Huge apologies for the delay in replying and thank you very much for your help. I think, your solution solved my problem. Thanks again!!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by