Skip to Main Content Skip to Search
Product Documentation

Deploying to Developers

Steps by the developer to Deploy to Developers

  1. Create a package that contains the software necessary to support the compiled MATLAB code. It is frequently helpful to install the MCR on development machines, for testing purposes. See What Software Does a Developer Need?

      Note   You can use the Deployment Tool to create a package for developers. For Windows platforms, the package created by the Deployment Tool is a self-extracting executable. For UNIX platforms, the package created by the Deployment Tool is a zip file that must be decompressed and installed manually. See Getting Started to get started using the Deployment Tool.

  2. Write instructions for how to use the package.

    1. If your package was created with the Deployment Tool, Windows developers can just run the self-extracting executable created by the Deployment Tool. UNIX developers must unzip and install manually.

    2. All developers must set path environment variables properly. See Set MCR Paths for Development and Testing.

  3. Distribute the package and instructions.

What Software Does a Developer Need?

The software that you provide to a developer who wants to use compiled MATLAB code depends on which of the following kinds of software the developer will be using:

Standalone Application

To distribute a standalone application created with MATLAB Compiler to a development machine, create a package that includes the following files.

Software ModuleDescription
MCR Installer (Windows)

The MCR Installer is a self-extracting executable that installs the necessary components to develop your application. This file is included with MATLAB Compiler. Run mcrinstaller function to obtain name of executable.

MCR Installer (Linux)

The MCR Installer is a self-extracting executable that installs the necessary components to develop your application on UNIX machines (other than Mac). This file is included with MATLAB Compiler. Run mcrinstaller function to obtain name of binary.

MCR Installer (Mac)Run mcrinstaller function to obtain name of binary.
application_name.exe (Windows)

Application created by MATLAB Compiler. Maci64 must include the bundle directory hierarchy.

application_name (UNIX)
application_name.app (Maci64)

C or C++ Shared Library

To distribute a shared library created with MATLAB Compiler to a development machine, create a package that includes the following files.

Software Module

Description

MCR Installer (Windows)

MATLAB Compiler Runtime library archive; platform-dependent file that must correspond to the end user's platform. Run mcrinstaller function to obtain name of executable.

MCR Installer (Mac)

The MCR Installer is a self-extracting executable that installs the necessary components to develop your application on Mac machines. This file is included with MATLAB Compiler. Run mcrinstaller function to obtain name of binary.

MCR Installer (Linux)

Self-extracting MATLAB Compiler Runtime library utility; platform-dependent file that must correspond to the end user's platform. Run mcrinstaller function to obtain name of binary.

libmatrix

Shared library; extension varies by platform, for example, DLL on Windows

libmatrix.h

Library header file

libmatrix.lib

Application library file needed to create the driver application for the shared library.

.NET Component

To distribute a .NET component to a development machine, create a package that includes the following files.

Software ModuleDescription
componentName.xmlDocumentation files
componentName.pdb (if Debug option is selected)Program Database File, which contains debugging information
componentName.dll

Component assembly file

MCR InstallerMCR Installer (if not already installed on the target machine). Run mcrinstaller function to obtain name of executable.

COM Component

To distribute a COM component to a development machine, create a package that includes the following files.

Software ModuleDescription
mwcomutil.dllUtilities required for array processing. Provides type definitions used in data conversion.
componentname_
version
.dll

Component that contains compiled MATLAB code.

MCR Installer

Self-extracting MATLAB Compiler Runtime library utility; platform-dependent file that must correspond to the end user's platform.

The MCR Installer installs MATLAB Compiler Runtime (MCR), which users of your component need to install on the target machine once per release. Run mcrinstaller function to obtain name of executable.

Java Component

To distribute a Java component to a development machine, create a package that includes the componentname.jar file, a Java package containing the Java interface to MATLAB code.

COM Component to Use with Microsoft Excel

To distribute a COM component for Excel to a development machine, create a package that includes the following files.

Software ModuleDescription
componentname_projectversion.dllCompiled component.
MCR Installer

Self-extracting MATLAB Compiler Runtime library utility; platform-dependent file that must correspond to the end user's platform.

The MCR Installer installs the MATLAB Compiler Runtime (MCR), which users of your component need to install on the target machine once per release. Run mcrinstaller function to obtain name of executable.

*.xlaAny user-created Excel add-in files found in the <projectdir>\distrib folder

Ensuring Memory for Deployed Applications

If you are having trouble obtaining memory for your deployed application, use MATLAB Memory Shielding for deployed applications to ensure a maximum amount of contiguous allocated memory. See Reserving Memory for Deployed Applications with MATLAB Memory Shielding for more information.

  


Free MATLAB Compiler Interactive Kit

Learn how to build standalone executables and C/C++ shared libraries from MATLAB code.


Get free kit

Trials Available

Try the latest version of MATLAB Compiler.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS