Ubuntu glogg日志分析工具安装
apt-get install glogg
yum install glogg
Windows/Linux/MacOS glogg日志分析工具下载与安装
https://glogg.bonnefon.org/download.html
http://glogg.bonnefon.org/files/
Windows glog安装以及环境搭建
(1).安装clion
(2).安装minGW
(3).下载glog二进制包
https://pkgs.org/download/mingw-w64-google-glog
(4).由于glog还依赖了gflags ,所以还需要下载gflags
https://packages.msys2.org/base/mingw-w64-gflags
(5).glog、gflags都是tar.zst格式的压缩包,常见的压缩工具还没办法解压缩,所以还需要下载NanaZip解压工具
(6).解压glog、gflags后还需要把二者的bin目录添加到环境变量中
(7).配置完环境变量重启下IDE ,IDE才能读取到配置的glog、gflags环境变量
(8).配置CMakeLists.txt
(9).写代码测试
https://github.com/nickbnf/glogg
https://archlinux.pkgs.org/rolling/ownstuff-x86_64/mingw-w64-google-glog-0.6.0-1-any.pkg.tar.zst.html
https://blog.csdn.net/shfqbluestone/article/details/127968375
tar xzf glogg-X.X.X.tar.gz
cd glogg-X.X.X
qmake
make
make install INSTALL_ROOT=/usr/local (as root if needed)
cd tests
mkdir build
cd build
export QT_DIR=/path/to/qt/if/non/standard
export GMOCK_HOME=/path/to/gmock
cmake ..
make
./glogg_tests
Log日志分析工具下载地址
链接//pan.baidu.com/s/1lf2LZ8vWkXlW1ttFLX_2MQ
提取码:cco8
审核编辑 :李倩
全部0条评论
快来发表一下你的评论吧 !