我在manjaro上编译了caffe。当我在caffe根文件夹中运行make all时,我得到:
CXX/LD -o .build_release/tools/caffe.bin
/usr/bin/ld: .build_release/tools/caffe.o: undefined reference to symbol '_ZdlPvm'
/usr/lib/libtcmalloc.so.4: error adding symbols: DSO missing from command line collect2: error:ld return 1
make: ***[Makefile:620:.build_release/tools/caffe.bin] error 1
我该如何解决这个问题? 这是我的一些Makefile.config:
CPU_ONLY := 1
OPENCV_VERSION := 3
BLAS := open
ANACONDA_HOME := /home/xdp/anaconda2
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
答案 0 :(得分:0)
在构建caffe之前,请确保安装:
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler libatlas-base-dev
sudo apt-get install python-dev python-pip gfortran
然后,尝试以这种方式构建构建caffe:
cd caffe
cp Makefile.config.example Makefile.config
and change setting in Makefile.config
mkdir build
cd build
cmake ..
./configure
make all