caffe compilation error lib/libpng16.so.16: undefined reference to `inflateValidate@ZLIB_1.2.9'

Compiling caffe reports an error:

//home/ubuntu/anaconda3/lib/libpng16.so.16: undefined reference to `inflateValidate@ZLIB_1.2.9'
The problem may be that python is installed through anaconda instead of directly.
Solution : Add the following information to Makefile.config:

LINKFLAGS := -Wl,-rpath,/home/ubuntu/anaconda3/lib


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325522023&siteId=291194637