[Solved] Fatal error: GLOG/logging. H: there is no such file or directory

System version: Ubuntu 18.04

ROS version: Melody

catkin_ Make error:

In file included from /home/Username/Desktop/AutonomousMining/src/pnc/src/file.cc:17:0:
/home/Username/Desktop/AutonomousMining/src/pnc/include/file.h:37:10: fatal error: glog/logging.h: Don't have that file or directory
 #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]: *** Waiting for unfinished tasks....

Solution:

sudo apt-get install libgoogle-glog-dev

Done!


Read More: