Skip to content

Instantly share code, notes, and snippets.

@Munawwar
Last active August 12, 2017 20:12
Show Gist options
  • Save Munawwar/4e6afdb9bd3131420da98cdaa86ea7b0 to your computer and use it in GitHub Desktop.
Save Munawwar/4e6afdb9bd3131420da98cdaa86ea7b0 to your computer and use it in GitHub Desktop.
Buidling Caffe

Install prerequisites - http://caffe.berkeleyvision.org/installation.html#prerequisites

Modify Makefile.config. Add:

INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/

create symlinks:

cd /usr/lib/x86_64-linux-gnu
sudo ln -s libhdf5_serial.so.8.0.2 libhdf5.so
sudo ln -s libhdf5_serial_hl.so.8.0.2 libhdf5_hl.so

In Makefile.config, add opencv libs:

LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5 \
        opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs

and also change to:

BLAS := open

Run make all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment