ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

generator : Unix Makefiles does not match generator used previously: Ninja

asked 2021-03-02 21:42:25 -0500

UICSDPROJ gravatar image

updated 2022-05-28 16:58:32 -0500

lucasw gravatar image

Hardware: Rasberry PI4, Slamtech RPLidar A3

Software: Ubuntu 18.04, ROS Melodic, Google Cartographer, RPLidar SDK

I am currently trying to run catkin_make_isolated and am getting this error:

cmake /home/ubuntu/catkin_ws/src/cartographer_ros/cartographer_ros -DCATKIN_DEVEL_PREFIX=/home/ubuntu/catkin_ws/devel_isolated/cartographer_ros -DCMAKE_INSTALL_PREFIX=/home/ubuntu/catkin_ws/install_isolated -G Unix Makefiles in '/home/ubuntu/catkin_ws/build_isolated/cartographer_ros'
CMake Error: Error: generator : Unix Makefiles
Does not match the generator used previously: Ninja
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.
<== Failed to process package 'cartographer_ros': 
  Command '['/home/ubuntu/catkin_ws/devel_isolated/cartographer_ros_msgs/env.sh', 'cmake', '/home/ubuntu/catkin_ws/src/cartographer_ros/cartographer_ros', '-DCATKIN_DEVEL_PREFIX=/home/ubuntu/catkin_ws/devel_isolated/cartographer_ros', '-DCMAKE_INSTALL_PREFIX=/home/ubuntu/catkin_ws/install_isolated', '-G', 'Unix Makefiles']' returned non-zero exit status 1

Reproduce this error by running:
==> cd /home/ubuntu/catkin_ws/build_isolated/cartographer_ros && /home/ubuntu/catkin_ws/devel_isolated/cartographer_ros_msgs/env.sh cmake /home/ubuntu/catkin_ws/src/cartographer_ros/cartographer_ros -DCATKIN_DEVEL_PREFIX=/home/ubuntu/catkin_ws/devel_isolated/cartographer_ros -DCMAKE_INSTALL_PREFIX=/home/ubuntu/catkin_ws/install_isolated -G 'Unix Makefiles'

I am trying to run catkin_make_isolated in order to run the following line of code

roslaunch rplidar_ros view_rplidar.launch

I have already been able to produce readings from the rplidar in terminal by using ./simple_grabber /dev/ttyUSB0

any help to get around this catkin error would be greatly appreciated, thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-03-03 03:34:44 -0500

gvdhoorn gravatar image

This is not a catkin_make_isolated error, but a CMake one.

You likely followed the build instructions for Google Cartographer, which instructs ppl to use the Ninja CMake generator option.

Your current invocation of catkin_make_isolated does not specify any generator, so it defaults to Unix Makefiles (the -G Unix Makefiles option in the command line shown).

Those are not compatible, and CMake complains about that.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-03-02 21:42:25 -0500

Seen: 5,693 times

Last updated: Mar 03 '21