./include/caffe/common.hpp:5:27: fatal error: gflags/gflags.h: No such file or directory
If you get this error when you run make all for caffe. It is possible that you are missing dependencies. To install missing gflag dependencies
wget https://github.com/schuhschuh/gflags/archive/master.zip
unzip master.zip
cd gflags-master
mkdir build && cd build
export CXXFLAGS="-fPIC" && cmake .. && make VERBOSE=1
make
sudo make install
No comments:
Post a Comment