/usr/bin/ld: cannot find -lglog & collect2: error: ld returned 1 exit status

860 views
Skip to first unread message

xin...@uconn.edu

unread,
Apr 14, 2016, 10:27:35 PM4/14/16
to Caffe Users
I use "make all" to compile caffe and get the error as below:

LD -o .build_release/lib/libcaffe.so.1.0.0-rc3
/usr/bin/ld: cannot find -lglog
collect2: error: ld returned 1 exit status
make: *** [.build_release/lib/libcaffe.so.1.0.0-rc3] Error 1

I cannot figure out what's going on about collect2. Any ideas about it? Thanks so much for your help.


Jan

unread,
Apr 18, 2016, 9:24:16 AM4/18/16
to Caffe Users
The real error is the not-finding glog. Are you sure you installed glog (the google logging framework)?

Jan

isnani pramusinto

unread,
May 24, 2016, 1:59:43 AM5/24/16
to Caffe Users
I face the same problem. I have hdf5, openblas and snappy installed.

LD -o .build_release/lib/libcaffe.
so.1.0.0-rc3
/usr/bin/ld: cannot find -lhdf5_hl
/usr/bin/ld: cannot find -lhdf5
/usr/bin/ld: cannot find -lsnappy
/usr/bin/ld: cannot find -lopenblas

collect2: error: ld returned 1 exit status
make: *** [.build_release/lib/libcaffe.so.1.0.0-rc3] Error 1

What do you suggest?

isnani pramusinto

unread,
May 24, 2016, 8:11:54 AM5/24/16
to Caffe Users
Got the solution!
Find libglog.so file location. Add the location to LIBRARY_DIRS in your Makefile.config.
Reply all
Reply to author
Forward
0 new messages