| MATLAB Compiler | ![]() |
Deploying Components to Other Machines
To deploy your component to a target machine that does not have the same version of MATLAB installed as your development machine (or any version of MATLAB for that matter), you need to package the components and configure the target machines as follows.
Windows
<component_name>.ctf)
MCRInstaller.exe(This file is located in the <matlabroot>\toolbox\compiler\deploy\win32 directory.)
On the target machine, do the following:
MCRInstaller.exe. During the installation process, you will be prompted for a directory in which to install the MCR, for example, C:\MCR.
C:\approot.
UNIX
<component_name>.ctf)
MCRInstaller.zip
To create MCRInstaller.zip, execute the following command at the MATLAB command prompt.
This command puts MCRInstaller.zip in the directory <matlabroot>/toolbox/compiler/deploy/<ARCH>, where <ARCH> is your system architecture, Linux = glnx86, Solaris = sol2, x86-64 = glnxa64, and HP = hpux. If you do not have write access to this directory, you can specify the destination directory as an input to buildmcr.
On the target machine, do the following:
MCRInstaller.zip in a directory, for example, /home/<user>/MCR. You may choose any directory except <matlabroot> or any directory below <matlabroot>.
/home/<user>/approot.
Note
For readability, the following commands appear on separate lines, but you must enter each setenv command on one line.
|
setenv LD_LIBRARY_PATH <mcr_root>/<ver>/runtime/glnx86: <mcr_root>/<ver>/sys/os/glnx86: <mcr_root>/<ver>/sys/java/jre/glnx86/jre1.5.0/lib/i386/native_threads: <mcr_root>/<ver>/sys/java/jre/glnx86/jre1.5.0/lib/i386/client: <mcr_root>/<ver>/sys/java/jre/glnx86/jre1.5.0/lib/i386: setenv XAPPLRESDIR <mcr_root>/<ver>/X11/app-defaults
setenv LD_LIBRARY_PATH /usr/lib/lwp: <mcr_root>/<ver>/runtime/sol2: <mcr_root>/<ver>/sys/os/sol2: <mcr_root>/<ver>/sys/java/jre/sol2/jre1.5.0/lib/sparc/native_threads: <mcr_root>/<ver>/sys/java/jre/sol2/jre1.5.0/lib/sparc/client: <mcr_root>/<ver>/sys/java/jre/sol2/jre1.5.0/lib/sparc: setenv XAPPLRESDIR <mcr_root>/<ver>/X11/app-defaults
setenv LD_LIBRARY_PATH <mcr_root>/<ver>/runtime/glnxa64: <mcr_root>/<ver>/sys/os/glnxa64: <mcr_root>/<ver>/sys/java/jre/glnxa64/jre1.4.2/lib/amd64/native_threads: <mcr_root>/<ver>/sys/java/jre/glnxa64/jre1.4.2/lib/amd64/client: <mcr_root>/<ver>/sys/java/jre/glnxa64/jre1.4.2/lib/amd64: setenv XAPPLRESDIR <mcr_root>/<ver>/X11/app-defaults
setenv SHLIB_PATH <mcr_root>/<ver>/runtime/hpux: <mcr_root>/<ver>/sys/os/hpux: <mcr_root>/<ver>/bin/hpux: <mcr_root>/<ver>/sys/java/jre/hpux/jre1.4.1/lib/PA_RISC2.0/server: <mcr_root>/<ver>/sys/java/jre/hpux/jre1.4.1/lib/PA_RISC2.0 setenv LD_PRELOAD <mcr_root>/<ver>/sys/java/jre/hpux/jre1.4.1/lib/PA_RISC2.0/server/libjvm.sl setenv XAPPLRESDIR <mcr_root>/<ver>/X11/app-defaults
| Compiling a Stand-Alone Application | Limitations and Restrictions | ![]() |
© 1994-2005 The MathWorks, Inc.