[Solved] Failed to find glog – Could not find glog include directory, set…

catkin_make Compile Error:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
– Found OpenCV: /opt/ros/kinetic (found version “3.3.1)
CMake Error at cmake/FindGlog.cmake:77 (MESSAGE):
Failed to find glog - Could not find glog include directory, set
GLOG_INCLUDE_DIR to directory containing glog/logging.h
Call Stack (most recent call first):
cmake/FindGlog.cmake:103 (GLOG_REPORT_NOT_FOUND)
CMakeLists.txt:147 (find_package)
– Found OpenCV: /opt/ros/kinetic (found version “3.3.1”) CMake Error at cmake/FindGlog.cmake:77 (MESSAGE): Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h Call Stack (most recent call first): cmake/FindGlog.cmake:103 (GLOG_REPORT_NOT_FOUND) CMakeLists.txt:147 (find_package)
 Found OpenCV: /opt/ros/kinetic (found version 3.3.1”)
CMake Error at cmake/FindGlog.cmake:77 (MESSAGE):
Failed to find glog - Could not find glog include directory, set
GLOG_INCLUDE_DIR to directory containing glog/logging.h
Call Stack (most recent call first):
cmake/FindGlog.cmake:103 (GLOG_REPORT_NOT_FOUND)
CMakeLists.txt:147 (find_package)

 

Solution:
$ sudo apt-get install libgoogle-glog-dev

Read More: