Why can't I start my MATLAB Compiler generated executable from a different directory using relative paths?
Show older comments
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
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!