1、下載glog
在Github上查找glog即可,下載命令為:
git clone https://github.com/google/glog.git
2、在編譯之前如果沒有安裝依賴庫,需要先安裝依賴庫,我安裝了autoconf和libtool,根據自己的需要安裝相應的庫
sudo apt-get install autoconf libtool
3、編譯及安裝
1 ./autogen.sh 2 ./configure --prefix=/....../glog/build(可自定義安裝目錄) 3 make 4 make install
4、安裝完成
在安裝的目錄下會有相應的include、lib目錄