Distribution of C code generated by Matlab Coder and header/lib files in Matlab "extern" folder

I used Matlab Coder to generate some C code based on some Matlab code I wrote. Can I distribute the C code I generated?
Another question is that in order for the C code to be compiled, the header files in the Matlab "extern" folder is needed. Can the header or lib/dll files in the "external" folder be distributed as well?
If so, under what licenses?
Thank you very much for your help!

Réponses (1)

This gets into portions of the license agreement which can be quite difficult to understand.
If you have a relatively recent MATLAB, then
edit( fullfile(matlabroot, 'license_agreement.txt'))
The file name was a bit different in older versions; in particular 'license.txt'
Look somewhere near line 1012, searching for "Deployment Addendum"
If I understand correct, you can distribute the C that you generated -- but I could be wrong and you should read the section yourself.
You should watch out for
5.2.2. In no event shall Licensee distribute any library header files.
6.1.2. Licensee may use, copy and distribute shared Object Code library
files (regardless whether a Derivative Form) for deployment of
Licensee's own Application, but only if a header file exists in the
Program for the shared library file. Licensee may not copy or
distribute header files themselves.
There are a number of areas of the license agreement that I am willing to spout off about my interpretation, but not the Deployment Addendum: I find it too confusing.

Question posée :

ZHL
le 9 Jan 2017

Modifié(e) :

ZHL
le 9 Jan 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by