필터 지우기
필터 지우기

Model compilation is failing in MATLAB 2020b and getting the error as 'rtwshared.mk(136) : fatal error U1052: file '\rtw\c\to​ols\vctool​s.mak' not found'.

조회 수: 16 (최근 30일)
MATLAB 2020b throws an error as shown in the image whenever I try to compile the model using the following command,
model_name([],[],[],'compile')
I have checked the mex -setup and compilers and found it to be OK.
I am getting the following error in command window,
'rtwshared.mk(136) : fatal error U1052: file '\rtw\c\tools\vctools.mak' not found'.
Caused by:
Error (s) encountered while building "rtwshared"
Note: The same model is getting compiled in another PC using MATLAB 2020b
-> Please provide a solution , it would be of great help

답변 (1개)

Manoj Mirge
Manoj Mirge 2023년 4월 17일
Hi dileep k,
The compilation issue you have getting, it appears to be related to the incorrect path to the "vctools.mak" file that may be causing the problem. To resolve this, please use the correct path, which should be:
D:\Program Files\MATLAB\RXXXXx\rtw\c\tools\vctools.mak
(Or similar, depending on where you have MATLAB installed on your system).
Additionally, I have come across a MATLAB Answer thread that addresses the same issue you are facing. I recommend you go through the suggestions mentioned in the following MATLAB Answer thread:
Hope this helps.

카테고리

Help CenterFile Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by