kevinlin311tw / caffe-cvprw15

:heart::coffee: Deep Learning of Binary Hash Codes for Fast Image Retrieval (CVPRW15)
Other
526 stars 218 forks source link

Need help! #20

Closed AemikaChow closed 4 years ago

AemikaChow commented 7 years ago

Hi~ kevin, I get a problem shows like below after make all

[ 77%] Building CXX object tools/CMakeFiles/dump_network.bin.dir/dump_network.cpp.o In file included from /home/aem/Downloads/caffe-cvprw15-master/tools/dump_network.cpp:23:0: /home/aem/Downloads/caffe-cvprw15-master/include/caffe/util/io.hpp:8:18: fatal error: hdf5.h: No such file or directory compilation terminated. tools/CMakeFiles/dump_network.bin.dir/build.make:62: recipe for target 'tools/CMakeFiles/dump_network.bin.dir/dump_network.cpp.o' failed make[2]: [tools/CMakeFiles/dump_network.bin.dir/dump_network.cpp.o] Error 1 CMakeFiles/Makefile2:4014: recipe for target 'tools/CMakeFiles/dump_network.bin.dir/all' failed make[1]: [tools/CMakeFiles/dump_network.bin.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2

(Ubuntu16.04 opencv3 anaconda2 Matlab2014a python2.7) I comment USE_CUDNN := 1 and uncomment CPU_ONLY=1 like #USE_CUDNN :=1 CPU_ONLY=1 INCLUDE_DIRS := $(PYTHON_INCLUDE) $(MATLAB_INCLUDE)/usr/local/include /usr/include /usr/include/hdf5/serial/ /usr/local/cuda/include LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/hdf5/serial

And try this way $ sudo ln -s /usr/lib/x86_64-linux-gnu/libhdf5_serial.so.10 /usr/lib/x86_64-linux-gnu/libhdf5.so $ sudo ln -s /usr/lib/x86_64-linux-gnu/libhdf5_serial_hl.so.10 /usr/lib/x86_64-linux-gnu/libhdf5_hl.so

But still get the same, how could I solve this problem? Any reply will be appreciate. Thank you!