Skip to content

Instantly share code, notes, and snippets.

@wadtech
Forked from hfeeki/build_openbr.sh
Last active March 15, 2016 14:13
Show Gist options
  • Save wadtech/9dd895c1ca6b10997cd8 to your computer and use it in GitHub Desktop.
Save wadtech/9dd895c1ca6b10997cd8 to your computer and use it in GitHub Desktop.
Build openbr in ubuntu
# Install GCC 4.7.3
sudo apt-add-repository ppa:ubuntu-sdk-team/ppa
sudo apt-get update
sudo apt-get install -y build-essential
# Install CMake 2.8.10.1
sudo apt-get install -y cmake cmake-curses-gui
wget ftp://ftp.lyx.org/pub/linux/distributions/0linux/archives_sources/opencv/opencv-2.4.5.tar.gz
tar -xf opencv-2.4.5.tar.gz
cd opencv-2.4.5
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j4
sudo make install
cd ../..
# rm -rf opencv-2.4.5*
sudo apt-get install qt5-default libqt5svg5-dev qtcreator
git clone https://github.com/biometrics/openbr.git
cd openbr
git submodule init
git submodule update
mkdir build # from the OpenBR root directory
cd build
cmake -DCMAKE_PREFIX_PATH=~/Qt5.1.1/5.1.1/clang_64 -DCMAKE_BUILD_TYPE=Release ..
make -j4
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment