7 echo "sh install_thirdparty_all.sh <nameOfTheGenerationDirectory> <installPrefix> <buildType> <OperatingSystem>"
8 echo "with 'OperatingSystem' in {Fedora, Ubuntu, MacOS}"
10 echo "ex : sh install_thirdparty_all.sh /tmp/gendir ~/Creatis/myInstallDirectory Debug Ubuntu"
26 echo "sh install_thirdparty_all.sh <nameOfTheGenerationDirectory> <installPrefix> <buildType> <OperatingSystem>"
27 echo "with 'OperatingSystem' in {Fedora, Ubuntu, MacOS}"
29 echo "ex : sh install_thirdparty_all.sh /tmp/gendir ~/Creatis/myInstallDirectory Debug Ubuntu"
40 sourcesDir=$generationdir/thirdparty_sources
41 binDir=$generationdir/thirdparty_bin
47 # the following stupid test is used at debug time; Please don't remove!
53 sudo yum install cmake -y
54 sudo yum install cmake-gui -y
55 sudo yum install doxygen -y
56 sudo yum install graphviz -y
57 sudo yum install texlive -y
58 sudo yum install latex2html -y
59 sudo yum install wxGTK-devel wxBase -y
60 sudo yum install boost-devel -y
61 sudo yum install sqlite-devel -y
62 sudo yum install qt-devel -y
63 sudo yum install mesa-libOSMesa-devel -y
66 sudo apt-get --yes install build-essential # esta linea instala las librerias necesarias para compilar en ubuntu, g++ gcc etc etc etc.
67 sudo apt-get --yes install cmake
68 sudo apt-get --yes install cmake-gui
69 sudo apt-get --yes install cmake-curses-gui
70 sudo apt-get --yes install doxygen
71 sudo apt-get --yes install graphviz
72 sudo apt-get --yes install texlive
73 sudo apt-get --yes install latex2html
74 sudo apt-get --yes install libgtk2.0-dev #GTK
75 sudo apt-get --yes install libwxgtk2.8-dev #Wx GTK
76 sudo apt-get --yes install libwxbase2.8-dev #Wx solito
77 sudo apt-get --yes install libboost-dev #Boost
78 sudo apt-get --yes install libboost-all-dev #Boost
79 sudo apt-get --yes install libqt4-dev #QT4
80 sudo apt-get --yes install sqlite
81 sudo apt-get --yes install libosmesa6-dev #Mesa6
82 sudo apt-get --yes install uuid-dev # uuid para la instalacion de itk
83 sudo apt-get --yes install libxaw7-dev # X11
86 echo "MacOS not yet dealt with ..."
90 echo " '$OS' : Unknown (for us...) Operating Sytem "
91 echo " Allowed values are (right now) Fedora, Ubuntu, MacOS "
99 # the following stupid test is used at debug time; Please don't remove!
104 rm -rf $sources/InsightToolkit*
105 rm -rf $sources/gdcm*
107 wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/vtk-5.6.1.tar.gz
108 wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_08_Dic_2009.tar.gz
109 wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/InsightToolkit-3.20.0.tar.gz
110 tar -xvzf vtk-5.6.1.tar.gz
111 tar -xvzf gdcm_08_Dic_2009.tar.gz
112 tar -xvzf InsightToolkit-3.20.0.tar.gz
117 if [ $buildType = "Debug" ]
128 dirInstall=$binDir/$libname-Bin
129 dirInstallVTK=$dirInstall
132 cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
133 ##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
134 cmake -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefix CMakeCache.txt
135 cmake -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF -D BUILD_SHARED_LIBS:BOOL=ON -D VTK_USE_QT:BOOL=ON CMakeCache.txt
144 dirInstall=$binDir/$libname-Bin
147 cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
148 ##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
149 cmake -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefix CMakeCache.txt
150 cmake -D VTK_DIR:PATH=$dirInstallVTK CMakeCache.txt
151 cmake -D GDCM_VTK:BOOL=ON -D GDCM_NAME_SPACE:STRING=gdcm13 CMakeCache.txt
159 libname=InsightToolkit-3.20.0
160 dirInstall=$binDir/$libname-Bin
163 cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
164 ##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
165 cmake -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefix CMakeCache.txt
166 cmake -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF -D BUILD_SHARED_LIBS:BOOL=ON -D ITK_USE_REVIEW:BOOL=ON CMakeCache.txt