fatal error: glog/logging.h: 没有那个文件或目录

 系统版本:ubuntu18.04

ROS版本:melodic

catkin_make报错:

In file included from /home/用户名/桌面/AutonomousMining/src/pnc/src/file.cc:17:0:
/home/用户名/桌面/AutonomousMining/src/pnc/include/file.h:37:10: fatal error: glog/logging.h: 没有那个文件或目录
 #include 
          ^~~~~~~~~~~~~~~~
compilation terminated.
pnc/CMakeFiles/pnc.dir/build.make:134: recipe for target 'pnc/CMakeFiles/pnc.dir/src/file.cc.o' failed
make[2]: *** [pnc/CMakeFiles/pnc.dir/src/file.cc.o] Error 1
make[2]: *** 正在等待未完成的任务....

解决方法:

sudo apt-get install libgoogle-glog-dev

问题解决。

你可能感兴趣的:(ROS,ubuntu)