Compile Caffe: cannot find -lboost_filesystem

171 views
Skip to first unread message

Lisandro K

unread,
Apr 11, 2016, 10:29:17 PM4/11/16
to Caffe Users
Hi,

While compiling caffe on a Jetson TK1 (L4T 21.3, Ubuntu 14.04) I get the following error:

LD -o .build_release/lib/libcaffe.so.1.0.0-rc3
/usr/bin/ld: cannot find -lboost_filesystem
collect2: error: ld returned 1 exit status

I have all these dependencies correctly installed (I've installed all libbost-*-dev):

libprotobuf-dev protobuf-compiler gfortran \
> libboost-dev cmake libleveldb-dev libsnappy-dev \
> libboost-thread-dev libboost-system-dev \
> libatlas-base-dev libhdf5-serial-dev libgflags-dev \
> libgoogle-glog-dev liblmdb-dev

Here is a list of the location of the libraries:

$ find /usr/lib -name libboost\*|grep '\.so'

/usr/lib/arm-linux-gnueabihf/libboost_wserialization.so.1.54.0
/usr/lib/arm-linux-gnueabihf/libboost_date_time.so
/usr/lib/arm-linux-gnueabihf/libboost_thread.so
/usr/lib/arm-linux-gnueabihf/libboost_date_time.so.1.54.0
/usr/lib/arm-linux-gnueabihf/libboost_system.so.1.54.0
/usr/lib/arm-linux-gnueabihf/libboost_iostreams.so.1.54.0
/usr/lib/arm-linux-gnueabihf/libboost_thread.so.1.54.0
/usr/lib/arm-linux-gnueabihf/libboost_serialization.so
/usr/lib/arm-linux-gnueabihf/libboost_atomic.so.1.54.0
/usr/lib/arm-linux-gnueabihf/libboost_serialization.so.1.54.0
/usr/lib/arm-linux-gnueabihf/libboost_wserialization.so
/usr/lib/arm-linux-gnueabihf/libboost_chrono.so
/usr/lib/arm-linux-gnueabihf/libboost_chrono.so.1.54.0
/usr/lib/arm-linux-gnueabihf/libboost_atomic.so
/usr/lib/arm-linux-gnueabihf/libboost_system.so

How can I solve this issue?

Thanks a lot

Cheers

Lisandro K

unread,
Apr 12, 2016, 2:30:33 AM4/12/16
to Caffe Users
Solved the problem. I installed libboost-filesystem-* ilbraries and that provided me with the missing file

Cheers
Reply all
Reply to author
Forward
0 new messages