-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdsistudio_mrtrix3_install.sh
executable file
·71 lines (58 loc) · 1.58 KB
/
dsistudio_mrtrix3_install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
# Script to install DSI Studio and MRtrix3
# Written by Ghanghoon "Will" Paik (gip5038@psu.edu)
# Jan 17 2019
# This script installs:
# Boost 1.69.0
# DSI-Studio
# MRtrix3
# Requires:
# qt5-qtbase-devel
# qt5-qtsvg-devel
# etc...
BASE=$PWD
source /opt/rh/devtoolset-7/enable
mkdir ${BASE}/sw
cd ${BASE}/sw
mkdir ${BASE}/sw/boost_1.69.0
mkdir src
cd src
# INSTALL BOOST
wget -nc https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.gz
tar -xf boost_1_69_0.tar.gz
cd boost_1_69_0
./bootstrap.sh
./b2 --prefix=${BASE}/sw/boost_1.69.0 install
export PATH=$PATH:${BASE}/sw/boost_1.69.0/include
export CPATH=$CPATH:${BASE}/sw/boost_1.69.0/include
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${BASE}/sw/boost_1.69.0/lib
cd ${BASE}/sw
# INSTALL MRtrix3
git clone https://github.com/MRtrix3/mrtrix3.git
cd mrtrix3
sed -i -e "s/moc = 'moc'/moc = 'moc-qt5'/g" configure
sed -i -e "s/qmake = 'qmake'/qmake = 'qmake-qt5'/g" configure
sed -i -e "s/rcc = 'rcc'/rcc = 'rcc-qt5'/g" configure
./configure
./build
cd ${BASE}/sw
mkdir dsistudio
cd dsistudio
# INSTALL DSI Studio
git clone -b master https://github.com/frankyeh/DSI-Studio.git src
wget -nc https://github.com/frankyeh/TIPL/zipball/master
unzip master
mv frankyeh-TIPL-* tipl
mv tipl src
mkdir build
cd build
qmake-qt5 ../src/ && make
cd ..
wget -nc https://www.dropbox.com/s/ew3rv0jrqqny2dq/dsi_studio_64.zip?dl=1
mv dsi_studio_64.zip?dl=1 dsi_studio_64.zip
unzip dsi_studio_64.zip
cd dsi_studio_64
find . -name '*.dll' -exec rm {} \;
rmdir iconengines imageformats platforms printsupport
rm dsi_studio.exe
cp ../build/dsi_studio .