Why do I get "Code generation information file does not exist" as the "Rebuild Reason" when building my model?

조회 수: 7 (최근 30일)
When I successfully build our model I get "Code generation information file does not exist" as "Rebuild Reason".
Build Summary Top model targets built: Model | Action |Rebuild Reason ==================================================================== modelName | Code generated | Code generation information file does not exist. 1 of 1 models built (0 models already up to date)
Why is this and how can I remedy it?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2024년 8월 16일
편집: MathWorks Support Team 2024년 8월 16일
This is expected behavior and means that the code was generated because it had not been generated before the build. If code was already generated and the model had not changed, it could be reused. There should be no issues with the generated code. You can learn more about Model Reference Rebuild as a performance tool in our documentation: https://www.mathworks.com/help/simulink/gui/rebuild.html
If the message under "Action" is "Failed" instead of "Code Generated" or "Code Generated and Compiled" the code did not generate properly. In this case, more detailed errors should be present in the build log that can be used to troubleshoot the issue. 
In 2024b, "Code generation information file does not exist." is replaced with "slprj folder or artifacts were missing." and the "Rebuild Reason" and "Action" swap positions in the build summary table. With this change, the result of the "Action" will be the final text in the summary to avoid confusion that an error occurred. 

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by