Skip to content

Instantly share code, notes, and snippets.

@chreekat
Last active December 30, 2015 20:59
Show Gist options
  • Select an option

  • Save chreekat/7884116 to your computer and use it in GitHub Desktop.

Select an option

Save chreekat/7884116 to your computer and use it in GitHub Desktop.
How to compile BaroboLabHack on Ubuntu 12.04

Date: Monday Dec. 9, 2013

  1. Add repositories holding newer versions of g++ and qt.
sudo add-apt-repository ppa:ubuntu-toolchain-r/test &&
sudo apt-add-repository ppa:ubuntu-sdk-team/ppa &&
sudo aptitude update &&
sudo aptitude safe-upgrade
  1. Install g++-4.7 and qt5
sudo aptitude install g++-4.7 qtdeclarative5-dev
  1. Configure g++-4.7 to be default version
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6 &&
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7 &&
sudo update-alternatives --config gcc
  1. Install other dependencies (apart from g++ and qt)
sudo aptitude install cmake libbluetooth-dev libsqlite3-dev
  1. Clone the code.
git clone https://github.com/Barobo/BaroboLabHack &&
cd BaroboLabHack &&
git submodule init &&
git submodule update --init --recursive
  1. Compile libbarobo (should be automatic)
cd libbarobo &&
mkdir build &&
cd build && cmake .. && make &&
cd ../..
  1. Compile BaroboLabHack
qmake -qt=qt5 &&
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment