Robotics StackExchange | Archived questions

catkin_make is not working

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

Asked by sathisheswaramoorthy@gmail.com on 2023-04-21 10:01:27 UTC

Comments

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

Asked by Mike Scheutzow on 2023-04-22 09:04:27 UTC

Answers

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.

Asked by sathisheswaramoorthy@gmail.com on 2023-04-21 22:36:29 UTC

Comments