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 件のコメント

TAB
TAB 2018 年 6 月 1 日
Do you mean rtwtypes.h ?
Diego Ferigo
Diego Ferigo 2018 年 6 月 1 日
編集済み: Diego Ferigo 2018 年 6 月 1 日
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/.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSimulink Coder についてさらに検索

製品

リリース

R2017b

質問済み:

2018 年 6 月 1 日

編集済み:

2018 年 6 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by