BVLC / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
34.03k stars 18.7k forks source link

/usr/bin/ld: cannot find -lcaffe #6837

Open arianaa30 opened 4 years ago

arianaa30 commented 4 years ago

I installed Caffe-cpu on my Linux (>16.04) via the apt-get command: sudo apt install caffe-cpu But when trying to run a repo, it needs the header files (caffe.hpp). For that, I downloaded the latest Git repo. But it also complains at the make time:

/usr/bin/ld: cannot find -lcaffe

Apparently it needs to link to caffe.so, but I can't find it anywhere. What's the problem? How to fix it?

lilinghai commented 4 years ago

+1

zhuangyan-stone commented 4 years ago

you need install the develop lib for caffe:

sudo apt install libcaffe-cpu-dev

arianaa30 commented 4 years ago

Yes got it. Thanks.

Sent from my phone. Pls excuse typos and brevity.

On Fri, Sep 27, 2019, 4:22 AM zhuangyan-stone notifications@github.com wrote:

you need install the develop lib for caffe:

sudo apt install libcaffe-cpu-dev

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/BVLC/caffe/issues/6837?email_source=notifications&email_token=ABKBFTNYANKEIJRSI6IPDITQLXGGFA5CNFSM4IXXS4ZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7YJ7ZQ#issuecomment-535863270, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKBFTOTLZSDDTCBMEBJEC3QLXGGFANCNFSM4IXXS4ZA .