不兼容的libpng版本

时间:2016-05-20 03:00:10

标签: linux shared-libraries static-libraries caffe libpng

我编译了Caffe并运行命令行分类器。在编译之前,我使用Type Declaration检查了libpng版本并获得了:

libpng-config --ldflags --cflags

版本1.6

但是,当我运行二进制文件时:

-L/work/zhang/common/tools/anaconda2/lib -lpng16
-I/work/zhang/common/tools/anaconda2/include/libpng16

然后我跑**libpng warning: Application was compiled with png.h from libpng-1.6.13** **libpng warning: Application is running with png.c from libpng-1.2.49** **libpng error: Incompatible libpng version in application and library** F0519 22:17:15.609571 13943 classification.cpp:251] Check failed: !img.empty() Unable to decode image ../web-cnn/test_labeled_images/AND18.png *** Check failure stack trace: *** @ 0x7f181d546b9d google::LogMessage::Fail() @ 0x7f181d54abb7 google::LogMessage::SendToLog() @ 0x7f181d548a39 google::LogMessage::Flush() @ 0x7f181d548d3d google::LogMessageFatal::~LogMessageFatal() @ 0x407254 main @ 0x380ae1ed5d (unknown) @ 0x4041c9 (unknown) ,得到:

ldd <binary> | grep libpng

如何使用相同版本的libpng强制它?

0 个答案:

没有答案