Hello,
I used rosgenmsg for ROS1 with Matlab 2020a on Ubuntu 18.04 and it worked fine. Now I'm trying the same command on Matlab 2020b on Ubuntu 20.04. It seems there's a whole new build system using Python and a C++ compiler in the backend instead of Java. I now get an error about CMake not found:
Validating message files in folder '/home/anton/catkin_ws/src/crtk'..Done.[0/1] Generating MATLAB interfaces for custom message packages... 0%Error using ros.internal.utilities.getCMakeBinaryPath (line 24)Could not find CMake in your system. Please install CMake version 3.15.5 or higher and rerun the command.Error in ros.internal.CatkinBuilder.getCMakePath (line 82) [aPath, aVersion] = ros.internal.utilities.getCMakeBinaryPath(ros.internal.CatkinBuilder.CMAKEMINVERSION);
Meawhile, CMake is installed (using apt):
~$ cmake --versioncmake version 3.16.3CMake suite maintained and supported by Kitware (kitware.com/cmake).~$ which cmake /usr/bin/cmake
Any advice on how to proceed to fix this issue? Also, I'm interested in ROS 1 messages (Noetic), not ROS 2.
Best Answer