| MATLAB Compiler | ![]() |
Extracting a CTF Archive without Executing the Component
CTF archives contain executable content (M-files and MEX-files) that need to be extracted from the archive before they can be executed. The CTF archive automatically expands the first time you run the MATLAB Compiler-based component (a MATLAB Compiler-based stand-alone application or an application that calls a MATLAB Compiler-based shared library or COM component).
To expand an archive without running the application, you can use the extractCTF (.exe on Windows) stand-alone utility provided in the <matlabroot>/toolbox/compiler/deploy/<ARCH> directory, where <ARCH> is your system architecture, Windows = win32, Linux = glnx86, Solaris = sol2, x86-64 = glnxa64, and HP = hpux. This utility takes the name of the CTF archive as input and expands the archive into the current working directory. For example, this command expands hello.ctf into the current working directory.
The archive expands into a directory called hello_mcr. In general, the name of the directory containing the expanded archive is <componentname>_mcr, where componentname is the name of the CTF archive without the extension.
Note
To run extractCTF from any directory, you must add <matlabroot>/toolbox/compiler/deploy/<ARCH> to your PATH environment variable.
|
| Porting Generated Code to a Different Platform | User Interaction with the Compilation Path | ![]() |
© 1994-2005 The MathWorks, Inc.