Skip to content

Install OpenCNN on Ubuntu and Mac OS X

csukuangfj edited this page Nov 26, 2018 · 3 revisions

Introduction

OpenCNN depends on protobuf, glog, and gflags. Before compiling OpenCNN, you have to install these dependencies.

We assume that you have already installed a suitable C++ compiler and CMake. Installation instructions on Ubuntu and Mac OS X are given in the following.

Installation

Install Dependencies on Ubuntu

sudo apt-get install \
libprotobuf-dev \
protobuf-compiler \
libgflags-dev \
libgoogle-glog-dev

Install Dependencies on Mac OS X

brew install gflags
brew install glog
brew install protobuf

Compile OpenCNN from source

git clone https://github.com/csukuangfj/OpenCNN.git
cd OpenCNN
mkdir build
cd build
cmake ..
make -j2