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

catkin_make erorr, I have removed some un-used files then I got trouble with catkin_make any one can help me plz

asked 2017-05-21 10:16:35 -0500

Abdu gravatar image

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"

#### -- Using CATKIN_DEVEL_PREFIX: /home/abdulrahman/catkin_ws/devel -- Using CMAKE_PREFIX_PATH: /opt/ros/kinetic -- This workspace overlays: /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 22 packages in topological order: -- ~~ - camera_umd (metapackage) -- ~~ - freenect_launch -- ~~ - freenect_stack -- ~~ - iai_kinect2 (metapackage) -- ~~ - image_common (metapackage) -- ~~ - openni2_launch -- ~~ - camera_calibration_parsers -- ~~ - kinect2_registration -- ~~ - image_transport -- ~~ - camera_info_manager -- ~~ - jpeg_streamer -- ~~ - openni_launch -- ~~ - polled_camera -- ~~ - 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 metapackage: 'image_common' -- ==> add_subdirectory(image_common/image_common) -- +++ processing catkin package: 'openni2_launch' -- ==> add_subdirectory(openni2_launch) -- +++ processing catkin package: 'camera_calibration_parsers' -- ==> add_subdirectory(image_common/camera_calibration_parsers) -- Boost version: 1.58.0 -- Found the following Boost libraries: -- filesystem -- python -- system -- +++ processing catkin package: 'kinect2_registration' -- ==> add_subdirectory(iai_kinect2/kinect2_registration) -- Could NOT find OpenCL (missing: OpenCL_LIBRARY OpenCL_INCLUDE_DIR) -- CPU based depth registration enabled -- OpenCL based depth registration disabled -- +++ processing catkin package: 'image_transport' -- ==> add_subdirectory(image_common/image_transport) -- Boost version: 1.58.0 -- +++ processing catkin package: 'camera_info_manager' -- ==> add_subdirectory(image_common/camera_info_manager) -- Boost version: 1.58.0 -- +++ processing catkin package: 'jpeg_streamer' -- ==> add_subdirectory(camera_umd-master/jpeg_streamer) -- Boost version: 1.58.0 -- Found the following Boost libraries: -- system -- thread -- chrono -- date_time -- atomic -- +++ processing catkin package: 'openni_launch' -- ==> add_subdirectory(openni_launch) -- +++ processing catkin package: 'polled_camera' -- ==> add_subdirectory(image_common/polled_camera) -- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy -- polled_camera: 0 messages, 1 services -- +++ processing catkin package: 'freenect_camera' -- ==> add_subdirectory(freenect_stack/freenect_camera) CMake Warning at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package): Could not find a package configuration file provided by "diagnostic_updater" with any of the following names:

diagnostic_updaterConfig.cmake
diagnostic_updater-config.cmake

Add the installation prefix of "diagnostic_updater" to CMAKE_PREFIX_PATH or set "diagnostic_updater_DIR" to a directory containing one of the above files. If "diagnostic_updater" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): freenect_stack/freenect_camera/CMakeLists.txt:3 (find_package)

-- Could not find the required component 'diagnostic_updater'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "diagnostic_updater" with any of the following names:

diagnostic_updaterConfig.cmake
diagnostic_updater-config.cmake

Add the installation prefix of "diagnostic_updater" to CMAKE_PREFIX_PATH or set "diagnostic_updater_DIR" to a directory containing one of the above files. If "diagnostic_updater" provides a separate development package or SDK, be ... (more)

edit retag flag offensive close merge delete

Comments

did you delete the build and devel folders after removing these files? You should delete them in order to do a clean catkin_make.

angeltop gravatar image angeltop  ( 2017-05-22 02:23:57 -0500 )edit

yes i already did, thx

Abdu gravatar image Abdu  ( 2017-05-22 07:43:09 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-05-22 04:36:46 -0500

This error message tells you that the ROS Package diagnostic_updater is missing.

There can be some reasons for that:

  1. Is your workspace sourced correctly?
  2. Is your ROS Distro sourced correctly?
  3. When you compile it from source are your dependencies set correctly?

If its even not installed I think you just can

sudo apt-get install ros-kinetic-diagnostics

Than the package which is missing is installed.

edit flag offensive delete link more

Comments

thx to ur reply, it works now, the problem was that I wanted to fee up some space in ubuntu, I have used bleachbit, then it seems I removed some important files. Finally, I was trying this code in terminal [sudo apt-get install ros_kinetic_diagnostics], but it doesn't work, then I used yours, thx

Abdu gravatar image Abdu  ( 2017-05-22 07:47:55 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-05-21 10:16:35 -0500

Seen: 3,699 times

Last updated: May 22 '17