X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Linux%2Fscripts%2FCreaTools-compile.sh;h=7797dce4d2902446c791d4942b42df4c5d028352;hb=24003d856ffe0f7d73c987db33e5ca7d26697fd4;hp=af8d8b429b8adc900cdf69a2a2971acd918c3e6c;hpb=05de7503f8808d9bf6930c92424db7f55e17e971;p=creaToolsTools.git diff --git a/Linux/scripts/CreaTools-compile.sh b/Linux/scripts/CreaTools-compile.sh index af8d8b4..7797dce 100644 --- a/Linux/scripts/CreaTools-compile.sh +++ b/Linux/scripts/CreaTools-compile.sh @@ -1,3 +1,27 @@ +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Santé) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# ------------------------------------------------------------------------ + + #!/bin/bash if [ ! -f $PWD/scripts/CreaTools-configure.sh ] @@ -35,6 +59,8 @@ fi echo $buildType echo --gdcmVersion-- echo $gdcmVersion + echo "--ETC_BASHRC--" + echo $ETC_BASHRC echo --sourcesFrom-- echo $sourcesFrom echo --scriptDir-- @@ -43,9 +69,9 @@ fi echo $start_point echo "------" -if [ ! -f $installPrefixThird/share/creatools_third_party_library_config.sh ] +if [ ! -f $installPrefixThird/share/creatools/creatools_third_party_library_config.sh ] then - echo missing $installPrefixThird/share/creatools_third_party_library_config.sh + echo missing $installPrefixThird/share/creatools/creatools_third_party_library_config.sh echo echo "..ERROR.." echo "===================================================" @@ -75,9 +101,9 @@ fi fi -if [ ! -f $installPrefixThird/share/creatools_third_party_library_config.sh ] +if [ ! -f $installPrefixThird/share/creatools/creatools_third_party_library_config.sh ] then - echo missing $installPrefixThird/share/creatools_third_party_library_config.sh + echo missing $installPrefixThird/share/creatools/creatools_third_party_library_config.sh echo echo "..ERROR.." echo "===================================================" @@ -95,7 +121,7 @@ fi then rm -rf creatools_bin fi - mkdir creatools_bin + mkdir -p creatools_bin cd $scriptDir @@ -107,21 +133,22 @@ then # CREA # the following stupid test is used at debug time; Please don't remove! #if [ true = false ] -if [ true = true ] -then - bash $scriptDir/cmakemod.sh $creasource $generationdir $installPrefix $buildType - bash $scriptDir/creaVariables.sh $creasource $generationdir $docgeneration - bash $scriptDir/compilemod.sh $buildType $creasource $generationdir $corenumber - bash $scriptDir/ctestmod.sh $creasource $generationdir + if [ true = true ] + then + bash $scriptDir/cmakemod.sh $creasource $generationdir $installPrefix $buildType + bash $scriptDir/creaVariables.sh $creasource $generationdir $docgeneration + bash $scriptDir/compilemod.sh $buildType $creasource $generationdir $corenumber + bash $scriptDir/ctestmod.sh $creasource $generationdir + fi fi +creadll=$generationdir/creatools_bin/creaBin +if [ $OperatingSystem = "MacOS" ] +then + #duplicate form creaTools_name.sh?? //FCY + DYLD_LIBRARY_PATH=$creadll:$DYLD_LIBRARY_$PATH +else + LD_LIBRARY_PATH=$creadll:$LD_LIBRARY_$PATH fi - creadll=$generationdir/creatools_bin/creaBin - if [ $OperatingSystem = "MacOS" ] - then - DYLD_LIBRARY_PATH=$creadll:DYLD_LIBRARY_$PATH - else - LD_LIBRARY_PATH=$creadll:LD_LIBRARY_$PATH - fi export crea_DIR=$generationdir/creatools_bin/creaBin # ------------------------- @@ -129,22 +156,24 @@ fi #------------------------- if [ $start_point -le 3 ] then -# the following stupid test is used at debug time; Please don't remove! -#if [ true = false ] -if [ true = true ] -then -# BBTK -echo ========================================================= $bbtksource $generationdir $installPrefix $buildType - bash $scriptDir/cmakemod.sh $bbtksource $generationdir $installPrefix $buildType - bash $scriptDir/bbtkVariables.sh $bbtksource $generationdir $docgeneration $gdcmVersion - bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber - bash $scriptDir/ctestmod.sh $bbtksource $generationdir -fi + # the following stupid test is used at debug time; Please don't remove! + #if [ true = false ] + if [ true = true ] + then + # BBTK + echo ========================================================= $bbtksource $generationdir $installPrefix $buildType + bash $scriptDir/cmakemod.sh $bbtksource $generationdir $installPrefix $buildType + bash $scriptDir/bbtkVariables.sh $bbtksource $generationdir $docgeneration $gdcmVersion + bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber + bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber + bash $scriptDir/ctestmod.sh $bbtksource $generationdir + fi fi bbtkdll=$generationdir/creatools_bin/bbtkBin if [ $OperatingSystem = "MacOS" ] then + #duplicate form creaTools_name.sh?? //FCY DYLD_LIBRARY_PATH=$bbtkdll:$DYLD_LIBRARY_PATH else LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH @@ -156,24 +185,25 @@ export BBTK_DIR=$generationdir/creatools_bin/bbtkBin #------------------------- if [ $start_point -le 4 ] then -# the following stupid test is used at debug time; Please don't remove! -#if [ true = false ] -if [ true = true ] -then -# creaMaracasVisu - bash $scriptDir/cmakemod.sh $creamaracassource $generationdir $installPrefix $buildType - bash $scriptDir/creaMaracasVariables.sh $creamaracassource $generationdir $docgeneration - bash $scriptDir/compilemod.sh $buildType $creamaracassource $generationdir $corenumber - bash $scriptDir/ctestmod.sh $creamaracassource $generationdir -fi + # the following stupid test is used at debug time; Please don't remove! + #if [ true = false ] + if [ true = true ] + then + # creaMaracasVisu + bash $scriptDir/cmakemod.sh $creamaracassource $generationdir $installPrefix $buildType + bash $scriptDir/creaMaracasVariables.sh $creamaracassource $generationdir $docgeneration + bash $scriptDir/compilemod.sh $buildType $creamaracassource $generationdir $corenumber + bash $scriptDir/ctestmod.sh $creamaracassource $generationdir + fi fi creamaracasdll=$generationdir/creatools_bin/creaMaracasVisuBin if [ $OperatingSystem = "MacOS" ] then - DYLD_LIBRARY_PATH=$creamaracasdll:DYLD_LIBRARY_$PATH + #duplicate form creaTools_name.sh?? //FCY + DYLD_LIBRARY_PATH=$creamaracasdll:$DYLD_LIBRARY_$PATH else - LD_LIBRARY_PATH=$creamaracasdll:LD_LIBRARY_$PATH + LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_$PATH fi export creaMaracasVisu_DIR=$generationdir/creatools_bin/creaMaracasVisuBin @@ -183,24 +213,25 @@ fi #------------------------- if [ $start_point -le 5 ] then -# the following stupid test is used at debug time; Please don't remove! -#if [ true = false ] -if [ true = true ] -then -# creaEnvironment - bash $scriptDir/cmakemod.sh $creaenvironmentsource $generationdir $installPrefix $buildType - bash $scriptDir/creaenvironmentVariables.sh $creaenvironmentsource $generationdir $docgeneration - bash $scriptDir/compilemod.sh $buildType $creaenvironmentsource $generationdir $corenumber - bash $scriptDir/ctestmod.sh $creaenvironmentsource $generationdir -fi + # the following stupid test is used at debug time; Please don't remove! + #if [ true = false ] + if [ true = true ] + then + # creaEnvironment + bash $scriptDir/cmakemod.sh $creaenvironmentsource $generationdir $installPrefix $buildType + bash $scriptDir/creaenvironmentVariables.sh $creaenvironmentsource $generationdir $docgeneration + bash $scriptDir/compilemod.sh $buildType $creaenvironmentsource $generationdir $corenumber + bash $scriptDir/ctestmod.sh $creaenvironmentsource $generationdir + fi fi - creaenvironmentdll=$generationdir/creatools_bin/creaenvironmentBin +creaenvironmentdll=$generationdir/creatools_bin/creaenvironmentBin if [ $OperatingSystem = "MacOS" ] then - DYLD_LIBRARY_PATH=$creaenvironmentdll:DYLD_LIBRARY_$PATH + #duplicate form creaTools_name.sh?? //FCY + DYLD_LIBRARY_PATH=$creaenvironmentdll:$DYLD_LIBRARY_$PATH else - LD_LIBRARY_PATH=$creaenvironmentdll:LD_LIBRARY_$PATH + LD_LIBRARY_PATH=$creaenvironmentdll:$LD_LIBRARY_$PATH fi export creaEnvironment_DIR=$generationdir/creatools_bin/creaEnvironmentBin @@ -210,24 +241,25 @@ fi #------------------------- if [ $start_point -le 6 ] then -# the following stupid test is used at debug time; Please don't remove! -#if [ true = false ] -if [ true = true ] -then -# creaBruker - bash $scriptDir/cmakemod.sh $creabrukersource $generationdir $installPrefix $buildType - bash $scriptDir/creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration $gdcmVersion - bash $scriptDir/compilemod.sh $buildType $creabrukersource $generationdir $corenumber - bash $scriptDir/ctestmod.sh $creabrukersource $generationdir -fi + # the following stupid test is used at debug time; Please don't remove! + #if [ true = false ] + if [ true = true ] + then + # creaBruker + bash $scriptDir/cmakemod.sh $creabrukersource $generationdir $installPrefix $buildType + bash $scriptDir/creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration $gdcmVersion + bash $scriptDir/compilemod.sh $buildType $creabrukersource $generationdir $corenumber + bash $scriptDir/ctestmod.sh $creabrukersource $generationdir + fi fi - creabrukerdll=$generationdir/creatools_bin/creabrukerBin +creabrukerdll=$generationdir/creatools_bin/creabrukerBin if [ $OperatingSystem = "MacOS" ] then - DYLD_LIBRARY_PATH=$creabrukerdll:DYLD_LIBRARY_$PATH + #duplicate form creaTools_name.sh?? //FCY + DYLD_LIBRARY_PATH=$creabrukerdll:$DYLD_LIBRARY_$PATH else - LD_LIBRARY_PATH=$creabrukerdll:LD_LIBRARY_$PATH + LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_$PATH fi export creaBruker_DIR=$generationdir/creatools_bin/creaBrukerBin @@ -237,24 +269,25 @@ fi #------------------------- if [ $start_point -le 7 ] then - # the following stupid test is used at debug time; Please don't remove! -#if [ true = false ] -if [ true = true ] -then -# creaImageIO - bash $scriptDir/cmakemod.sh $creaimagesource $generationdir $installPrefix $buildType - bash $scriptDir/creaImageIOVariables.sh $creaimagesource $generationdir $docgeneration $gdcmVersion - bash $scriptDir/compilemod.sh $buildType $creaimagesource $generationdir $corenumber - bash $scriptDir/ctestmod.sh $creaimagesource $generationdir + # the following stupid test is used at debug time; Please don't remove! + #if [ true = false ] + if [ true = true ] + then + # creaImageIO + bash $scriptDir/cmakemod.sh $creaimagesource $generationdir $installPrefix $buildType + bash $scriptDir/creaImageIOVariables.sh $creaimagesource $generationdir $docgeneration $gdcmVersion + bash $scriptDir/compilemod.sh $buildType $creaimagesource $generationdir $corenumber + bash $scriptDir/ctestmod.sh $creaimagesource $generationdir + fi fi -fi - creaimagedll=$generationdir/creatools_bin/creaimageBin +creaimagedll=$generationdir/creatools_bin/creaimageBin if [ $OperatingSystem = "MacOS" ] then - DYLD_LIBRARY_PATH=$creaimagedll:DYLD_LIBRARY_$PATH + #duplicate form creaTools_name.sh?? //FCY + DYLD_LIBRARY_PATH=$creaimagedll:$DYLD_LIBRARY_$PATH else - LD_LIBRARY_PATH=$creaimagedll:LD_LIBRARY_$PATH + LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_$PATH fi export creaImageIO_DIR=$generationdir/creatools_bin/creaImageIOBin @@ -264,24 +297,25 @@ export creaImageIO_DIR=$generationdir/creatools_bin/creaImageIOBin #------------------------- if [ $start_point -le 8 ] then -# the following stupid test is used at debug time; Please don't remove! -#if [ true = false ] -if [ true = true ] -then -# creaContours - bash $scriptDir/cmakemod.sh $creacontourssource $generationdir $installPrefix $buildType - bash $scriptDir/creaContoursVariables.sh $creacontourssource $generationdir $docgeneration - bash $scriptDir/compilemod.sh $buildType $creacontourssource $generationdir $corenumber - bash $scriptDir/ctestmod.sh $creacontourssource $generationdir -fi + # the following stupid test is used at debug time; Please don't remove! + #if [ true = false ] + if [ true = true ] + then + # creaContours + bash $scriptDir/cmakemod.sh $creacontourssource $generationdir $installPrefix $buildType + bash $scriptDir/creaContoursVariables.sh $creacontourssource $generationdir $docgeneration + bash $scriptDir/compilemod.sh $buildType $creacontourssource $generationdir $corenumber + bash $scriptDir/ctestmod.sh $creacontourssource $generationdir + fi fi creacontourdll=$generationdir/creatools_bin/creacontoursBin if [ $OperatingSystem = "MacOS" ] then - DYLD_LIBRARY_PATH=$creacontoursdll:DYLD_LIBRARY_$PATH + #duplicate form creaTools_name.sh?? //FCY + DYLD_LIBRARY_PATH=$creacontoursdll:$DYLD_LIBRARY_$PATH else - LD_LIBRARY_PATH=$creacontoursdll:LD_LIBRARY_$PATH + LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_$PATH fi export creaContours_DIR=$generationdir/creatools_bin/creaContoursBin @@ -291,15 +325,15 @@ fi #------------------------- if [ $start_point -le 9 ] then -# the following stupid test is used at debug time; Please don't remove! -#if [ true = false ] -if [ true = true ] -then - bash $scriptDir/cmakemod.sh $crearigidregistrationssource $generationdir $installPrefix $buildType - bash $scriptDir/creaRigidRegistrationVariables.sh $crearigidregistrationssource $generationdir $docgeneration - bash $scriptDir/compilemod.sh $buildType $crearigidregistrationssource $generationdir $corenumber - bash $scriptDir/ctestmod.sh $crearigidregistrationssource $generationdir -fi + # the following stupid test is used at debug time; Please don't remove! + #if [ true = false ] + if [ true = true ] + then + bash $scriptDir/cmakemod.sh $crearigidregistrationssource $generationdir $installPrefix $buildType + bash $scriptDir/creaRigidRegistrationVariables.sh $crearigidregistrationssource $generationdir $docgeneration + bash $scriptDir/compilemod.sh $buildType $crearigidregistrationssource $generationdir $corenumber + bash $scriptDir/ctestmod.sh $crearigidregistrationssource $generationdir + fi fi # crearigidregistrationdll=$generationdir/creatools_bin/crearigidregistrationBin # LD_LIBRARY_PATH=$crearigidregistrationdll:$LD_LIBRARY_PATH @@ -310,37 +344,35 @@ fi #------------------------- if [ $start_point -le 10 ] then -# the following stupid test is used at debug time; Please don't remove! -#if [ true = false ] -if [ true = true ] -then -# bbtkGEditor - bash $scriptDir/cmakemod.sh $bbtkgeditorsource $generationdir $installPrefix $buildType - bash $scriptDir/bbtkGEditorVariables.sh $bbtkgeditorsource $generationdir $docgeneration - bash $scriptDir/compilemod.sh $buildType $bbtkgeditorsource $generationdir $corenumber - bash $scriptDir/ctestmod.sh $bbtkgeditorsource $generationdir -fi + # the following stupid test is used at debug time; Please don't remove! + #if [ true = false ] + if [ true = true ] + then + # bbtkGEditor + bash $scriptDir/cmakemod.sh $bbtkgeditorsource $generationdir $installPrefix $buildType + bash $scriptDir/bbtkGEditorVariables.sh $bbtkgeditorsource $generationdir $docgeneration + bash $scriptDir/compilemod.sh $buildType $bbtkgeditorsource $generationdir $corenumber + bash $scriptDir/ctestmod.sh $bbtkgeditorsource $generationdir + fi fi # bbtkgeditordll=$generationdir/creatools_bin/bbtkgeditorBin # LD_LIBRARY_PATH=$bbtkgeditordll:$LD_LIBRARY_PATH - - # ------------------------- # start_point = 11 : libido #------------------------- #if [ $start_point -le 11 ] #then -## the following stupid test is used at debug time; Please don't remove! -##if [ true = false ] -#if [ true = true ] -#then -## creaTools -# bash $scriptDir/cmakemod.sh $libidosource $generationdir $installPrefix $buildType -# bash $scriptDir/libidoVariables.sh $libidosource $generationdir $docgeneration -# bash $scriptDir/compilemod.sh $buildType $libidosource $generationdir $corenumber -#fi + ## the following stupid test is used at debug time; Please don't remove! + ##if [ true = false ] + #if [ true = true ] + #then + ## creaTools + # bash $scriptDir/cmakemod.sh $libidosource $generationdir $installPrefix $buildType + # bash $scriptDir/libidoVariables.sh $libidosource $generationdir $docgeneration + # bash $scriptDir/compilemod.sh $buildType $libidosource $generationdir $corenumber + #fi #fi @@ -350,15 +382,15 @@ fi #------------------------- if [ $start_point -le 12 ] then -# the following stupid test is used at debug time; Please don't remove! -#if [ true = false ] -if [ true = true ] -then -# creaTools - bash $scriptDir/cmakemod.sh $creatoolssource $generationdir $installPrefix $buildType - bash $scriptDir/creaToolsVariables.sh $creatoolssource $generationdir $docgeneration - bash $scriptDir/compilemod.sh $buildType $creatoolssource $generationdir $corenumber -fi + # the following stupid test is used at debug time; Please don't remove! + #if [ true = false ] + if [ true = true ] + then + # creaTools + bash $scriptDir/cmakemod.sh $creatoolssource $generationdir $installPrefix $buildType + bash $scriptDir/creaToolsVariables.sh $creatoolssource $generationdir $docgeneration + bash $scriptDir/compilemod.sh $buildType $creatoolssource $generationdir $corenumber + fi fi @@ -372,16 +404,47 @@ fi #------------------------- if [ $start_point -le 13 ] then -# the following stupid test is used at debug time; Please don't remove! -#if [ true = false ] -if [ true = true ] -then -# creaMiniTools - bash $scriptDir/cmakemod.sh $creaminitoolssource $generationdir $installPrefix $buildType - bash $scriptDir/creaMiniToolsVariables.sh $creaminitoolssource $generationdir $docgeneration - bash $scriptDir/compilemod.sh $buildType $creaminitoolssource $generationdir $corenumber + # the following stupid test is used at debug time; Please don't remove! + #if [ true = false ] + if [ true = true ] + then + # creaMiniTools + bash $scriptDir/cmakemod.sh $creaminitoolssource $generationdir $installPrefix $buildType + bash $scriptDir/creaMiniToolsVariables.sh $creaminitoolssource $generationdir $docgeneration + bash $scriptDir/compilemod.sh $buildType $creaminitoolssource $generationdir $corenumber + fi fi + + +# ------------------------- +# start_point = 14 : creaVtk +#------------------------- +if [ $start_point -le 14 ] +then + # the following stupid test is used at debug time; Please don't remove! + #if [ true = false ] + if [ true = true ] + then + # creaVtk + bash $scriptDir/cmakemod.sh $creavtksource $generationdir $installPrefix $buildType + bash $scriptDir/creaVtkVariables.sh $creavtksource $generationdir $docgeneration + bash $scriptDir/compilemod.sh $buildType $creavtksource $generationdir $corenumber + bash $scriptDir/ctestmod.sh $creavtksource $generationdir + fi fi + creavtkdll=$generationdir/creatools_bin/creaVtkBin + +if [ $OperatingSystem = "MacOS" ] +then + #duplicate form creaTools_name.sh?? //FCY + DYLD_LIBRARY_PATH=$creavtkdll:$DYLD_LIBRARY_$PATH +else + LD_LIBRARY_PATH=$creavtkdll:$LD_LIBRARY_$PATH +fi + + export creaVtk_DIR=$generationdir/creatools_bin/creaVtkBin + + # shutdown /s