在对glog进行make操作时报错如下

 

ubuntu下安装Glog报错: error: ... recipe for target 'logging_unittest' failed

 

解决办法:
重新安装gflags和glog,按如下方式进行安装:

1)安装gflags

git clone https://github.com/gflags/gflags.git

cd gflags

mkdir build && cd build

cmake -DGFLAGS_NAMESPACE=google -DCMAKE_CXX_FLAGS=-fPIC -DBUILD_SHARED_LIBS=ON ..

make -j4

sudo make install

sudo ldconfig

 2)安装glog

git clone https://github.com/google/glog
cd glog
mkdir build && cd build
cmake -DGFLAGS_NAMESPACE=google -DCMAKE_CXX_FLAGS=-fPIC -DBUILD_SHARED_LIBS=ON ..
make
sudo make install

 

参考博客【https://blog.csdn.net/weixin_44401286/article/details/103101450】

 

相关文章:

  • 2021-07-12
  • 2021-05-27
  • 2021-11-16
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2022-03-06
猜你喜欢
  • 2022-12-23
  • 2022-01-09
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案