Hi,
I have a working simulation where I have included a search path to my custom library, which contains various C-scripts.
The path is for example:
C:/subFolder1/subFolder2/subFolder2/subFolder3/myLib.plecs
In this custom library the C-scripts are using relative paths such as:
…/MySourceFiles/Source.c
…/MySourceFiles/header.h
I can run the simulation in Plecs just fine, but the issue arrises when building the code for the RT box, which doesn’t seems to handle the library search paths?
The plecs model I want to build onto the target is for example located in:
C:/subFolder1/MySimulation.plecs
And I then get a build error in the auto-generated code which is located here:
C:/subFolder1/MySimulation_codegen/source.c
Which is because it now cannot find the path to my original source file located in my custom library.
Is there some way to fix this?
I have multiple linked libraries so I cannot just move MySimulation_codegen/source.c to where the custom library is located.