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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章