背景:
當我在用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