glfag编译成动态库
gflags 正确的安装方法是这样的: Need cmake >2.8.4 (current is 2.8.3)
mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=ON -DGFLAGS_NAMESPACE=google -G "Unix Makefiles" ../ make sudo make install sudo ldconfig
有网:
1. 把glfag编译成动态库
或者
2. 直接用apt-get安装