필터 지우기
필터 지우기

resolving SL build error

조회 수: 14 (최근 30일)
DHEERAJ KR
DHEERAJ KR 2022년 4월 8일
답변: Lokesh 2024년 6월 30일 18:29
i am trying to generate code for a simulink model , which inlcudes computer vision blocks. I faced SL build error while , generating the code, i have seen TLC code as been generated, but there is few issues in SL build , so i have pasted down the error i have faced, so if anyone could guide me to solve the error
i have also attached the Slx file with this,
>> rtwbuild("CV_CHECK/CV_TEST")
Warning: The file containing block diagram 'vipldws' is shadowed by a file of the same name higher on the MATLAB path. This
can cause unexpected behavior. For more information see "Avoiding Problems with Shadowed Files" in the Simulink
documentation.
The file containing the block diagram is: D:\MATLAB\vipldws.slx.
The file higher on the MATLAB path is: C:\Program Files\MATLAB\R2021b\toolbox\vision\visiondemos\vipldws.slx
### Starting build procedure for: CV_TEST
### Generating code and artifacts to 'Model specific' folder structure
### Generating code into build folder: D:\Computer vision\CV_TEST_ert_rtw
Warning: The file containing block diagram 'vipldws' is shadowed by a file of the same name higher on the MATLAB path. This
can cause unexpected behavior. For more information see "Avoiding Problems with Shadowed Files" in the Simulink
documentation.
The file containing the block diagram is: D:\MATLAB\vipldws.slx.
The file higher on the MATLAB path is: C:\Program Files\MATLAB\R2021b\toolbox\vision\visiondemos\vipldws.slx
### Invoking Target Language Compiler on CV_TEST.rtw
### Using System Target File: C:\Program Files\MATLAB\R2021b\rtw\c\ert\ert.tlc
### Loading TLC function libraries
......
### Initial pass through model to cache user defined code
.
### Caching model source code
...........................
### Writing header file CV_TEST_types.h
### Writing header file CV_TEST.h
### Writing header file rtwtypes.h
### Writing source file CV_TEST.cpp
### Writing header file CV_TEST_private.h
.
### Writing source file ert_main.cpp
### TLC code generation complete.
### Saving binary information cache.
### Using toolchain: MinGW64 | gmake (64-bit Windows)
### Creating 'D:\Computer vision\CV_TEST_ert_rtw\CV_TEST.mk' ...
### Building 'CV_TEST': "C:\PROGRA~1\MATLAB\R2021b\bin\win64\gmake" -f CV_TEST.mk all
D:\Computer vision\CV_TEST_ert_rtw>call "setup_mingw.bat"
D:\Computer vision\CV_TEST_ert_rtw>set "MINGW_ROOT=C:\PROGRA~3\MATLAB\SUPPOR~1\R2021b\3P778C~1.INS\MINGW_~1.INS\bin"
D:\Computer vision\CV_TEST_ert_rtw>cd .
D:\Computer vision\CV_TEST_ert_rtw>if "all" == "" ("C:\PROGRA~1\MATLAB\R2021b\bin\win64\gmake" -f CV_TEST.mk all ) else ("C:\PROGRA~1\MATLAB\R2021b\bin\win64\gmake" -f CV_TEST.mk all )
gmake: *** No rule to make target `D:/Computer', needed by `CV_TEST.obj'. Stop.
D:\Computer vision\CV_TEST_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
D:\Computer vision\CV_TEST_ert_rtw>exit /B 1
### Build procedure for CV_TEST aborted due to an error.
Build Summary
Top model targets built:
Model Action Rebuild Reason
===================================================================
CV_TEST Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 20.445s
Error using coder.build.internal.buildSubsystem
Error(s) encountered while building "CV_TEST"
Error in coder.build.internal.buildSubsystem
Error in slbuild
Error in slbuild
Error in rtwbuild - Show complete stack trace

답변 (1개)

Lokesh
Lokesh 2024년 6월 30일 18:29
Hi Dheeraj,
The error "No rule to make target" may occur due to an incorrect path. One possible reason for this issue is the presence of spaces in the path "D:\Computer vision\CV_TEST_ert_rtw" between "Computer" and "vision". Spaces in file paths can sometimes cause issues with the build process because tools like "make" cannot handle them properly.You will notice that the path is cut off after or before the first white space in the error message:
*** No rule to make target `D:/Computer', needed by `CV_TEST.obj'. Stop.
For guidance on handling spaces in folder names and potential workarounds, please refer to the section "Troubleshooting Errors When Folder Names Have Spaces" in the MATLAB documentation:
For additional insights and solutions related to this issue, you can also refer this MATLAB Answer:

카테고리

Help CenterFile Exchange에서 Generated Code Compilation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by