Why can't I start my MATLAB Compiler generated executable from a different directory using relative paths?
이전 댓글 표시
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
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!