Redistribute headers required by code generated with Simulink Coder

I'm currently working on an open source Simulink toolbox [1]. By exploiting a TLC file it has has the support of inlining the developed Level-2 C S-Functions in order to support Simulink Coder code generation.
I noticed that the automatically generated sources are not completely standalone. They actually depend to headers located into the Matlab system folders (extern/ simulink/ rtw/) containing mainly defines and typedefs.
One of our aim is to deploy the generated code to the target platform, and be able to compile them from a machine without Matlab. Only these few headers are missing, there's no need to link any of Matlab's library.
Would it be possible to redistribute the headers stored in such folders? Considering this is an open source project, also these headers would be publicly available.
[1] https://github.com/robotology/wb-toolbox/

2 Commenti

Do you mean rtwtypes.h ?
The first two headers that come in my mind are included from the generated rtwtypes.h:
#include "tmwtypes.h"
#include "simstruc_types.h"
There files are respectively in the extern/ and simulink/ folders.
If I enable APIs for parameters / signals from Simulink Coder settings, the code will depend also from headers located in rtw/.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Simulink Coder in Centro assistenza e File Exchange

Prodotti

Release

R2017b

Richiesto:

il 1 Giu 2018

Modificato:

il 1 Giu 2018

Community Treasure Hunt

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

Start Hunting!

Translated by