Error when running deployed stand-alone application that uses mex files for c++ code
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
RJ
el 22 de Jun. de 2016
Comentada: RJ
el 28 de Jul. de 2016
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!!
0 comentarios
Respuesta aceptada
Kirby Fears
el 22 de Jun. de 2016
Editada: Kirby Fears
el 22 de Jun. de 2016
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.
Más respuestas (0)
Ver también
Categorías
Más información sobre MATLAB Compiler en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!