Using rtwmakecfg to tell RTW to use precompiled object instead of S-Function code
이전 댓글 표시
Hello,
I try to use rtwmakecfg to define that RTW should use a precompiled object of my C S-function instead of the source code. I tried to use makeInfo.linkLibsObjs as well as the makeInfo.library struct but every time, RTW is looking for the source code of the S-Function. Is there any way to tell RTW, that a S-Function does not need to be compiled but a precompiled object is aready available at a specific location?
Thanks,
Christian
댓글 수: 3
Kaustubha Govind
2013년 6월 7일
Are you specifying the S-function binary itself in makeInfo.linkLibsObjs or dependency files? Could you also paste the exact line from your rtwmakecfg.m file?
Webb Wei
2016년 8월 22일
Hi Christian, I am having the problem in having rti1103.tlc to compile my cpp s-function, I basically try to do the same thing as you asked here. I was wondering how did you compile your source file to an object specific to the RTI(.m50)? I am using RTI1103 and it looks like a need a .m04 object file. Do you use other compiler (VS or mex) to do so? and how?
Thanks
답변 (1개)
Kaustubha Govind
2013년 6월 13일
0 개 추천
What is the System Target File that you are using for code-generation? Is it specific to your target (since you are attempting to use a custom object extension, .m50)? Note that the makefile generated for the default targets will look for .obj extensions on Windows and .o on *nix platforms, you will need to provide the appropriate object files.
댓글 수: 5
Christian
2013년 6월 14일
Kaustubha Govind
2013년 6월 14일
Christian: With the rtwmakecfg.m, I presume the error that you see is only for the S-function file, correct, not for helper_func? I think this may be because the Makefile attempts to compile the S-function source itself before coming to dependencies. Does the S-function have a TLC file associated with it, or is Simulink treating it as a non-inlined S-function?
Christian
2013년 8월 8일
Hi Christian, I am having the problem in having rti1103.tlc to compile my cpp s-function, I basically try to do the same thing as you asked here. I was wondering how did you compile your source file to an object specific to the RTI(.m50)? I am using RTI1103 and it looks like a need a .m04 object file. Do you use other compiler (VS or mex) to do so? and how?
Thanks
카테고리
도움말 센터 및 File Exchange에서 Simulink Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!