遇到libgflags.a(gflags.cc.o): relocation R_X86_64_32 against `.rodata.str1.1' ca时

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安装

猜你喜欢

转载自www.cnblogs.com/hshy/p/11975101.html