MATLAB Compiler Previous page   Next Page

Deploying the Application

You can distribute a MATLAB Compiler-generated stand-alone to any target machine that has the same operating system as the machine on which the application was compiled. For example, if you want to deploy an application to a Windows machine, you must use the MATLAB Compiler to build the application on a Windows machine. If you want to deploy the same application to a UNIX machine, you must use the MATLAB Compiler on the same UNIX platform and completely rebuild the application. To deploy an application to multiple platforms requires MATLAB and MATLAB Compiler licenses on all the desired platforms.

Windows

Gather and package the following files and distribute them to the deployment machine.

Component
Description
MCRInstaller.exe
Self-extracting MATLAB Component Runtime library utility; Platform-dependent file that must correspond to the end-user's platform; This file is located in the <matlabroot>\toolbox\compiler\deploy\win32 directory.
magicsquare.ctf
Component Technology File archive; Platform-dependent file that must correspond to the end-user's platform
magicsquare
Application; magicsquare.exe for Windows

UNIX

These steps describe how to distribute a stand-alone application.

  1. Generate the MATLAB Component Runtime (MCR) library archive on the development machine. You only need to do this step once per platform. To generate the MCR library archive, run
  1. This places the MCRInstaller archive MCRInstaller.zip in the <matlabroot>/toolbox/compiler/deploy/<arch> directory.

    Alternatively, to build the MCRInstaller archive as filename in the path directory, you can use

    To return the full path to the file zipfile, use

    To build the MCRInstaller archive in the current directory, use

  1. Gather and package the following files and distribute them to the deployment machine.

    Component
    Description
    MCRInstaller.zip
    MATLAB Component Runtime library archive; Platform-dependent file that must correspond to the end-user's platform
    unzip
    Utility to unzip MCRInstaller.zip (optional). The target machine must have an unzip utility installed.
    magicsquare.ctf
    Component Technology File archive; Platform-dependent file that must correspond to the end-user's platform
    magicsquare
    Application


Previous page  Testing the Application Running the Application Next page

© 1994-2005 The MathWorks, Inc.