Main Content

Library Compiler

Package MATLAB programs for deployment as shared libraries and components

Description

The Library Compiler app packages MATLAB® functions to include MATLAB functionality in applications written in other languages.

Library Compiler app

Open the Library Compiler App

  • MATLAB Toolstrip: On the Apps tab, under Application Deployment, click the Library Compiler app icon.

  • MATLAB command prompt: Enter libraryCompiler.

Parameters

expand all

Type of library to generate.

If you have MATLAB Compiler™, you can create Excel Add-ins.

If you have a MATLAB Compiler SDK™ license, you can create C/C++ shared libraries, .NET assemblies, COM components, Java packages, and Python packages.

Functions to package as a list of character vectors.

You can decide whether or not to include the MATLAB Runtime fallback for MATLAB Runtime installer in the generated application by selecting one of the two options in the Packaging Options section. Including the MATLAB Runtime installer in the package significantly increases the size of the package.

Runtime downloaded from web — Generates an installer that downloads the MATLAB Runtime and installs it along with the deployed MATLAB application.

Runtime included in package — Generates an installer that includes the MATLAB Runtime installer.

The first time you select this option, you are prompted to download the MATLAB Runtime installer or obtain a CD if you do not have internet access.

Files that must be included with library as a list of files.

Optional files installed with library as a list of files.

Settings

Flags controlling the behavior of the compiler as a character vector.

Folder where files for testing are stored as a character vector.

Folder where files for building a custom installer are stored as a character vector.

Folder where generated installers are stored as a character vector.

Library Information

Name of the installed library as a character vector.

The default value is the name of the first function listed in the Exported Functions field of the app.

Version of the generated library as a character vector.

Image displayed on installer as an image.

Name of the library author as a character vector.

E-mail address used to contact library support as a character vector.

Brief description of library as a character vector.

Detailed description of library as a character vector.

You can decide whether or not to include sample files when packaging. Sample code demonstrates how to call a MATLAB exported function in the target language. Sample generation is supported for C++ shared libraries, Java packages, .NET assemblies, and Python packages.

To generate a new MATLAB sample file, click Create New Sample and select your MATLAB function. This opens up a MATLAB script for you to modify as necessary based on the intended behavior of your function.

Caution

Sample file code should not require user interaction. If the MATLAB function requires input arguments, you must provide specific values for the arguments in the function call.

To upload a MATLAB script you have already written, click Add Existing Sample.

For more information on sample code, see Create Sample Code to Call Exported Function (MATLAB Compiler SDK).

Additional Installer Options

Folder where artifacts are installed as a character vector.

Notes about additional requirements for using artifacts as a character vector.

Programmatic Use

expand all

Enter libraryCompiler.

Alternatively, enter deploytool and click Library Compiler.

Version History

Introduced in R2013b

See Also

|