linux下c++使用glog日志库,包含日志库的编译、交叉编译版本
一、编译linux版本
1. cp glog-master.tar /opt/
2. cd /opt/
3. tar -xvf glog-master.tar
4. cd glog-master
5. mkdir build
6. ./configure --prefix=/opt/glog/glog-master/build/
7. make
8. make install
二、编译arm版本
1. cp glog-master.tar /opt/
2. cd /opt/
3. tar -xvf glog-master.tar
4. cd glog-master
5. mkdir arm_build
6. ./configure --prefix=/opt/glog/glog-master/arm_build/ --host=arm-linux CC=${编译器绝对路径}/arm-linux-gcc CXX=${编译器绝对路径}/arm-linux-g++
7. make
8. make install
1