Link errors while building compute_image_mean.bin

116 views
Skip to first unread message

Ilya Zhenin

unread,
Jan 11, 2016, 8:12:01 AM1/11/16
to Caffe Users
I had following error:

CXX/LD -o .build_release/tools/compute_image_mean.bin
/usr/bin/ld: warning: libpng16.so.16, needed by /home/ilya/anaconda2/lib/libopencv_highgui.so, not found (try using -rpath or -rpath-link)
/home/ilya/anaconda2/lib/libopencv_highgui.so: undefined reference to `png_create_read_struct@PNG16_0'
.......

fixed it adding 
LINKFLAGS := -Wl,-rpath,$(HOME)/anaconda2/lib

to Makefile.config

After that I'm trying to deal for a while now with this:

CXX tools/compute_image_mean.cpp
CXX
/LD -o .build_release/tools/compute_image_mean.bin
//usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_index_size@XZ_5.0'
.......

What could be the reason? 

Ilya Zhenin

unread,
Jan 11, 2016, 8:45:09 AM1/11/16
to Caffe Users

UPD.

I have liblzma in anaconda folder, but linker not able to see it for some reason

 ldconfig -p | grep liblzma.so
 liblzma
.so.5 (libc6,x86-64) => /lib/x86_64-linux-gnu/liblzma.so.5
 liblzma
.so.5 (libc6) => /lib/i386-linux-gnu/liblzma.so.5
 liblzma
.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/liblzma.so


May be I should add it...But how?

Reply all
Reply to author
Forward
0 new messages