I get the following error when I run "make runtest". I can't figure out how to change my library using homebrew so I'd like to change the header to accept HDF5 1.8.14, but I can't figure out how. Anyone else have this issue? Full error here: https://gist.github.com/asampat3090/36caf62fc6a43d48fc47
As a side note I'm trying to run caffe in CPU-only mode (I don't have an nVidia graphics card on my laptop).
If you are using Anaconda, I think may be it was caused by the wrong setting of Makefile.config
Make sure the python_lib and python_include are both set as Anaconda path.
I have the same problem like it.And I checked the Makefile.config again and again.It seems no wrong setting.The file as the following:
CPU_ONLY := 1
CUSTOM_CXX := clang++
CUDA_DIR := /usr/local/cuda
CUDA_ARCH := -gencode arch=compute_20,code=sm_20
-gencode arch=compute_20,code=sm_21
-gencode arch=compute_30,code=sm_30
-gencode arch=compute_35,code=sm_35
-gencode arch=compute_50,code=sm_50
-gencode arch=compute_50,code=compute_50
BLAS := atlas
#PYTHON_INCLUDE := /usr/include/python2.7
ANACONDA_HOME := $(HOME)/anaconda
PYTHON_INCLUDE := $(ANACONDA_HOME)/include
$(ANACONDA_HOME)/include/python2.7
$(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include
PYTHON_LIB := $(ANACONDA_HOME)/lib
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib
pkg-config to specify OpenCV library paths.BUILD_DIR := build
DISTRIBUTE_DIR := distribute
TEST_GPUID := 0
Q ?= @
This is usually include vs. linking order mismatch. Please ask build questions on the caffe-users group.
Is this not a bug that you should resolve??
the reason for this mismatch is that you are compiling with hdf5 lib from brew and running with anaconda one.. you may do conda uninstall hdf5 and use to the brew one.
conda install -c anaconda hdf5=1.8.14
Most helpful comment
conda install -c anaconda hdf5=1.8.14