MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   Matlab实时工作室中的Makefile错误 (https://www.labfans.com/bbs/showthread.php?t=22762)

poster 2019-12-10 16:49

Matlab实时工作室中的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: [URL="http://pastebin.com/m5bdf2c4c"]http[/URL] : [URL="http://pastebin.com/m5bdf2c4c"]//pastebin.com/m5bdf2c4c[/URL]


回答:
我猜您的“ make”是Cygwin的make,不允许在其中包含冒号的本地Windows路径:

MATLAB_ROOT = C:\Program Files\MATLAB\R2008b ... %.o : $(MATLAB_ROOT)/rtw/c/tornado/%.c $(CC) $(CFLAGS) $(RT_MAIN_DEFINES) $


所有时间均为北京时间。现在的时间是 15:02

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.