Cannot build with catkin_make
Hi, I am working on the follower demo for TurtleBot 3 Burger and I came across with this problem. I have downloaded the required packages however I cannot build them or it does not allow me to. I tried to run in isolated but that didn't work as well. It has to do something with the cartopgraher. Here is the execution command for that.
ardadenker@ardadenker-VirtualBox:~$ cd ~/catkin_ws && catkin_make
Base path: /home/ardadenker/catkin_ws
Source space: /home/ardadenker/catkin_ws/src
Build space: /home/ardadenker/catkin_ws/build
Devel space: /home/ardadenker/catkin_ws/devel
Install space: /home/ardadenker/catkin_ws/install'
####
#### Running command: "cmake /home/ardadenker/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/ardadenker/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/ardadenker/catkin_ws/install -G Unix Makefiles" in "/home/ardadenker/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/ardadenker/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/ardadenker/catkin_ws/devel;/opt/ros/kinetic
-- This workspace overlays: /home/ardadenker/catkin_ws/devel;/opt/ros/kinetic
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/ardadenker/catkin_ws/build/test_results
-- Found gmock sources under '/usr/src/gmock': gmock will be built
-- Found gtest sources under '/usr/src/gmock': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.11
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 22 packages in topological order:
-- ~~ - cartographer (plain cmake)
-- ~~ - cartographer_ros_msgs
-- ~~ - turtlebot3 (metapackage)
-- ~~ - turtlebot3_applications (metapackage)
-- ~~ - turtlebot3_follow_filter
-- ~~ - turtlebot3_msgs
-- ~~ - turtlebot3_navigation
-- ~~ - turtlebot3_simulations (metapackage)
-- ~~ - turtlebot3_applications_msgs
-- ~~ - turtlebot3_automatic_parking
-- ~~ - turtlebot3_automatic_parking_vision
-- ~~ - turtlebot3_bringup
-- ~~ - turtlebot3_example
-- ~~ - turtlebot3_fake
-- ~~ - turtlebot3_follower
-- ~~ - turtlebot3_gazebo
-- ~~ - turtlebot3_panorama
-- ~~ - turtlebot3_slam
-- ~~ - turtlebot3_teleop
-- ~~ - cartographer_ros
-- ~~ - cartographer_rviz
-- ~~ - turtlebot3_description
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CMake Error at /opt/ros/kinetic/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:63 (catkin_workspace)
-- Configuring incomplete, errors occurred!
See also "/home/ardadenker/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/ardadenker/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
ardadenker@ardadenker-VirtualBox:~/catkin_ws$
**************<<<<<<<<<<<<<<<<<< And this is when I run isolated>>>>>>>>>>>>>>>>>>>>>>>>******************
ardadenker@ardadenker-VirtualBox:~/catkin_ws$ catkin_make_isolated
Base path: /home/ardadenker/catkin_ws
Source space: /home/ardadenker/catkin_ws/src
Build space: /home/ardadenker/catkin_ws/build_isolated
Devel space: /home/ardadenker/catkin_ws/devel_isolated
Install space: /home/ardadenker/catkin_ws/install_isolated
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~ traversing 22 packages in topological order:
~~ - cartographer (plain cmake)
~~ - cartographer_ros_msgs
~~ - cartographer_ros
~~ - cartographer_rviz
~~ - turtlebot3
~~ - turtlebot3_applications
~~ - turtlebot3_applications_msgs
~~ - turtlebot3_automatic_parking
~~ - turtlebot3_automatic_parking_vision
~~ - turtlebot3_description
~~ - turtlebot3_follow_filter
~~ - turtlebot3_follower
~~ - turtlebot3_gazebo
~~ - turtlebot3_msgs
~~ - turtlebot3_bringup
~~ - turtlebot3_example
~~ - turtlebot3_fake
~~ - turtlebot3_navigation
~~ - turtlebot3_panorama
~~ - turtlebot3_simulations
~~ - turtlebot3_slam
~~ - turtlebot3_teleop
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The packages or cmake arguments have changed, forcing cmake invocation
==> Processing plain cmake package: 'cartographer'
==> cmake /home/ardadenker/catkin_ws/src/cartographer -DCMAKE_INSTALL_PREFIX=/home/ardadenker/catkin_ws/devel_isolated/cartographer -G Unix Makefiles in '/home/ardadenker/catkin_ws/build_isolated/cartographer/devel'
-- Build type: Release
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- iostreams
-- regex
-- Found required Ceres dependency: Eigen version 3.2.92 in /usr/include/eigen3
-- Found required Ceres dependency: glog
-- Found required Ceres dependency: gflags
-- Found Ceres version: 1.12.0 installed in: /usr with components: [LAPACK, SuiteSparse, SparseLinearAlgebraLibrary, CXSparse, SchurSpecializations, OpenMP]
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ardadenker/catkin_ws/build_isolated/cartographer/devel
==> make -j2 -l2 in '/home ...
Can you please format your text using the
101010
button? Right now the output from the terminal is completely unreadable.I have updated the question, I'm sorry for the frustration I actually tried that but because of all the special characters and spaces it wouldn't work. Just use the link and I'm looking forward to your reply. Thanks :)
It's actually quite easy to use once you know how. The easiest way to do it is to paste your code into the text box, highlight it, then press the
101010
button (or pressCtrl-k
). We want to have questions be self-contained, and the way to do that is to keep all text/images in the question...rather than be on an external site which can disappear.
It's my first time using this I apologies for my clumsiness. I understand, thank you for helping sorting the question in a very nice looking way :)
No problem.
Try running
catkin clean
in your catkin_ws and then run a catkin_make. Also install the dependencies mentioned like gflags and glog.I will try and let you know, thanks for the answer :)