Skip to content

Installation (Manual)

Bart Cox edited this page Jan 29, 2021 · 1 revision

Setup Manually

Cmake (VERSION >= 3.13.0)

sudo apt-get install -y cmake

GCC (VERSION >= 8)

sudo apt-get update
sudo apt-get install -y gcc-8 g++-8
# Make sure to set the priority
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-8 --slave /usr/bin/gcov gcov /usr/bin/gcov-8
sudo update-alternatives --config gcc

OpenCV

sudo apt install -y python3-opencv

Blas

sudo apt-get install -y libopenblas-dev # OpenBLAS

Other

# Other dependencies
sudo apt-get install -y libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev libboost-all-dev protobuf-compiler
sudo apt-get install -y --no-install-recommends libboost-all-dev
sudo apt-get install -y libgflags-dev libgoogle-glog-dev liblmdb-dev
pip3 install protobuf numpy
sudo apt-get install -y python3-dev
sudo apt-get install -y libatlas-base-dev doxygen libyaml-cpp-dev

Compile (Laptop)

Generate protobuf bindings

This step should be run before compiling

protoc caffe/src/caffe/proto/caffe.proto --cpp_out=.
mkdir caffe/include/caffe/proto
mv caffe/src/caffe/proto/caffe.pb.h caffe/include/caffe/proto

EdgeCaffe Library

mkdir build
cd build
cmake ..
make EdgeCaffeCore

PyEdgeCaffe

mkdir build
cd build
cmake ..
make py_edge_caffe

Modelsplitter

mkdir build
cd build
cmake ..
make ModelSplitter

Exp_poisson_arrival_rv_nf

mkdir build
cd build
cmake ..
make Exp_poisson_arrival_rv_nf