Why can't I start my MATLAB Compiler generated executable from a different directory using relative paths?
Mostrar comentarios más antiguos
I have used MATLAB Compiler to generate a stand-alone application. However, I am unable to run the executable unless I call it from the same directory in which it resides. For example, I might try the following code in MATLAB, where “compiled” is a subdirectory of D:\Applications\MATLABR14\work\temp:
mcc -d compiled -m tempfile
!D:\Applications\MATLABR14\work\temp\compiled\tempfile.exe
However, this results in the following error:
ERROR: Cannot find the directory containing the 'tempfile' component,
which is required by this application. Make sure the directory containing
'tempfile.ctf' is on your dynamic load library path
(PATH on Windows, or LD_LIBRARY_PATH on Linux, for example), or your
application search path (PATH on both Windows and Linux).
Error initializing CTF Archive
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre MATLAB Compiler en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!