MATLAB Compiler Previous page   Next Page

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

On the target machine, do the following:

  1. Install the MCR by running MCRInstaller.exe. During the installation process, you will be prompted for a directory in which to install the MCR, for example, C:\MCR.
  2. Copy the component and CTF archive to your application root directory, for example, C:\approot.
  3. Add the following directory to your system path:
  1. <mcr_root>\<ver>\runtime\win32

  1. Test the component.

UNIX

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:

  1. Install the MCR by unzipping MCRInstaller.zip in a directory, for example, /home/<user>/MCR. You may choose any directory except <matlabroot> or any directory below <matlabroot>.
  2. Copy the component and CTF archive to your application root directory, for example, /home/<user>/approot.
  3. Add the following platform-specific directories to your dynamic library path.

Linux.   

Solaris.   

Linux x86-64.   

HP-UX.   

  1. Test the component.

Previous page  Compiling a Stand-Alone Application Limitations and Restrictions Next page

© 1994-2005 The MathWorks, Inc.