Hi. I am having an issue compiling Caffe, and have not been able to find a working solution. I followed the steps on the Caffe installation page, but can't get past compilation (http://caffe.berkeleyvision.org/installation.html#compilation). When I run make all, I get the following error:
CXX .build_release/src/caffe/proto/caffe.pb.cc
In file included from .build_release/src/caffe/proto/caffe.pb.cc:4:0:
.build_release/src/caffe/proto/caffe.pb.h:9:42: fatal error: google/protobuf/stubs/common.h: No such file or directory
compilation terminated.
make: *** [.build_release/src/caffe/proto/caffe.pb.o] Error 1
I already have all the dependencies listed on the Caffe installation page, but they are already installed in a root directory, and I did not get them by "sudo yum install" which I imagine would do the linking for me--I do not have root permissions to do "sudo yum install". I have tried protobuf 2.6.1, 2.4.1, 2.5.0, all with the same error on make. Since make doesn't seem to work, I have tried all of these versions on cmake as well, which still give me errors like
...
-- Could NOT find GFlags (missing: GFLAGS_INCLUDE_DIR GFLAGS_LIBRARY)
-- Could NOT find Glog (missing: GLOG_INCLUDE_DIR GLOG_LIBRARY)
-- Could NOT find PROTOBUF (missing: PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR)
...
I have no clue how to set Caffe to use the right directories. So what I did was manually set these variables to contain all the folders I could find (e.g. setenv PROTOBUF_INCLUDE_DIR /path/to/protobuf/src), and I ran cmake again. This works only for some of the variables, and I cannot get all of them to work, so it still isn't compiling. This solution seems way too cumbersome and error-prone... I don't even know what the LIBRARY directories should be for Glog and GFlags.
Does anybody have any insight on how to get this to work? Please let me know if you need more information. I run Linux.
Thanks.