Caffe install on ubuntu for anaconda with python 2.7 fails with libpng16.so.16 not found

后端 未结 3 1890
失恋的感觉
失恋的感觉 2021-01-20 20:33

So I have installed anaconda with python 2.7 and installed all of the requirements for Caffe library. I ensured that opencv is installed by

import cv2
         


        
3条回答
  •  无人及你
    2021-01-20 20:36

    I ran into the same problem and I fixed it by adding an -rpath in my Makefile.config :

    LINKFLAGS := -Wl,-rpath,$(HOME)/anaconda/lib

    I think this is the correct fix because it (-rpath) tells GCC where it can find libraries (libjpeg, libpng) that other libraries (in this case opencv) depend on.

提交回复
热议问题