Simulink Coder: no such file or directory - path problem in gmake

25 ビュー (過去 30 日間)
AL
AL 2014 年 12 月 12 日
コメント済み: likho Xunge 2019 年 9 月 26 日
Hey there,
I want to build and compile code with Simulink Coder out of a SimPowerSystems model. So far so good: code building is working, but compiling does not work.
The Error message:
Model_xy.mk:153: D:/Program: No such file or directory
Model_xy.mk:153: Files/MATLAB/R2014a\rtw\c\tools\lcc64tools.mak: No such file or directory
gmake: *** No rule to make target `Files/MATLAB/R2014a\rtw\c\tools\lcc64tools.mak'. Stop.
Well, it seems the path in line 153 is not working right. The complete installation path is:
MATLAB_ROOT = D:/Program Files/MATLAB/R2014a
and line 153 is this one:
include $(MATLAB_ROOT)\rtw\c\tools\lcc64tools.mak
One workaround is to copy lcc64tools.mak to a path without space in the name, like
D:\lcc64tools.mak
and change the path in the .mk-file. But then, with every new compilation, i need to change it again...
And in the end, there are still even more files gmake needs and actually its not that professional to throw around the directories. So... do you have any tips for me to get gmake to the right path without re-installing matlab (to a path without space in the path)?
Any help is appreciated.
Thank you!
  3 件のコメント
fuxin zhou
fuxin zhou 2017 年 8 月 18 日
Hi there, Were you able to solve this issue? Thanks!
likho Xunge
likho Xunge 2019 年 9 月 26 日
i'm encounting the same error, did you guys ever found a way to bypass this?
thank you

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

回答 (1 件)

Pranav Asokan
Pranav Asokan 2019 年 3 月 22 日
Hello,
I believe gmake did not support path with spaces (at least till 3.8.2) and this could have been the issue while compiling.
Thanks,
Pranav

カテゴリ

Help Center および File ExchangeFoundation and Custom Domains についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by