Ask Your Question
0

Failed to process package 'diagnostic_common_diagnostics

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

travis gravatar image

updated 2014-12-22 01:46:19 -0600

gvdhoorn gravatar image

hello,

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/env.sh 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/env.sh 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

Comments

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 imagegvdhoorn ( 2014-12-22 01:54:26 -0600 )edit

1 Answer

Sort by » oldest newest most voted
0

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 305 times

Last updated: Dec 22 '14