User`s guide
4 Deployment Process
application to a Windows machine, you must use the Windows version of
MATLAB Compiler to build the application on a Windows machine.
Note Since binary formats are different on each platform, the components
generated by MATLAB Compiler cannot be move d from platform to platfo rm
as is.
To deploy an application to a machine with an operating system different from
the machine used to develop the application, you must rebuild the application
on the desired targeted platform. For example, if you want to deploy a
previous application developed on a Windows machine t o a Linux machine,
you must use MATLAB Compiler on a Linux m achine and completely rebuild
the application. Yo u must have a valid M ATLAB Compiler license on both
platformstodothis.
Extracting a CTF Archive Without Executing the
Component
CTF archives contain content (M-files and MEX-files) that need to be extracted
from the a rchive before they can be executed. The CTF archive automatically
expands the first time you run the MATLAB Compiler-based component (a
MATLAB Co m piler base d standalo ne application or an a pp lica tion that calls
aMATLABCompiler-basedsharedlibrary, COM, or .NET component).
To expand an archive without running the application, you can use
the
extractCTF (.ex e on Windows) standalone utility provided in the
matlabroot/toolbox/compiler/deploy/arch directory, w h ere arch is your
system architecture, Windows =
win32, Linux = glnx86,Solaris=sol64,
x86-64 =
glnxa64,andMacOSX=mac. This utility takes the CTF archive as
input and expands it into th e directory in which it resides. For example, thi s
command expands
hello.ctf into the directory where it resides:
extractCTF hello.ctf
The archive expands into a directory called hello_mcr. In general, the name
of the d irectory containing the expanded archive is
<componentname>_mcr,
where
componentname is the name of the CTF archive without the extension.
4-16