Caffe make ERROR - PLEASE HELP

186 views
Skip to first unread message

Aditya Giridhar

unread,
Jun 14, 2016, 2:07:40 PM6/14/16
to Caffe Users
Hi, 
I am trying to install Caffe without GPU using faster rcnn. After installing all the dependencies, when I run make -j8 && make pycaffe, I get the following error:
AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so.1.0.0-rc3
/usr/bin/ld: cannot find -lopencv_imgcodecs
collect2: error: ld returned 1 exit status
make: *** [.build_release/lib/libcaffe.so.1.0.0-rc3] Error 1

Due to earlier errors, I had made this change to my Makefile: 
LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5 opencv_imgcodecs opencv_core opencv_highgui opencv_imgproc
In the above line, I added everything after hdf5.

I also had OpenCV 3 earlier, but I uninstalled it and installed OpenCV 2.4.8. I am using ElementaryOS 0.3.2 Freya - build on Ubuntu 14.04.

Any help would be appreciated. Thanks.


cks...@gmail.com

unread,
Jul 11, 2016, 4:36:38 AM7/11/16
to Caffe Users
I just solve this question.if your opencv version is 3.0, please uncommon OPENCV_VERSION := 3 in Makefile.config. No need to change Makefile.

在 2016年6月15日星期三 UTC+8上午2:07:40,Aditya Giridhar写道:
Reply all
Reply to author
Forward
0 new messages