Main Content

Distribute MATLAB Compiler SDK Files to Application Developers

After you create a component using MATLAB® Compiler SDK™, distribute files and integrate them in an application in the target language.

The deploytool apps generate an installer that packages all of the binary artifacts required for distributing a compiled component. The installer is located in the for_redistribution folder of the compiler project. You can also generate an installer using the compiler.package.installer (MATLAB Compiler SDK) function. If you do not create an installer, manually distribute the set of files required to integrate the component according to the component type. For more details on the available methods to package functions, see Choose Deployment Option (MATLAB Compiler SDK).

In order to run the application, the target machine must have access to MATLAB Runtime that matches the version of MATLAB used to compile the component, at the same update level or newer. For details, see About MATLAB Runtime (MATLAB Compiler SDK).

Distribute COM Components

Distribute the following files to integrate a component in an application.

Distribute C/C++ Shared Libraries

Distribute the following files to integrate a C/C++ shared library in an application.

  • One of the following:

    • libraryName.lib/.dylib/.somwArray API shared library

    • libraryName.ctf — MATLAB Data API deployable archive

  • libraryName.h/.hpp — header file

  • Function signatures of the deployed MATLAB functions (for details, see Customize Code Suggestions and Completions)

Distribute Java Packages

Distribute the following files to integrate a Java® package in an application.

Include directions for adding the required JAR files to the Java CLASSPATH.

At a minimum, the CLASSPATH must include:

  • mcrroot/toolbox/javabuilder/jar/javabuilder.jar

  • Generated Java package

  • JAR files for the application

Distribute .NET Assemblies

Distribute the following files to integrate a .NET assembly in an application.

  • One of the following:

    • libraryName .dllMWArray API assembly

    • libraryName .ctf — MATLAB Data API deployable archive

  • Function signatures of the deployed MATLAB functions (for details, see Customize Code Suggestions and Completions)

  • assemblyName.xml — documentation files (optional)

  • assemblyName.pdb — program database file containing debugging information (optional)

Distribute Python Packages

Distribute the following files to integrate a Python® package in an application.

  • setup.py — Python installer

  • _init_.py — initialization script for the Python package

  • packageName .ctf — deployable archive

  • Function signatures of the deployed MATLAB functions (for details, see Customize Code Suggestions and Completions)

Related Topics