#! /bin/bash

if [ "$QTTYPE" = "5" ]; then
    #sudo apt-get install -y qt5-qmake qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev libsqlite3-dev
    #sudo apt-get install -y qt5-default qttools5-dev-tools
    #sudo apt-get install -y qt54tools
    #sudo apt-get install -y qt510-meta-full
    sudo apt-get install -y qt510base \
	 qt510tools \
	 qt510x11extras \
	 qt510svg
    source /opt/qt510/bin/qt510-env.sh
    #export QMAKE=/usr/lib/x86_64-linux-gnu/qt5/bin/qmake
    #export QTDIR=/opt/qt510
    export PATH=${QTDIR}/bin:${PATH}
fi

sudo apt-get purge libboost*1.46*
sudo apt-get install -y libboost1.55-dev
sudo apt-get install -y cmake libloki-dev xvfb g++-4.9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 80 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
#sudo update-alternatives --config gcc
