Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to find glog - Could not find glog include directory #2

Closed
amartyadash opened this issue Sep 20, 2020 · 2 comments
Closed

Failed to find glog - Could not find glog include directory #2

amartyadash opened this issue Sep 20, 2020 · 2 comments
Labels

Comments

@amartyadash
Copy link
Contributor

Getting the following error while building the workspace:

CMake Error at /home/username/catkin_ws/src/rotors_simulator/rotors_gazebo_plugins/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)
@amartyadash
Copy link
Contributor Author

Make sure you have glog_catkin cloned in your workspace. If not, you can do so as follows:

cd ~/catkin_ws/src
git clone https://github.com/ethz-asl/glog_catkin.git

Also make sure you have installed libgoogle-glog-dev:

sudo apt-get install libgoogle-glog-dev 

@amartyadash
Copy link
Contributor Author

If you face an error like:

fatal error: glog/logging.h: No such file or directory
 #include <glog/logging.h>
          ^~~~~~~~~~~~~~~~

Then also check if you have installed libgoogle-glog-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants