Could not find .... following names:glogConfig.cmake glog-config.cmake

背景:

当我在用catkin_make 编译一个刚下载下来的库时候遇到:

  Could not find a package configuration file provided by "glog" with any of
  the following names:

    glogConfig.cmake
    glog-config.cmake

 我就去https://github.com/google/glog下载库,并且按照首页写的安装方法安装。发现问题没有解决。

 

解决办法:

用这个链接的安装方法:glog cmake 安装法

具体就是:

$ cd glog

$ cmake -H. -Bbuild -G "Unix Makefiles"

$ cmake --build build

$ cmake --build build --target test

$ sudo cmake --build build --target install

你可能感兴趣的:(Ubuntu)