Skip to content

Instantly share code, notes, and snippets.

@gdevenyi
Created August 27, 2015 00:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdevenyi/df0f1f6c589b2b8f9481 to your computer and use it in GitHub Desktop.
Save gdevenyi/df0f1f6c589b2b8f9481 to your computer and use it in GitHub Desktop.
Script to install brain-view2 on ubuntu 14.04.3
#!/bin/bash
set -e
apt-get update
apt-get install -y build-essential gdebi-core git libcoin80-dev qt4-qmake libqt4-dev libqt4-core libboost-dev autogen pkg-config libtool libpcre++-dev gdb automake
cd ~
wget http://packages.bic.mni.mcgill.ca/minc-toolkit/Debian/minc-toolkit-1.9.10-20150710-Ubuntu_14.04-x86_64.deb
gdebi -n ~/minc-toolkit-1.9.10-20150710-Ubuntu_14.04-x86_64.deb
source /opt/minc-itk4/minc-toolkit-config.sh
#brain-view2 mess
mkdir ~/brain-view-build
cd ~/brain-view-build
#Install Quarter
#Original source of Quarter is dead...
wget https://distfiles.macports.org/Quarter/Quarter-1.0.0.tar.gz
tar -xzf Quarter-1.0.0.tar.gz
cd ~/brain-view-build/Quarter-1.0.0 && ./configure --prefix=/opt/minc-itk4 && make && make install
#Install bicInventor
cd ~/brain-view-build
#Cloning my patched version of bicInventor until pull-request to MNI version is integrated
git clone https://github.com/gdevenyi/bicInventor.git
cd ~/brain-view-build/bicInventor && ./autogen.sh && ./configure --prefix=/opt/minc-itk4 --with-build-path=/opt/minc-itk4 --with-minc2 && make && make install
#Install brain-view2
cd ~/brain-view-build
git clone https://github.com/sghanavati/brain-view2.git
cd ~/brain-view-build/brain-view2 && qmake MINCDIR=/opt/minc-itk4 HDF5DIR=/opt/minc-itk4 INVENTORDIR=/opt/minc-itk4 QUARTERDIR=/opt/minc-itk4 && make && cp brain-view2 /opt/minc-itk4/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment