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.
packageName
.dll
— COM component_install.bat
— script that registers the component (to register manually, see Register COM Component (MATLAB Compiler SDK))Function signatures of the deployed MATLAB functions (for details, see Customize Code Suggestions and Completions)
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
/.so
—mwArray
API shared librarylibraryName
.ctf
— MATLAB Data API deployable archive
libraryName
.h
/.hpp
— header fileFunction 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.
packageName
.jar
— Java packageFunction signatures of the deployed MATLAB functions (for details, see Customize Code Suggestions and Completions)
Include directions for adding the required JAR files to the Java CLASSPATH.
At a minimum, the CLASSPATH must include:
mcrroot
/toolbox/javabuilder/jar/javabuilder.jarGenerated 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
.dll
—MWArray
API assemblylibraryName
.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 packagepackageName
.ctf
— deployable archiveFunction signatures of the deployed MATLAB functions (for details, see Customize Code Suggestions and Completions)
Related Topics
- Files Generated After Packaging MATLAB Functions (MATLAB Compiler SDK)
- Choose Deployment Option (MATLAB Compiler SDK)
- About MATLAB Runtime (MATLAB Compiler SDK)
- Customize Code Suggestions and Completions