Matlab Real-Time Workshop 中的 Makefile 错误
我正在使用 Real-Time Workshop 自动生成 VxWorks 的可执行文件,但在执行以下命令时出现错误:
J:\Tornado\tests\add\add_tornado_rtw>make -f add.mk GENERATE_REPORT=0 TMW_EXTMODE_TESTING=0 RTWCAPIPARAMS=0 RTWCAPISIGNALS=0 MODELLIB=addlib.lib RELATIVE_PATH_TO_ANCHOR=.. MODELREF_TARGET_TYPE=NONE
add.mk:345: *** target pattern contains no `%'. Stop.
### Real-Time Workshop build procedure for model: 'add' aborted due to an error.
这是 makefile: http://pastebin.com/m5bdf2c4c
I'm using Real-Time Workshop to auto-generate executables for VxWorks, but I am getting an error at the following command:
J:\Tornado\tests\add\add_tornado_rtw>make -f add.mk GENERATE_REPORT=0 TMW_EXTMODE_TESTING=0 RTWCAPIPARAMS=0 RTWCAPISIGNALS=0 MODELLIB=addlib.lib RELATIVE_PATH_TO_ANCHOR=.. MODELREF_TARGET_TYPE=NONE
add.mk:345: *** target pattern contains no `%'. Stop.
### Real-Time Workshop build procedure for model: 'add' aborted due to an error.
Here is the makefile:
http://pastebin.com/m5bdf2c4c
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我猜你的“make”是Cygwin的make,它不允许本地Windows路径中带有冒号:
这将扩展为
即make假设“C”是模式(它在其中找不到%) 。
Bugzilla 关于此事的报告:https://chess.eecs.berkeley。 edu/bugzilla/show_bug.cgi?id=55
您可以从这里下载 make 的修补版本:http://www.cmake.org/files/cygwin/make.exe
I'm guessing that your "make" is Cygwin's make, which does not allow native windows paths with colons in them:
This will expand to
i.e. make assumes that "C" is the pattern (which it doesn't find a % in).
Bugzilla report on the matter: https://chess.eecs.berkeley.edu/bugzilla/show_bug.cgi?id=55
You can download a patched version of make from here: http://www.cmake.org/files/cygwin/make.exe