Friday, February 6, 2015

Errors when compiling Caffe with OpenCV 3.0 Beta


1. When compiling with opencv 3.0 Beta, we got the error with "CV_LOAD_IMAGE_COLOR". The reason is it has been replaced with "cv::IMREAD_COLOR". After editing file 'window_data_layer.cpp', the error was gone. This is a deprecated symbol used in Caffe.


2. "undefined reference to cv::imread(cv::String const&, int)"

We added -lopencv_imgcodecs to the make file and it solved the issue.

Extra: good articles about installing OpenCV in Ubuntu
http://rodrigoberriel.com/2014/10/installing-opencv-3-0-0-on-ubuntu-14-04/
http://docs.opencv.org/3.0-rc1/dd/dd5/tutorial_py_setup_in_fedora.html

No comments:

Post a Comment