Code generation error during building

1 回表示 (過去 30 日間)
Ádám Ostorhazy
Ádám Ostorhazy 2015 年 2 月 16 日
コメント済み: Ádám Ostorhazy 2015 年 2 月 24 日
Hi,
I'm trying to make an embedded code, and run into the following problem during building:
undef. "rtw" or class "rtw.pil.ExecutionProfileRegistry.getRegistryForModel"
Previously I successfully generated code with the given coder parameters.
Anyone run into the same error?
Thanks, Adam
  2 件のコメント
Ryan Livingston
Ryan Livingston 2015 年 2 月 23 日
It sounds like a possible installation issue or MATLAB path issue. You can try to run:
restoredefaultpath
rehash toolboxcache
to see if that resolves anything.
If that doesn't help what does:
which -all rtw
return? Spell and capitalize rtw the same way it is shown in the error message.
Have you installed, moved, or otherwise modified any MATLAB toolboxes?
Ádám Ostorhazy
Ádám Ostorhazy 2015 年 2 月 24 日
The 2 commands you mentioned solved the problem.
Thanks a lot, Adam

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

採用された回答

Abhishek GS
Abhishek GS 2015 年 2 月 24 日
Adam,
This can also happen when your MATLAB preferences get corrupted. Try regenerating your MATLAB preferences and and then build the model.
Use the below link for information on how to regenerate MATLAB Preferences.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by