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

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

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개)

카테고리

도움말 센터File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

태그

질문:

RJ
2016년 6월 22일

댓글:

RJ
2016년 7월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by