X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Linux%2Fscripts%2FThirdParty-install.sh;h=2f4fdaf100511aea6d2ee18279b0b49e773c2196;hb=f2dbd1d0f0524ecfe81a3e2ca1496450375d21ff;hp=1b893870c7f5302b7971125a0f6df7b5964957a6;hpb=e49f38a7929dd87c7c7d829b8e008bc1a26e9363;p=creaToolsTools.git diff --git a/Linux/scripts/ThirdParty-install.sh b/Linux/scripts/ThirdParty-install.sh index 1b89387..2f4fdaf 100644 --- a/Linux/scripts/ThirdParty-install.sh +++ b/Linux/scripts/ThirdParty-install.sh @@ -19,6 +19,8 @@ source $PWD/scripts/CreaTools-configure.sh echo $PWD/scripts/CreaTools-configure.sh echo --generationdir-- echo $generationdir + echo --corenumber-- + echo $corenumber echo --docgeneration-- echo $docgeneration echo --installPrefix-- @@ -50,11 +52,13 @@ fi if [ ! -e $sourcesDir ] then mkdir $sourcesDir + chown $loginUserName:$loginGroupName $sourcesDir fi if [ ! -e $binDir ] then mkdir $binDir + chown $loginUserName:$loginGroupName $binDir fi @@ -138,12 +142,12 @@ then rm -rf $binDir/VTK* cd $sourcesDir wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/VTK-5.6.1.patchCreatis.tar.gz - wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_08_Dic_2009.tar.gz + wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/InsightToolkit-3.20.0.tar.gz wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_Developer_Tools/All_Versions/tth/tth_linux/tth tar -xvzf VTK-5.6.1.patchCreatis.tar.gz - tar -xvzf gdcm_08_Dic_2009.tar.gz + tar -xvzf gdcm_05_Mai_2011.tar.gz tar -xvzf InsightToolkit-3.20.0.tar.gz fi @@ -171,7 +175,7 @@ then ##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/ cmake -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefixThird CMakeCache.txt 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 - make -j 2 + make -j $corenumber make install cd .. fi @@ -209,6 +213,8 @@ then ##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/ cmake -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefixThird CMakeCache.txt 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 + #uncomment following line if you want to use the bleeding edge of GDCM2! + #cmake -D ITK_USE_SYSTEM_GDCM:BOOL=ON CMakeCache.txt cmake CMakeCache.txt make -j 2 make install @@ -266,3 +272,8 @@ export ETC_BASHRC=$HOME/.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 + + + + chown -R $loginUserName:$loginGroupName $generationdir +