Main Content

Files Generated After Packaging MATLAB Functions

When you create a deployable component using MATLAB® Compiler SDK™, files that correspond to the build target are generated in the output folder. Depending on which packaging method you use, files may be located in various subfolders in the output folder. For more details on the available packaging methods, see Choose Deployment Option. For a list of files generated by MATLAB Compiler™, see Files Generated After Packaging MATLAB Functions.

The compiler.build family of functions place output files in a folder named after the main file and target type. For instance, magicsquarePythonPackage.

The Compiler apps generate a folder named after the compiler task and place output files in a subfolder named build. The apps optionally create a package subfolder if you create an installer. The installer installs all of the binary artifacts required for distributing a compiled component and optionally installs MATLAB Runtime. You can also generate an installer using the compiler.package.installer function. Distribute the installer to users who do not have MATLAB installed on their machines.

If you do not create an installer, you can manually distribute the set of files required to integrate the component according to the component type. For information on which files to distribute in order to develop and run applications that use your component, see Distribute MATLAB Compiler SDK Files to Application Developers.

Since R2025a: For information on files generated using a prior version of the Compiler apps, see Files Generated After Packaging MATLAB Functions (R2024b).

Files Generated by MATLAB Compiler SDK

MATLAB Compiler SDK generates the following files in the build output folder. The intermediate artifacts not listed here are generated as a result of packaging of the MATLAB files. They are not significant to the user.

All Targets

The following files are generated for all deployment targets.

FileDescription
buildresult.json

JSON file containing information on runtime dependencies included in the package. The information corresponds to the RuntimeDependencies property of the compiler.build.Results object. (since R2025a)

GettingStarted.html

HTML file containing packaging information and next steps.

includedSupportPackages.txt

Lists all support files included in the package.

mccExcludedFiles.log

Log file that contains a list of any toolbox functions that were not included in the package. For information on excluding data files, see %#exclude.

PackagingLog.html

HTML file containing information on the mcc command used and output from the packaging process.

readme.txt

Contains information on deployment prerequisites and the list of files to package for deployment.

requiredMCRProducts.txt

Contains product IDs of products required to run the package. For more information on product IDs, see matlab.codetools.requiredFilesAndProducts. This file will be removed in a future release.

unresolvedSymbols.txt

Lists dependencies not found during packaging. If this file is not empty, you must locate the required dependencies and place them in the search path before recompiling.

C Shared Library

FileDescription
filename.lib

Import library for user-written shared library.

filename.h

Header file for user-written shared library.

filename.dll

Code for user-written shared library.

C++ Shared Library

FileDescription
GettingStarted.html

HTML file containing packaging information.

filename.lib

Import library for user-written mwArray API shared library.

This file is generated if you choose the mwArray API during packaging.

filename.h

Header file for user-written mwArray API shared library.

filename.dll

Code for user-written mwArray API shared library.

v2:

  • generic_interface:

    • filename.ctf

    • readme.txt

The folder v2 contains the subfolder generic_interface. It contains a ctf file, which is the deployable archive for the MATLAB Data API library.

The readme.txt file contains packaging information.

This folder is generated if you choose the MATLAB Data API during packaging.

COM Component

FileDescription
_install.bat

File that registers the generated dll file.

filename_1_0.dll

The generated dll that needs to be registered using mwregsvr.exe or regsvr32.exe.

.NET Assembly

FileDescription
filename.dll

File that contains the generated component that can be accessed using mwArray API.

filename_overview.html

HTML overview documentation file for the generated component. It contains requirements for accessing the component and for generating arguments using the mwArray class hierarchy.

filenameNative.dll

File that contains the generated component that can be accessed using native API.

Java Package

FileDescription

doc:

  • html:

    • filename

      • Class1.html

      • Class1Remote.html

      • FilenameMCRFactory.html

      • packageframe.html

      • package-summary.html

      • packagetree.html

    • allclasses-frame.html

    • allclasses-noframe.html

    • constantvalues.html

    • deprecated-list.html

    • help-doc.html

    • index.html

    • index-all.html

    • overview-tree.html

    • package-list

    • script.js

    • stylesheet.css

The folder doc contains another folder html which contains HTML documentation for all classes in the packaged Java® application.

Filename.jar

Java archive for user-written application.

Python Package

FileDescription

filename:

  • _init_.py

  • filename.ctf

The folder Filename contains the following files:

  • File used during initialization of the Python® package.

  • Deployable archive for the Python package.

setup.py

File that installs the Python packaged application.

See Also

|

Topics