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.
| File | Description |
|---|---|
buildresult.json | JSON file
containing information on runtime dependencies included in
the package. The information corresponds to the
|
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 |
deploymentLog.html | HTML file containing information on 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 |
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. |
Sample Files (Optional)
For each MATLAB sample file you include during packaging, a sample application in
the target language is generated in a folder named samples.
For more information, see Create Sample Code to Call Exported Function.
The following target types support sample generation:
C++ shared library
Java® package
.NET assembly
Python® package
| File | Description |
|---|---|
| C++ sample application. |
filenameSample1.java | Java sample application. |
filename.cs | C# .NET sample application. |
filenameSample1.py | Python sample application. |
C Shared Library
| File | Description |
|---|---|
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
| File | Description |
|---|---|
filename.lib | Import library for user-written
This file is generated if you choose
the |
filename.h | Header file for user-written |
filename.dll | Code for user-written |
| The folder The
The |
COM Component
| File | Description |
|---|---|
_install.bat | File that registers the generated
|
filename_1_0.dll | The generated |
.NET Assembly
| File | Description |
|---|---|
filename.dll | File that contains the generated component that can be
accessed using |
filename_overview.html | HTML overview documentation file for the generated
component. It contains requirements for accessing the
component and for generating arguments using the
|
filenameNative.dll | File that contains the generated component that can be accessed using native API. |
Java Package
| File | Description |
|---|---|
| The folder |
filename.jar | Java archive for user-written application. This file is generated if you
choose the |
filename.ctf | Java archive for user-written application. This file is generated if you choose the MATLAB Data API during packaging. |
Python Package
| File | Description |
|---|---|
| The folder
|
pyproject.toml | Configuration file that contains build system
requirements and information, which are used by
|
setup.py | File used during installation of the Python package. |
MATLAB Production Server Archive
| File | Description |
|---|---|
filename.ctf | Deployable archive file for MATLAB Production Server™. |
Excel add-in for MATLAB Production Server
| File | Description |
|---|---|
_install.bat | The file that registers the generated
|
filename.bas | VBA module file that can be imported into a VBA
project. This file is generated only if you enable the
|
filename.xla | Excel® add-in that can be added directly to
Excel. You do not need both |
filename.dll | The generated |