Hi,
I've succeeded this path a couple of days ago but somehow doing it again, but me with this trouble.
while compiling, when I do 'make all'
I see
...
CXX/LD -o .build_release/tools/net_speed_benchmark.bin
CXX/LD -o .build_release/tools/caffe.bin
/usr/bin/ld: warning: libjpeg.so.8, needed by /home/ckim/anaconda2/lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libpng16.so.16, needed by /home/ckim/anaconda2/lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
/home/ckim/anaconda2/lib/libopencv_highgui.so: undefined reference to `png_set_filter@PNG16_0'
/home/ckim/anaconda2/lib/libopencv_highgui.so: undefined reference to `png_get_IHDR@PNG16_0'
...
/home/ckim2/anaconda2/lib/libopencv_highgui.so is looking for libjpeg.so.8.
Actually the libjpeg.so.8 file (it's a symbolic link pointing to libjpeg.so.8.4.0 in the same location /home/ckim2/anaconda2/lib/)
inside Makefile.config,
ANACONDA_HOME := $(HOME)/anaconda2
PYTHON_INCLUDE := $(ANACONDA_HOME)/include \
$(ANACONDA_HOME)/include/python2.7 \
$(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include \
and the Makefile includes this Makefile.config
I dont't know why the compiler can't find the libjpeg8.so file when it's in the lib path, and also I don't know how to use -rath or -rpath-link.
Can anyone help me?
I'm doing it on CentOS6.7.
Thanks,
Chan