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

Suddenly get catkin_make error

asked 2017-05-18 16:07:00 -0500

Abdu gravatar image

updated 2017-05-19 08:55:09 -0500

gvdhoorn gravatar image

I am new in ROS, I am using ros kinetic and ubuntu 16.04, I am working with kinect v2, I was trying to install ORK

then I got error when I did catkin_make, now I already delete what I installed but I am still getting same error with catkin_make,

any one can help me please ?

abdulrahman@abdulrahman-ThinkPad-X230-Tablet:~/catkin_ws$ catkin_makeBase path: /home/abdulrahman/catkin_ws
Source space: /home/abdulrahman/catkin_ws/src
Build space: /home/abdulrahman/catkin_ws/build
Devel space: /home/abdulrahman/catkin_ws/devel
Install space: /home/abdulrahman/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/abdulrahman/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/abdulrahman/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /home/abdulrahman/catkin_ws/devel;/opt/ros/kinetic
-- This workspace overlays: /home/abdulrahman/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/abdulrahman/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.6
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 17 packages in topological order:
-- ~~  - camera_umd (metapackage)
-- ~~  - freenect_launch
-- ~~  - freenect_stack
-- ~~  - iai_kinect2 (metapackage)
-- ~~  - openni2_launch
-- ~~  - kinect2_registration
-- ~~  - jpeg_streamer
-- ~~  - openni_launch
-- ~~  - freenect_camera
-- ~~  - openni_camera
-- ~~  - find_object_2d
-- ~~  - kinect2_bridge
-- ~~  - kinect2_calibration
-- ~~  - kinect2_viewer
-- ~~  - denso_gui
-- ~~  - usb_cam
-- ~~  - uvc_camera
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin metapackage: 'camera_umd'
-- ==> add_subdirectory(camera_umd-master/camera_umd)
-- +++ processing catkin package: 'freenect_launch'
-- ==> add_subdirectory(freenect_stack/freenect_launch)
-- +++ processing catkin package: 'freenect_stack'
-- ==> add_subdirectory(freenect_stack/freenect_stack)
-- +++ processing catkin metapackage: 'iai_kinect2'
-- ==> add_subdirectory(iai_kinect2/iai_kinect2)
-- +++ processing catkin package: 'openni2_launch'
-- ==> add_subdirectory(openni2_launch)
-- +++ processing catkin package: 'kinect2_registration'
-- ==> add_subdirectory(iai_kinect2/kinect2_registration)
CMake Error at /home/abdulrahman/catkin_ws/devel/share/rosconsole/cmake/rosconsoleConfig.cmake:106 (message):
  Project 'rosconsole' specifies
  '/home/abdulrahman/catkin_ws/src/ros_comm/tools/rosconsole/include' as an
  include dir, which is not found.  It does neither exist as an absolute
  directory nor in
  '/home/abdulrahman/catkin_ws/src/ros_comm/tools/rosconsole//home/abdulrahman/catkin_ws/src/ros_comm/tools/rosconsole/include'.
  Ask the maintainer 'Dirk Thomas <dthomas@osrfoundation.org>' to fix it.
Call Stack (most recent call first):
  /opt/ros/kinetic/share/roscpp/cmake/roscppConfig.cmake:165 (find_package)
  /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package)
  iai_kinect2/kinect2_registration/CMakeLists.txt:25 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/abdulrahman/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/abdulrahman/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:13926: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
abdulrahman@abdulrahman-ThinkPad-X230-Tablet:~/catkin_ws$

Edit:

abdulrahman@abdulrahman-ThinkPad-X230-Tablet:~/catkin_ws$ catkin_make Base path: /home/abdulrahman/catkin_ws Source space: /home/abdulrahman/catkin_ws/src Build space: /home/abdulrahman/catkin_ws/build Devel space: /home/abdulrahman/catkin_ws/devel Install space: /home/abdulrahman/catkin_ws/install ####

Running command: "cmake /home/abdulrahman/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/abdulrahman/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/abdulrahman/catkin_ws/install -G Unix Makefiles" in "/home/abdulrahman/catkin_ws/build"

#### -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.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 ... (more)

edit retag flag offensive close merge delete

Comments

Thanks alot, it works now, what I did, I removed the devel folder from catkin_ws and I made catkin_make, the new devel folder was built again properly,

But I still have question plz, I tried to do the same with build folder I couldn't I got the following error,

Abdu gravatar image Abdu  ( 2017-05-19 07:39:35 -0500 )edit

if u plz could have a look, I wanted to have new build folder which is more arranged because I know there are many extra folders that are not used at all.

Abdu gravatar image Abdu  ( 2017-05-19 07:45:18 -0500 )edit

Please copy only the relevant parts of your console output into your question. As it is this is unreadable / unworkable.

Delete both your devel and build folder in your workspace. They are managed automatically by catkin, don't do anything in them yourself.

gvdhoorn gravatar image gvdhoorn  ( 2017-05-19 08:57:00 -0500 )edit

thx for reply, I did deleted both folders, but I got these two errors, /home/abdulrahman/catkin_ws/src/denso_gui/include/denso_gui/dashboard_panel.h:10:33: fatal error: ui_dashboard_panel2.h: No such file or directory compilation terminated. and [ 91%] Built target find_object Makefile:138: recipe

Abdu gravatar image Abdu  ( 2017-05-19 09:05:34 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2017-05-19 00:42:12 -0500

gvdhoorn gravatar image

If you haven't already: please try to remove your devel and build directories. It looks like something was left behind that is now interfering with the build (I see mention of ros_comm in there, which is now not in the list of packages considered for the build).

edit flag offensive delete link more

Question Tools

Stats

Asked: 2017-05-18 16:07:00 -0500

Seen: 1,178 times

Last updated: May 19 '17