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

Failed to process package 'diagnostic_common_diagnostics

asked 2014-12-21 11:32:51 -0500

travis gravatar image

updated 2022-01-22 16:16:29 -0500

Evgeny gravatar image


i'm trying to build indigo on my raspberry pi,and I get an error like the one below

Scanning dependencies of target libsensors_monitor
[ 50%] Building CXX object CMakeFiles/libsensors_monitor.dir/src/libsensors_monitor.cpp.o
/home/pi/ros_catkin_ws/src/diagnostics/diagnostic_common_diagnostics/src/libsensors_monitor.cpp:40:29: fatal error: sensors/sensors.h: No such file or directory
compilation terminated.
CMakeFiles/libsensors_monitor.dir/build.make:54: recipe for target 'CMakeFiles/libsensors_monitor.dir/src/libsensors_monitor.cpp.o' failed
make[2]: *** [CMakeFiles/libsensors_monitor.dir/src/libsensors_monitor.cpp.o] Error 1
CMakeFiles/Makefile2:215: recipe for target 'CMakeFiles/libsensors_monitor.dir/all' failed
make[1]: *** [CMakeFiles/libsensors_monitor.dir/all] Error 2
Makefile:123: recipe for target 'all' failed
make: *** [all] Error 2
<== Failed to process package 'diagnostic_common_diagnostics': 
  Command '/opt/ros/indigo/ make -j1 -l1' returned non-zero exit status 2

Reproduce this error by running:
==> cd /home/pi/ros_catkin_ws/build_isolated/diagnostic_common_diagnostics && /opt/ros/indigo/ make -j1 -l1

Command failed, exiting.

I can't find the sensors.h, and I don't know how to fix it.

Please help me , Thanks:))

edit retag flag offensive close merge delete


Also, for future questions (and this one too actually), always include the linux distribution that you are running, the version of ROS, whether from source or installed from debians, etc. We don't have a crystal ball, so we can't guess what you are using ..

gvdhoorn gravatar image gvdhoorn  ( 2014-12-22 01:54:26 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-12-22 01:49:27 -0500

gvdhoorn gravatar image

This is most likely related to the problem described in No definition of [libsensors4-dev] for OS [osx] (and then ros/diagnostics/issues/36).

I can't find the sensors.h, and I don't know how to fix it.

How did you check that you have all your dependencies installed on your rpi? If there is no libsensors4-dev for the distribution that you are running on your rpi, then rosdep should've errored out. If there is, then either you forgot to install it, or libsensors4-dev has a different layout in your distribution.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-12-21 11:32:51 -0500

Seen: 456 times

Last updated: Dec 22 '14