How to bring absolute path of code replacement library to makefile generated during Software In Loop build?
Ältere Kommentare anzeigen
I use a Code replacement library but in a directory outside the Simulink Project root folder. Hence, the path is metioned relatively. This creates a problem in build because, the INCLUDES_BUILDINFO contains now relative path.
simple question is: How to absolutize the relative path of code replacement library in makefile generated during Software In Loop build?
note: Code generation is successful, only Build fails.
Antworten (1)
Yashwanth
am 14 Jan. 2026
0 Stimmen
Hi Noufal,
If you’re managing paths via Simulink Project, reference project variables in your include directories (e.g., Custom Code > Include directories) and let Simulink expand to absolute paths during build:
- Use $(PROJECT_ROOT) or a custom variable (e.g., $(CRL_DIR)) defined in Project Files > Settings > Project Paths/Variables.
- In model config: Include directories = $(CRL_DIR)/include
During code generation and build, Simulink replaces these tokens with absolute paths, which resolves the makefile issue.
Kategorien
Mehr zu Simulink Coder finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!