Matlab R2022b and R2023a installation did not contain CMake
조회 수: 7 (최근 30일)
이전 댓글 표시
I tried to create custom messages under R2022b and R2023a using the ros2genmsg command from the ROS Toolbox and received the following error:
Error using ros.internal.utilities.getCMakeBinaryPath
Unable to find CMake in your system. Please install CMake version 3.15.5 or higher and rerun the command.
I looked in the mentioned function ros.internal.utilities.getCMakeBinaryPath
There I saw that it searches at a certain folder for the CMake executable. But in my installation folder this directory does not exist.
aPath = fullfile(matlabroot,'bin',computer('arch'),'cmake','bin','cmake')
Although, there is a fallback solution, that does not work on Windows due to the command which.
[status, result] = system('which cmake')
I solved the problem by installing CMake manually and creating a symbolic link via the Windows command prompt with
mklink /D "C:\Program Files\MATLAB\<VERSION>\bin\win64\cmake" "C:\Program Files\CMake"
But I would like to know why my installed Matlab does not contain CMake and how I can possibly fix it.
댓글 수: 3
Jagadeesh Konakalla
2023년 5월 26일
May i know which version of Windows that you are using ? Also, please provide the output of the ver command in MATLAB. Please reach out to us using the MAthworks Technical Support Team for further help on this.
채택된 답변
Jagadeesh Konakalla
2023년 5월 29일
Can you please install MATLAB Coder and try the rosgenmsg and ros2genmsg workflows ?
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!