/usr/bin/ld: cannot find -lcaffe

2

1

I installed Caffe-cpu on my Ubuntu 18.04 via the apt-get command, as it instructs on their official website:

sudo apt install caffe-cpu

But when trying to run a sample from a git repo, it needs the header files (caffe.hpp). For that, I downloaded the latest Caffe Git repo with the sources. But it also complains at the make time:

/usr/bin/ld: cannot find -lcaffe

My understanding of similar problmes is that apparently it needs to link to caffe.so, but I can't find it anywhere on my machine. What's the problem? How to fix it?

Tina J

Posted 2019-09-18T19:13:03.533

Reputation: 397

Answers

1

Unfortunately it is not mentioned on Caffe's official website. But I have to use

sudo apt install caffe-cpu-dev

to produce those missing header files and .so files.

Tina J

Posted 2019-09-18T19:13:03.533

Reputation: 397