2012-07-12 04:50:26 +04:00
|
|
|
|
|
|
|
too_old()
|
|
|
|
{
|
|
|
|
echo "System version too low. Please try 'old linux' build (see README.md)"
|
2012-07-12 05:02:41 +04:00
|
|
|
exit
|
2012-07-12 04:50:26 +04:00
|
|
|
}
|
|
|
|
|
2012-07-12 04:52:47 +04:00
|
|
|
if [ "`cat /etc/issue | grep 'Debian GNU/Linux 6.0'`" ]; then
|
|
|
|
too_old
|
|
|
|
fi
|
|
|
|
if [ "`cat /etc/issue | grep 'Debian GNU/Linux 5'`" ]; then
|
|
|
|
too_old
|
|
|
|
fi
|
2012-07-12 04:50:26 +04:00
|
|
|
if [ "`cat /etc/issue | grep 'Ubunutu 10'`" ]; then
|
|
|
|
too_old
|
|
|
|
fi
|
|
|
|
if [ "`cat /etc/issue | grep 'Ubunutu 9'`" ]; then
|
|
|
|
too_old
|
|
|
|
fi
|
|
|
|
if [ "`cat /etc/issue | grep 'Ubunutu 8'`" ]; then
|
|
|
|
too_old
|
|
|
|
fi
|
|
|
|
if [ "`cat /etc/issue | grep 'Ubunutu 7'`" ]; then
|
|
|
|
too_old
|
|
|
|
fi
|
|
|
|
|
2012-07-11 08:48:49 +04:00
|
|
|
echo "tested on Ubuntu 12. If this fails try 'old linux' build (see README.md)"
|
|
|
|
|
2012-07-12 04:50:26 +04:00
|
|
|
|
2012-07-11 08:48:49 +04:00
|
|
|
if [ "`dpkg --list | grep -i cgal`" ]; then
|
|
|
|
echo "Please make sure you have run apt-get purge on all cgal packages"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "`dpkg --list | grep -i opencsg`" ]; then
|
|
|
|
echo "Please make sure you have run apt-get purge on all opencsg packages"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2012-07-12 04:50:26 +04:00
|
|
|
sudo apt-get install build-essential libqt4-dev libqt4-opengl-dev \
|
|
|
|
libxmu-dev cmake bison flex libeigen2-dev git-core libboost-all-dev \
|
|
|
|
libXi-dev libmpfr-dev libgmp-dev libboost-dev libglew1.6-dev
|
2012-07-11 08:48:49 +04:00
|
|
|
|
|
|
|
echo "now copy/paste the following to install CGAL and OpenCSG from source:"
|
|
|
|
echo "sudo BASEDIR=/usr/local ./scripts/linux-build-dependencies.sh cgal-use-sys-libs"
|
|
|
|
echo "sudo BASEDIR=/usr/local ./scripts/linux-build-dependencies.sh opencsg"
|