if [ $expanded = "YES" ]
then
- echo " Get and Compile gdcm :.. ......1.1"
- echo " Get and Compile itk :.. .......1.2"
- echo " Get and Compile vtk :.. .......1.3"
+ echo " install all base stuff :.. ....1.0"
+ echo " (cmake, doxygen, graphviz, ...)"
+ echo " Get and Compile vtk :.. .......1.1"
+ echo " Get and Compile gdcm :.. ......1.2"
+ echo " Get and Compile itk :.. .......1.3"
+
else
echo " Install Third Party Libraries :....1 (as root)"
fi
echo
echo
fi
+
docgeneration="OFF"
# ------------------
1)
echo "========================== 1 "
source scripts/Check-if-root.sh
+ bash scripts/ThirdParty-install-Base-Stuff.sh
+ bash scripts/ThirdParty-install-VTK.sh
+ bash scripts/ThirdParty-install-gdcm.sh
+ bash scripts/ThirdParty-install-ITK.sh
bash scripts/ThirdParty-install.sh
+ bash scripts/ThirdParty-install-Finalize.sh
if [ "$sourcesFrom" = "CVS" ]
then
read a
kill $PPID
;;
-
+
+ 1.0)
+ echo "========================== 1.0 "
+ source scripts/Check-if-root.sh
+ bash scripts/ThirdParty-install-Base-Stuff.sh
+ bash scripts/ThirdParty-install-Finalize.sh
+ ;;
+
1.1)
echo "========================== 1.1 "
source scripts/Check-if-root.sh
- bash scripts/ThirdParty-install-gdcm.sh
+ bash scripts/ThirdParty-install-VTK.sh
+ bash scripts/ThirdParty-install-Finalize.sh
+ read a
;;
-
+
1.2)
echo "========================== 1.2 "
- echo "sorry, not yet available"
- read a
+ source scripts/Check-if-root.sh
+ bash scripts/ThirdParty-install-gdcm.sh
+ bash scripts/ThirdParty-install-Finalize.sh
;;
-
+
1.3)
echo "========================== 1.3 "
- echo "sorry, not yet available"
+ source scripts/Check-if-root.sh
+ bash scripts/ThirdParty-install-ITK.sh
+ bash scripts/ThirdParty-install-Finalize.sh
read a
-
- ;;
+ ;;
+
2)
#2.1
#!/bin/bash
+
if [ ! -f $PWD/scripts/CreaTools-configure.sh ]
then
echo
exit 0
fi
+source $PWD/scripts/CreaTools-configure.sh
scriptDir=$PWD
sourcesDir=$generationdir/thirdparty_sources
# ///\TODO what about SuSE? Debian? Mandriva? Gentoo?
case "$OperatingSystem" in
Fedora)
- yum install cmake -y
- yum install cmake-gui -y
+ yum install cmake -y
+ yum install cmake-gui -y
yum install doxygen -y
yum install graphviz -y
yum install texlive -y
yum install qt-devel -y
yum install mesa-libOSMesa-devel -y
;;
- Ubuntu)
+ Ubuntu)
apt-get --yes install build-essential # esta linea instala las librerias necesarias para compilar en ubuntu, g++ gcc etc etc etc.
apt-get --yes install cmake
apt-get --yes install cmake-gui
port install cmake -y
port install doxygen -y
port install graphviz -y
- # port install tetex -y (replaced by texlive) # cf EED : http://www.creatis.insa-lyon.fr/site/fr/CreatoolsInstallInstructionsv2.0.1MacOsv10.5.6-Developpers
+ # port install tetex -y (replaced by texlive) # cf EED : http://www.creatis.insa-lyon.fr/site/fr/CreatoolsInstallInstructionsv2.0.1MacOsv10.5.6-Developpers
port install texlive -y
port install latex2html -y
port install wxGTK -y
port install mesa -y
;;
*)
- #echo " '$OperatingSystem' : Unknown (for us...) Operating Sytem "
+ echo " '$OperatingSystem' : Unknown (for us...) Operating Sytem "
echo " Allowed values are (right now) Fedora, Ubuntu, MacOS "
exit 0
;;
- esac
+ esac
fi
echo
echo
exit 0
-fi
+fi
source $PWD/scripts/CreaTools-configure.sh
echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$VTK_DIR >> $installPrefixThird/share/creatools_third_party_library_config.sh
fi
- case "$OperatingSystem" in
- Fedora)
+ case "$OperatingSystem" in
+ Fedora)
export ETC_BASHRC=$HOME/.bashrc
;;
- Ubuntu)
+ Ubuntu)
export ETC_BASHRC=$HOME/.bashrc
;;
- MacOS)
- export ETC_BASHRC=$HOME/.profile
+ MacOS)
+ export ETC_BASHRC=$HOME/.profile
;;
- esac
+ esac
sed -i -e '/.*installPrefixThird*/ d' $ETC_BASHRC
sed -i -e '/.*creatools_third_party_library_config.*/ d' $ETC_BASHRC
#!/bin/bash
+
if [ ! -f $PWD/scripts/CreaTools-configure.sh ]
then
echo
exit 0
fi
+source $PWD/scripts/CreaTools-configure.sh
scriptDir=$PWD
sourcesDir=$generationdir/thirdparty_sources
echo "we remove old stuff"
rm -rf $sourcesDir/InsightToolkit*
-
+
cd $sourcesDir
-
+
if [ $OperatingSystem = "MacOS" ]
- then
+ then
curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/InsightToolkit-3.20.0.tar.gz # MacOS, clever enough to understand it *has* to uncompress, doesn't understand tar -z :-(
tar -xvf InsightToolkit-3.20.0.tar.gz
else
wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/InsightToolkit-3.20.0.tar.gz
fi
-
+
if [ $buildType = "Debug" ]
then
debug="ON"
#!/bin/bash
+
if [ ! -f $PWD/scripts/CreaTools-configure.sh ]
then
echo
echo
echo
exit 0
-fi
+fi
source $PWD/scripts/CreaTools-configure.sh
if [ ! -e $generationdir ]
then
mkdir $generationdir
- chown $loginUserName:$loginGroupName $generationdir
+ chown $loginUserName $generationdir
+ chgrp $loginGroupName $generationdir
+
fi
if [ ! -e $sourcesDir ]
then
mkdir $sourcesDir
+ #was : (pb on MacOS?)
+ #chown $loginUserName:$loginGroupName $sourcesDir
+ chown $loginUserName $sourcesDir
+ chgrp $loginGroupName $sourcesDir
fi
if [ ! -e $binDir ]
then
mkdir $binDir
+ chown $loginUserName $binDir
+ chgrp $loginGroupName $binDir
fi
-
# the following stupid test is used at debug time; Please don't remove!
#if [ true = false ]
if [ true = true ]
rm -rf $binDir/gdcm*
cd $sourcesDir
-
+
if [ $OperatingSystem = "MacOS" ]
- then
+ then
curl http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
- else
+ else
wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
fi
-
+
tar -xvzf gdcm_05_Mai_2011.tar.gz
fi
-
if [ $buildType = "Debug" ]
then
debug="ON"
debug="OFF"
fi
-
# the following stupid test is used at debug time; Please don't remove!
#if [ true = false ]
if [ true = true ]
#!/bin/bash
+ if [ ! -f $PWD/scripts/CreaTools-configure.sh ]
+ then
+ echo
+ echo "..ERROR.."
+ echo "==================================================="
+ echo "REMEMBER !"
+ echo ""
+ echo "YOU NEED TO RUN 'Configure' (0) First !"
+ echo "==================================================="
+ echo
+ echo
+ exit 0
+fi
+
source $PWD/scripts/CreaTools-configure.sh
echo "------"
export ETC_BASHRC=$HOME/.bashrc
fi
-
sed -i -e '/.*installPrefixThird*/ d' $ETC_BASHRC
sed -i -e '/.*creatools_third_party_library_config.*/ d' $ETC_BASHRC
-
# - add line 'bash $installPrefixThird/share/creatools_third_party_library_config.sh' (with accurate value for ???)
echo installPrefixThird=$installPrefixThird >> $ETC_BASHRC
echo '[ -f "$installPrefixThird/share/creatools_third_party_library_config.sh" ] && source $installPrefixThird/share/creatools_third_party_library_config.sh' >> $ETC_BASHRC