本文首发于个人博客https://kezunlin.me/post/977f5125/,欢迎阅读!
compile glog and glags on ubuntu 16.04
Series
Guide
version
wget https://github.com/schuhschuh/gflags/archive/v2.2.1.tar.gz
wget https://github.com/google/glog/archive/v0.3.5.tar.gz
gflags
cd gflagsmkdir buildcd buildcmake-gui ..
with options
BUILD_SHARED_LIBS ON
INSTALL_SHARED_LIBS ON
INSTALL_STATIC_LIBS OFF
CMAKE_CONFIGURATION_TYPES Release
REGISTER_INSTALL_PREFIX OFF
#NAMESPACE google;gflags
NAMESPACE google
compile and install
make -j8
sudo make install
gflags-config.cmake
comes from caffe/cmake/Modules/FindGFlags.cmake
# - Try to find GFLAGS
#
# The following variables are optionally searched for defaults
# GFLAGS_ROOT_DIR: Base directory wher