caffe编译报错lib/libpng16.so.16: undefined reference to `inflateValidate@ZLIB_1.2.9'

编译caffe报错:

//home/ubuntu/anaconda3/lib/libpng16.so.16: undefined reference to `inflateValidate@ZLIB_1.2.9'
问题可能是python是通过anaconda安装的而不是直接安装
解决办法:在Makefile.config中加入下列信息:

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


猜你喜欢

转载自blog.csdn.net/dillon2015/article/details/79857892