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

how do I make this catkin_make succeed or no more errors. thanks your all

asked 2020-02-16 03:29:22 -0500

ezkiel12 gravatar image

updated 2020-02-16 04:53:18 -0500

gvdhoorn gravatar image

Straight dump of the error:

ezikel@ezikel-PORTEGE-R30-A:~/catkin_ws$ catkin_make
Base path: /home/reksa/catkin_ws
Source space: /home/reksa/catkin_ws/src
Build space: /home/reksa/catkin_ws/build
Devel space: /home/reksa/catkin_ws/devel
Install space: /home/reksa/catkin_ws/install
####
#### Running command: "cmake /home/reksa/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/reksa/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/reksa/catkin_ws/install -G Unix Makefiles" in "/home/reksa/catkin_ws/build"
####
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /home/reksa/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/melodic
-- This workspace overlays: /opt/ros/melodic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/reksa/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.17") 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.20
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 29 packages in topological order:
-- ~~  - cartographer (plain cmake)
-- ~~  - rosserial (metapackage)
-- ~~  - rosserial_arduino
-- ~~  - rosserial_mbed
-- ~~  - rosserial_msgs
-- ~~  - rosserial_python
-- ~~  - rosserial_tivac
-- ~~  - rosserial_vex_cortex
-- ~~  - rosserial_vex_v5
-- ~~  - rosserial_xbee
-- ~~  - rosserial_client
-- ~~  - cartographer_ros_msgs
-- ~~  - turtlebot3 (metapackage)
-- ~~  - turtlebot3_msgs
-- ~~  - turtlebot3_navigation
-- ~~  - turtlebot3_simulations (metapackage)
-- ~~  - rosserial_server
-- ~~  - rosserial_embeddedlinux
-- ~~  - rosserial_test
-- ~~  - rosserial_windows
-- ~~  - turtlebot3_bringup
-- ~~  - turtlebot3_example
-- ~~  - turtlebot3_fake
-- ~~  - turtlebot3_gazebo
-- ~~  - turtlebot3_slam
-- ~~  - turtlebot3_teleop
-- ~~  - cartographer_ros
-- ~~  - cartographer_rviz
-- ~~  - turtlebot3_description
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkin_workspace.cmake:95 (message):
  This workspace contains non-catkin packages in it, and catkin cannot build
  a non-homogeneous workspace without isolation.  Try the
  'catkin_make_isolated' command instead.
Call Stack (most recent call first):
  CMakeLists.txt:67 (catkin_workspace)


-- Configuring incomplete, errors occurred!
See also "/home/reksa/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/reksa/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-02-16 07:15:18 -0500

updated 2020-02-16 13:44:21 -0500

Because cartographer is a regular CMake module (i.e. does not have catkin instructions in CMakeLists.txt) you must use catkin_make_isolated in order to compile your workspace

See this answer talking about this among other items.

I usually use catkin_make_isolated or catkin_tools for my workspaces even if I don't have plain CMake modules

edit flag offensive delete link more

Comments

I usually use catkin_make_isolated for all of my workspaces even if I don't have plain CMake modules

if that's the case, you may want to take a look at catkin_tools.

gvdhoorn gravatar image gvdhoorn  ( 2020-02-16 13:36:08 -0500 )edit

Thanks @gvdhoorn. I agree and I am indeed using catkin_tools more often now. I meant catkin_make_isolated in the context of this particular question/answer. I will update my answer a bit to include catkin_tools

viktor.holova gravatar image viktor.holova  ( 2020-02-16 13:42:18 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-02-16 03:29:22 -0500

Seen: 148 times

Last updated: Feb 16 '20