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

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