diff options
author | Marius Kintel <marius@kintel.net> | 2012-07-15 01:58:55 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-07-15 01:58:55 (GMT) |
commit | 1b38030f7e243c4eeb288d07084a99ff1e616e85 (patch) | |
tree | a81f11d55205e0aae12d03f6d5270e4720cd0ad2 /scripts/ubuntu-build-dependencies.sh | |
parent | 13557f1f9a44caccb0546717065ed72c27a210b3 (diff) | |
parent | 2aaccdcfac97f2bf432f88665261f9b582bbb8b3 (diff) |
Merge branch 'master' of github.com:openscad/openscad
Diffstat (limited to 'scripts/ubuntu-build-dependencies.sh')
-rwxr-xr-x | scripts/ubuntu-build-dependencies.sh | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/scripts/ubuntu-build-dependencies.sh b/scripts/ubuntu-build-dependencies.sh new file mode 100755 index 0000000..0609172 --- /dev/null +++ b/scripts/ubuntu-build-dependencies.sh @@ -0,0 +1,46 @@ + +too_old() +{ + echo "System version too low. Please try 'old linux' build (see README.md)" + exit +} + +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 +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 + +echo "tested on Ubuntu 12. If this fails try 'old linux' build (see README.md)" + + +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 + +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 + +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" |