I am trying to build CAFFE in gpu mode in Ubuntu 12.04 using gcc 4.6.3. Its agonising to see that the compilation halts at the shown point.
************************************************************************************************************************
Scanning dependencies of target caffe.bin
Scanning dependencies of target convert_imageset.bin
Scanning dependencies of target compute_image_mean.bin
Scanning dependencies of target device_query.bin
[ 84%] [ 88%] [ 88%] [ 88%] Building CXX object tools/CMakeFiles/convert_imageset.bin.dir/convert_imageset.cpp.o
/gleuclid/swamiviv/caffe/tools/convert_imageset.cpp:11:27: fatal error: gflags/gflags.h: No such file or directory
compilation terminated.
make[2]: *** [tools/CMakeFiles/convert_imageset.bin.dir/convert_imageset.cpp.o] Error 1
make[1]: *** [tools/CMakeFiles/convert_imageset.bin.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Building CXX object tools/CMakeFiles/device_query.bin.dir/device_query.cpp.o
Building CXX object tools/CMakeFiles/caffe.bin.dir/caffe.cpp.o
Building CXX object tools/CMakeFiles/compute_image_mean.bin.dir/compute_image_mean.cpp.o
/gleuclid/swamiviv/caffe/tools/compute_image_mean.cpp:1:26: fatal error: glog/logging.h: No such file or directory
compilation terminated.
/gleuclid/swamiviv/caffe/tools/caffe.cpp:1:26: fatal error: glog/logging.h: No such file or directory
compilation terminated.
make[2]: *** [tools/CMakeFiles/compute_image_mean.bin.dir/compute_image_mean.cpp.o] Error 1
make[1]: *** [tools/CMakeFiles/compute_image_mean.bin.dir/all] Error 2
In file included from /gleuclid/swamiviv/caffe/tools/device_query.cpp:1:0:
/gleuclid/swamiviv/caffe/include/caffe/common.hpp:5:27: fatal error: gflags/gflags.h: No such file or directory
compilation terminated.
make[2]: *** [tools/CMakeFiles/caffe.bin.dir/caffe.cpp.o] Error 1
make[1]: *** [tools/CMakeFiles/caffe.bin.dir/all] Error 2
make[2]: *** [tools/CMakeFiles/device_query.bin.dir/device_query.cpp.o] Error 1
make[1]: *** [tools/CMakeFiles/device_query.bin.dir/all] Error 2
make: *** [all] Error 2
************************************************************************************************************************
Its especially annoying because I know that the the glog/gflags headers and libraries were already used before in the compilation, I found lines like these:
************************************************************************************************************************
/homes/swamiviv/packages_local/glog-0.3.3/src/glog/logging.h(348): warning: using-declaration ignored -- it refers to the current namespace
/homes/swamiviv/packages_local/glog-0.3.3/src/glog/logging.h(352): warning: using-declaration ignored -- it refers to the current namespace
/homes/swamiviv/packages_local/glog-0.3.3/src/glog/logging.h(348): warning: using-declaration ignored -- it refers to the current namespace
************************************************************************************************************************
I should say that I do not have root access in the machine and hence I have installed glogd and gflags to a local dir and I changed the cmake config. parameters to reflect that, using the GLOG_INCLUDE(LIB)_DIR and GFLAGS_INCLUDE(LIB)_DIR flags.
Can anyone see what's going wrong here or has anyone experienced this problem in their compilation?
-Swami