User`s guide
Deploying to End Users
Note To run extractCTF from any directory, you must add
matlabroot/toolbox/compiler/deploy/arch to your PATH environment
variable. Run
extractCTF.exe from a system prompt. If you run it from
MATLAB,besuretoutilizethebang(
!)operator.
Dependency Analysis Function (depfun) and User
Interaction with the Compilation Path
MATLAB Compiler uses a dependency analysis function (depfun )to
determine the list of necessary files to includ e in the CTF package. In some
cases, this process includes an excessive number of files, for example, when
MATLAB OOPS classes are included in the compilation and it cannot resolve
overload ed methods at compile time. The dependency an alysis is a n iterative
process that also processes
include/exclude informationoneachpass.
Consequently, this process can lead to very large CTF archives resulting in
long compilation times for relatively small applications.
depfun searches for "executable" content such as:
• M-files
• P-files
• Java classes and
.jar files
•
.fig files
• MEX-files and dependent binaries
depfun does not search for data files o f any kind. You must manually include
data files.
M-files are encrypted by
depfun,anddepfun creates authorization files for
each MEX-file. This file guards against MEX-files of the same name (but of
different functionality) being placed into exploded CTF directories.
The most effective way to reduce the number of files is to constrain the
MATLAB path that
depfun uses at compile time. MATLAB Compiler includes
features that enable you to manipulate the path. Currently, there are three
ways to interact with the compilation path:
4-17