Caffe runtest失败glog是静态和动态链接的

时间:2017-03-25 17:35:13

标签: caffe

当我制作caffe时出现以下错误:make runtest -j8

ERROR: something wrong with flag 'logtostderr' in file '/glog/src/logging.cc'.  One possibility: file '/glog/src/logging.cc' is being linked both statically and dynamically into this executable.

我不知道如何解决它。

1 个答案:

答案 0 :(得分:0)

您似乎有两个版本的libgflags。

#Remove libgflags:
sudo apt-get remove -y libgflags-dev

# Check the path first before proceeding:
sudo rm -f /usr/local/lib/libgflags.a /usr/local/lib/libgflags_nothreads.a
sudo rm -rf  /usr/local/include/gflags

#Reinstall it:
sudo apt-get install -y libgflags-dev

Rebuild caffe