Why do I get an error message about "missing CTF file" when starting standalone applications from a directory containing an EXE file and not the CTF file, even though the CTF file is in my system path?

21 Ansichten (letzte 30 Tage)
In the Compiler Documentation you can find the following:
"The working directory must be the same as the for the
CTF file to be found or else the directory containing your CTF file must be
on your system path. Therefore, you must start your application from its directory
or else modify your system path. ...Make sure the directory
containing 'myProgram.ctf' is in 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."
The following error message is displayed when the CTF file is in a different directory, included in the system PATH variable:
The CTF archive does not exist!
When the CTF file is in the same directory as the EXE-file, it works. It also works with different directories in MATLAB R14SP3.

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 27 Jun. 2009
This bug has been fixed in Release 2007b (R2007b). For previous product releases, read below for any possible workarounds:
This is an error within the documentation for MATLAB Compiler 4.6 (R2007a) within the Suggested Location of CTF-file section. The documentation should read as follows:
The .CTF file must reside in the same directory as the executable or shared
library.
  2 Kommentare
Walter Roberson
Walter Roberson am 20 Jun. 2023
This is not true, the problem is still there look in the last month there are 30 views
Walter Roberson
Walter Roberson am 20 Jun. 2023
Could you link to the document that you are looking at that continues to have to old information about the location for the file?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB Compiler finden Sie in Help Center und File Exchange

Produkte


Version

R2007a

Community Treasure Hunt

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

Start Hunting!

Translated by