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

  • Post author:
  • Post category:其他


系统版本: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 <glog/logging.h>
          ^~~~~~~~~~~~~~~~
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

问题解决。



版权声明:本文为learning_man原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。