I've followed the instructions to build your project, installed all the dependencies but I still get the following error when building the project:
Scanning dependencies of target upgrade_solver_proto_text
[ 77%] Building CXX object tools/CMakeFiles/upgrade_solver_proto_text.dir/upgrade_solver_proto_text.cpp.o
[ 79%] Linking CXX executable get_image_size
../lib/libcaffe.so.1.0.0: undefined reference to `cv::String::allocate(unsigned long)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::rectangle(cv::_InputOutputArray const&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::getTextSize(cv::String const&, int, double, int, int*)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::VideoWriter::VideoWriter(cv::String const&, int, double, cv::Size_<int>, bool)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::imread(cv::String const&, int)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::String::deallocate()'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::imencode(cv::String const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::putText(cv::_InputOutputArray const&, cv::String const&, cv::Point_<int>, int, double, cv::Scalar_<double>, int, int, bool)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::LUT(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::floodFill(cv::_InputOutputArray const&, cv::Point_<int>, cv::Scalar_<double>, cv::Rect_<int>*, cv::Scalar_<double>, cv::Scalar_<double>, int)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)'
collect2: error: ld returned 1 exit status
tools/CMakeFiles/get_image_size.dir/build.make:129: recipe for target 'tools/get_image_size' failed
make[2]: *** [tools/get_image_size] Error 1
CMakeFiles/Makefile2:541: recipe for target 'tools/CMakeFiles/get_image_size.dir/all' failed
make[1]: *** [tools/CMakeFiles/get_image_size.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 80%] Linking CXX executable convert_annoset
[ 82%] Linking CXX executable upgrade_solver_proto_text
../lib/libcaffe.so.1.0.0: undefined reference to `cv::String::allocate(unsigned long)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::rectangle(cv::_InputOutputArray const&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::getTextSize(cv::String const&, int, double, int, int*)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::VideoWriter::VideoWriter(cv::String const&, int, double, cv::Size_<int>, bool)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::imread(cv::String const&, int)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::String::deallocate()'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::imencode(cv::String const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::putText(cv::_InputOutputArray const&, cv::String const&, cv::Point_<int>, int, double, cv::Scalar_<double>, int, int, bool)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::LUT(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::floodFill(cv::_InputOutputArray const&, cv::Point_<int>, cv::Scalar_<double>, cv::Rect_<int>*, cv::Scalar_<double>, cv::Scalar_<double>, int)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)'
collect2: error: ld returned 1 exit status
tools/CMakeFiles/convert_annoset.dir/build.make:129: recipe for target 'tools/convert_annoset' failed
make[2]: *** [tools/convert_annoset] Error 1
CMakeFiles/Makefile2:465: recipe for target 'tools/CMakeFiles/convert_annoset.dir/all' failed
make[1]: *** [tools/CMakeFiles/convert_annoset.dir/all] Error 2
../lib/libcaffe.so.1.0.0: undefined reference to `cv::String::allocate(unsigned long)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::rectangle(cv::_InputOutputArray const&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::getTextSize(cv::String const&, int, double, int, int*)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::VideoWriter::VideoWriter(cv::String const&, int, double, cv::Size_<int>, bool)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::imread(cv::String const&, int)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::String::deallocate()'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::imencode(cv::String const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::putText(cv::_InputOutputArray const&, cv::String const&, cv::Point_<int>, int, double, cv::Scalar_<double>, int, int, bool)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::LUT(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::floodFill(cv::_InputOutputArray const&, cv::Point_<int>, cv::Scalar_<double>, cv::Rect_<int>*, cv::Scalar_<double>, cv::Scalar_<double>, int)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)'
collect2: error: ld returned 1 exit status
tools/CMakeFiles/upgrade_solver_proto_text.dir/build.make:129: recipe for target 'tools/upgrade_solver_proto_text' failed
make[2]: *** [tools/upgrade_solver_proto_text] Error 1
CMakeFiles/Makefile2:617: recipe for target 'tools/CMakeFiles/upgrade_solver_proto_text.dir/all' failed
make[1]: *** [tools/CMakeFiles/upgrade_solver_proto_text.dir/all] Error 2
[ 83%] Linking CXX executable caffe
../lib/libcaffe.so.1.0.0: undefined reference to `cv::String::allocate(unsigned long)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::rectangle(cv::_InputOutputArray const&, cv::Point_<int>, cv::Point_<int>, cv::Scalar_<double> const&, int, int, int)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::getTextSize(cv::String const&, int, double, int, int*)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::VideoWriter::VideoWriter(cv::String const&, int, double, cv::Size_<int>, bool)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::imread(cv::String const&, int)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::String::deallocate()'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::imencode(cv::String const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::putText(cv::_InputOutputArray const&, cv::String const&, cv::Point_<int>, int, double, cv::Scalar_<double>, int, int, bool)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::LUT(cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::floodFill(cv::_InputOutputArray const&, cv::Point_<int>, cv::Scalar_<double>, cv::Rect_<int>*, cv::Scalar_<double>, cv::Scalar_<double>, int)'
../lib/libcaffe.so.1.0.0: undefined reference to `cv::imshow(cv::String const&, cv::_InputArray const&)'
collect2: error: ld returned 1 exit status
tools/CMakeFiles/caffe.bin.dir/build.make:129: recipe for target 'tools/caffe' failed
make[2]: *** [tools/caffe] Error 1
CMakeFiles/Makefile2:503: recipe for target 'tools/CMakeFiles/caffe.bin.dir/all' failed
make[1]: *** [tools/CMakeFiles/caffe.bin.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
ls -l /usr/local/lib/libopencv_*
lrwxrwxrwx 1 root root 24 Oct 3 18:46 /usr/local/lib/libopencv_calib3d.so -> libopencv_calib3d.so.3.3
lrwxrwxrwx 1 root root 26 Oct 3 18:46 /usr/local/lib/libopencv_calib3d.so.3.3 -> libopencv_calib3d.so.3.3.1
-rw-r--r-- 1 root root 1819624 Oct 3 18:32 /usr/local/lib/libopencv_calib3d.so.3.3.1
lrwxrwxrwx 1 root root 21 Oct 3 18:46 /usr/local/lib/libopencv_core.so -> libopencv_core.so.3.3
lrwxrwxrwx 1 root root 23 Oct 3 18:46 /usr/local/lib/libopencv_core.so.3.3 -> libopencv_core.so.3.3.1
-rw-r--r-- 1 root root 15178712 Oct 3 18:25 /usr/local/lib/libopencv_core.so.3.3.1
lrwxrwxrwx 1 root root 20 Oct 3 18:46 /usr/local/lib/libopencv_dnn.so -> libopencv_dnn.so.3.3
lrwxrwxrwx 1 root root 22 Oct 3 18:46 /usr/local/lib/libopencv_dnn.so.3.3 -> libopencv_dnn.so.3.3.1
-rw-r--r-- 1 root root 8458264 Oct 3 18:32 /usr/local/lib/libopencv_dnn.so.3.3.1
lrwxrwxrwx 1 root root 27 Oct 3 18:46 /usr/local/lib/libopencv_features2d.so -> libopencv_features2d.so.3.3
lrwxrwxrwx 1 root root 29 Oct 3 18:46 /usr/local/lib/libopencv_features2d.so.3.3 -> libopencv_features2d.so.3.3.1
-rw-r--r-- 1 root root 1054496 Oct 3 18:31 /usr/local/lib/libopencv_features2d.so.3.3.1
lrwxrwxrwx 1 root root 22 Oct 3 18:46 /usr/local/lib/libopencv_flann.so -> libopencv_flann.so.3.3
lrwxrwxrwx 1 root root 24 Oct 3 18:46 /usr/local/lib/libopencv_flann.so.3.3 -> libopencv_flann.so.3.3.1
-rw-r--r-- 1 root root 474104 Oct 3 18:26 /usr/local/lib/libopencv_flann.so.3.3.1
lrwxrwxrwx 1 root root 24 Oct 3 18:46 /usr/local/lib/libopencv_highgui.so -> libopencv_highgui.so.3.3
lrwxrwxrwx 1 root root 26 Oct 3 18:46 /usr/local/lib/libopencv_highgui.so.3.3 -> libopencv_highgui.so.3.3.1
-rw-r--r-- 1 root root 110896 Oct 3 18:30 /usr/local/lib/libopencv_highgui.so.3.3.1
lrwxrwxrwx 1 root root 26 Oct 3 18:46 /usr/local/lib/libopencv_imgcodecs.so -> libopencv_imgcodecs.so.3.3
lrwxrwxrwx 1 root root 28 Oct 3 18:46 /usr/local/lib/libopencv_imgcodecs.so.3.3 -> libopencv_imgcodecs.so.3.3.1
-rw-r--r-- 1 root root 4552312 Oct 3 18:29 /usr/local/lib/libopencv_imgcodecs.so.3.3.1
lrwxrwxrwx 1 root root 24 Oct 3 18:46 /usr/local/lib/libopencv_imgproc.so -> libopencv_imgproc.so.3.3
lrwxrwxrwx 1 root root 26 Oct 3 18:46 /usr/local/lib/libopencv_imgproc.so.3.3 -> libopencv_imgproc.so.3.3.1
-rw-r--r-- 1 root root 42177944 Oct 3 18:28 /usr/local/lib/libopencv_imgproc.so.3.3.1
lrwxrwxrwx 1 root root 19 Oct 3 18:46 /usr/local/lib/libopencv_ml.so -> libopencv_ml.so.3.3
lrwxrwxrwx 1 root root 21 Oct 3 18:46 /usr/local/lib/libopencv_ml.so.3.3 -> libopencv_ml.so.3.3.1
-rw-r--r-- 1 root root 952256 Oct 3 18:26 /usr/local/lib/libopencv_ml.so.3.3.1
lrwxrwxrwx 1 root root 26 Oct 3 18:46 /usr/local/lib/libopencv_objdetect.so -> libopencv_objdetect.so.3.3
lrwxrwxrwx 1 root root 28 Oct 3 18:46 /usr/local/lib/libopencv_objdetect.so.3.3 -> libopencv_objdetect.so.3.3.1
-rw-r--r-- 1 root root 4073824 Oct 3 18:29 /usr/local/lib/libopencv_objdetect.so.3.3.1
lrwxrwxrwx 1 root root 22 Oct 3 18:46 /usr/local/lib/libopencv_photo.so -> libopencv_photo.so.3.3
lrwxrwxrwx 1 root root 24 Oct 3 18:46 /usr/local/lib/libopencv_photo.so.3.3 -> libopencv_photo.so.3.3.1
-rw-r--r-- 1 root root 4645016 Oct 3 18:29 /usr/local/lib/libopencv_photo.so.3.3.1
lrwxrwxrwx 1 root root 22 Oct 3 18:46 /usr/local/lib/libopencv_shape.so -> libopencv_shape.so.3.3
lrwxrwxrwx 1 root root 24 Oct 3 18:46 /usr/local/lib/libopencv_shape.so.3.3 -> libopencv_shape.so.3.3.1
-rw-r--r-- 1 root root 297968 Oct 3 18:29 /usr/local/lib/libopencv_shape.so.3.3.1
lrwxrwxrwx 1 root root 26 Oct 3 18:46 /usr/local/lib/libopencv_stitching.so -> libopencv_stitching.so.3.3
lrwxrwxrwx 1 root root 28 Oct 3 18:46 /usr/local/lib/libopencv_stitching.so.3.3 -> libopencv_stitching.so.3.3.1
-rw-r--r-- 1 root root 708632 Oct 3 18:43 /usr/local/lib/libopencv_stitching.so.3.3.1
lrwxrwxrwx 1 root root 25 Oct 3 18:46 /usr/local/lib/libopencv_superres.so -> libopencv_superres.so.3.3
lrwxrwxrwx 1 root root 27 Oct 3 18:46 /usr/local/lib/libopencv_superres.so.3.3 -> libopencv_superres.so.3.3.1
-rw-r--r-- 1 root root 214264 Oct 3 18:30 /usr/local/lib/libopencv_superres.so.3.3.1
lrwxrwxrwx 1 root root 22 Oct 3 18:46 /usr/local/lib/libopencv_video.so -> libopencv_video.so.3.3
lrwxrwxrwx 1 root root 24 Oct 3 18:46 /usr/local/lib/libopencv_video.so.3.3 -> libopencv_video.so.3.3.1
-rw-r--r-- 1 root root 4063816 Oct 3 18:29 /usr/local/lib/libopencv_video.so.3.3.1
lrwxrwxrwx 1 root root 24 Oct 3 18:46 /usr/local/lib/libopencv_videoio.so -> libopencv_videoio.so.3.3
lrwxrwxrwx 1 root root 26 Oct 3 18:46 /usr/local/lib/libopencv_videoio.so.3.3 -> libopencv_videoio.so.3.3.1
-rw-r--r-- 1 root root 254160 Oct 3 18:29 /usr/local/lib/libopencv_videoio.so.3.3.1
lrwxrwxrwx 1 root root 26 Oct 3 18:46 /usr/local/lib/libopencv_videostab.so -> libopencv_videostab.so.3.3
lrwxrwxrwx 1 root root 28 Oct 3 18:46 /usr/local/lib/libopencv_videostab.so.3.3 -> libopencv_videostab.so.3.3.1
-rw-r--r-- 1 root root 411376 Oct 3 18:43 /usr/local/lib/libopencv_videostab.so.3.3.1
# python
Python 2.7.12 (default, Dec 4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2;
>>>
>>> cv2.__version__
'3.3.1'
>>>