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

catkin_make is not working

asked 2023-04-21 10:01:27 -0500

updated 2023-04-22 08:50:10 -0500

Mike Scheutzow gravatar image

Here is the error message:

sathish@sathish-Latitude-3410:~/catkin_ws$ catkin_make
Base path: /home/sathish/catkin_ws
Source space: /home/sathish/catkin_ws/src
Build space: /home/sathish/catkin_ws/build
Devel space: /home/sathish/catkin_ws/devel
Install space: /home/sathish/catkin_ws/install
####
#### Running command: "cmake /home/sathish/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/sathish/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/sathish/catkin_ws/install -G Unix Makefiles" in "/home/sathish/catkin_ws/build"
####
 -- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:6 (project):
No CMAKE_CXX_COMPILER could be found.   
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/home/sathish/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/sathish/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
edit retag flag offensive close merge delete

Comments

You might want to think about creating an account with a shorter name. Your current username does not display correctly on this page.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2023-04-22 09:04:27 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-04-21 22:36:29 -0500

The "compiler" is a separate package that needs to be installed. One called g++ can be installed on it's own and is also included within a bundle of packages called "build-essential".

Thus sudo apt-get install build-essential solves the problem (and sudo apt-get install g++ should also work), allowing cmake .. to work with no configuration necessary.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-04-21 10:01:27 -0500

Seen: 207 times

Last updated: Apr 22 '23