glog v0.5.0编译:
1、Get the source code and change to it. e.g., cloning with git:
git clone https://github.com/google/glog.git
cd glog
2、Run CMake to configure the build tree.
cmake -S . -B build -G "Unix Makefiles"
CMake provides different generators, and by default will pick the most relevant one to your environment. If you need a specific version of Visual Studio, use cmake . -G , and see cmake --help for the available generators. Also see -T , which can be used to request the native x64 toolchain with -T host=x64.
3、Afterwards, generated files can be used to compile the project.
cmake --build build
4、Test the build software (optional).
cmake --build build --target test
5、Install the built files (optional).
cmake --build build --target install
glog v0.4.0编译:
./autogen.sh
./configure
make -j8
sudo make install