1 # ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 # This software is governed by the CeCILL-B license under French law and
8 # abiding by the rules of distribution of free software. You can use,
9 # modify and/ or redistribute the software under the terms of the CeCILL-B
10 # license as circulated by CEA, CNRS and INRIA at the following URL
11 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
12 # or in the file LICENSE.txt.
14 # As a counterpart to the access to the source code and rights to copy,
15 # modify and redistribute granted by the license, users are provided only
16 # with a limited warranty and the software's author, the holder of the
17 # economic rights, and the successive licensors have only limited
20 # The fact that you are presently reading this means that you have had
21 # knowledge of the CeCILL-B license and that you accept its terms.
22 # ------------------------------------------------------------------------
27 if [ ! -f $PWD/scripts/CreaTools-configure.sh ]
31 echo "==================================================="
34 echo "YOU NEED TO RUN 'Configure' (0) FIRST !"
35 echo "==================================================="
41 # Set all local variables
43 source $PWD/scripts/CreaTools-configure.sh
44 source $PWD/scripts/CreaTools-names.sh
47 echo $PWD/scripts/CreaTools-configure.sh
48 echo --generationdir--
52 echo --docgeneration--
54 echo --installPrefix--
56 echo --installPrefixThird--
57 echo $installPrefixThird
72 if [ ! -f $installPrefixThird/share/creatools_third_party_library_config.sh ]
74 echo missing $installPrefixThird/share/creatools_third_party_library_config.sh
77 echo "==================================================="
80 echo "YOU NEED TO RUN 'Install Third Party Libraries' (1) FIRST !"
81 echo "==================================================="
83 echo "Hit any key to continue"
88 if [ ! -e $generationdir/creatools_source ]
90 echo missing $generationdir/creatools_source
93 echo "==================================================="
96 echo "YOU NEED TO RUN 'Load' (2) FIRST !"
97 echo "==================================================="
104 if [ ! -f $installPrefixThird/share/creatools_third_party_library_config.sh ]
106 echo missing $installPrefixThird/share/creatools_third_party_library_config.sh
109 echo "==================================================="
112 echo "YOU NEED TO RUN 'Load' (2) FIRST !"
113 echo "==================================================="
120 if [ -e creatools_bin ]
128 # -------------------------
129 # start_point = 2 : CREA
130 #-------------------------
131 if [ $start_point -le 2 ]
134 # the following stupid test is used at debug time; Please don't remove!
138 bash $scriptDir/cmakemod.sh $creasource $generationdir $installPrefix $buildType
139 bash $scriptDir/creaVariables.sh $creasource $generationdir $docgeneration
140 bash $scriptDir/compilemod.sh $buildType $creasource $generationdir $corenumber
141 bash $scriptDir/ctestmod.sh $creasource $generationdir
144 creadll=$generationdir/creatools_bin/creaBin
145 if [ $OperatingSystem = "MacOS" ]
147 #duplicate form creaTools_name.sh?? //FCY
148 DYLD_LIBRARY_PATH=$creadll:$DYLD_LIBRARY_$PATH
150 LD_LIBRARY_PATH=$creadll:$LD_LIBRARY_$PATH
152 export crea_DIR=$generationdir/creatools_bin/creaBin
154 # -------------------------
155 # start_point = 3 : BBTK
156 #-------------------------
157 if [ $start_point -le 3 ]
159 # the following stupid test is used at debug time; Please don't remove!
164 echo ========================================================= $bbtksource $generationdir $installPrefix $buildType
165 bash $scriptDir/cmakemod.sh $bbtksource $generationdir $installPrefix $buildType
166 bash $scriptDir/bbtkVariables.sh $bbtksource $generationdir $docgeneration $gdcmVersion
167 bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber
168 bash $scriptDir/ctestmod.sh $bbtksource $generationdir
172 bbtkdll=$generationdir/creatools_bin/bbtkBin
173 if [ $OperatingSystem = "MacOS" ]
175 #duplicate form creaTools_name.sh?? //FCY
176 DYLD_LIBRARY_PATH=$bbtkdll:$DYLD_LIBRARY_PATH
178 LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH
180 export BBTK_DIR=$generationdir/creatools_bin/bbtkBin
182 # -------------------------
183 # start_point = 4 : creaMaracasVisu
184 #-------------------------
185 if [ $start_point -le 4 ]
187 # the following stupid test is used at debug time; Please don't remove!
192 bash $scriptDir/cmakemod.sh $creamaracassource $generationdir $installPrefix $buildType
193 bash $scriptDir/creaMaracasVariables.sh $creamaracassource $generationdir $docgeneration
194 bash $scriptDir/compilemod.sh $buildType $creamaracassource $generationdir $corenumber
195 bash $scriptDir/ctestmod.sh $creamaracassource $generationdir
198 creamaracasdll=$generationdir/creatools_bin/creaMaracasVisuBin
200 if [ $OperatingSystem = "MacOS" ]
202 #duplicate form creaTools_name.sh?? //FCY
203 DYLD_LIBRARY_PATH=$creamaracasdll:$DYLD_LIBRARY_$PATH
205 LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_$PATH
208 export creaMaracasVisu_DIR=$generationdir/creatools_bin/creaMaracasVisuBin
210 # -------------------------
211 # start_point = 5 : creaEnvironment
212 #-------------------------
213 if [ $start_point -le 5 ]
215 # the following stupid test is used at debug time; Please don't remove!
220 bash $scriptDir/cmakemod.sh $creaenvironmentsource $generationdir $installPrefix $buildType
221 bash $scriptDir/creaenvironmentVariables.sh $creaenvironmentsource $generationdir $docgeneration
222 bash $scriptDir/compilemod.sh $buildType $creaenvironmentsource $generationdir $corenumber
223 bash $scriptDir/ctestmod.sh $creaenvironmentsource $generationdir
226 creaenvironmentdll=$generationdir/creatools_bin/creaenvironmentBin
228 if [ $OperatingSystem = "MacOS" ]
230 #duplicate form creaTools_name.sh?? //FCY
231 DYLD_LIBRARY_PATH=$creaenvironmentdll:$DYLD_LIBRARY_$PATH
233 LD_LIBRARY_PATH=$creaenvironmentdll:$LD_LIBRARY_$PATH
236 export creaEnvironment_DIR=$generationdir/creatools_bin/creaEnvironmentBin
238 # -------------------------
239 # start_point = 6 : creaBruker
240 #-------------------------
241 if [ $start_point -le 6 ]
243 # the following stupid test is used at debug time; Please don't remove!
248 bash $scriptDir/cmakemod.sh $creabrukersource $generationdir $installPrefix $buildType
249 bash $scriptDir/creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration $gdcmVersion
250 bash $scriptDir/compilemod.sh $buildType $creabrukersource $generationdir $corenumber
251 bash $scriptDir/ctestmod.sh $creabrukersource $generationdir
254 creabrukerdll=$generationdir/creatools_bin/creabrukerBin
256 if [ $OperatingSystem = "MacOS" ]
258 #duplicate form creaTools_name.sh?? //FCY
259 DYLD_LIBRARY_PATH=$creabrukerdll:$DYLD_LIBRARY_$PATH
261 LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_$PATH
264 export creaBruker_DIR=$generationdir/creatools_bin/creaBrukerBin
266 # -------------------------
267 # start_point = 7 : creaImageIO
268 #-------------------------
269 if [ $start_point -le 7 ]
271 # the following stupid test is used at debug time; Please don't remove!
276 bash $scriptDir/cmakemod.sh $creaimagesource $generationdir $installPrefix $buildType
277 bash $scriptDir/creaImageIOVariables.sh $creaimagesource $generationdir $docgeneration $gdcmVersion
278 bash $scriptDir/compilemod.sh $buildType $creaimagesource $generationdir $corenumber
279 bash $scriptDir/ctestmod.sh $creaimagesource $generationdir
282 creaimagedll=$generationdir/creatools_bin/creaimageBin
284 if [ $OperatingSystem = "MacOS" ]
286 #duplicate form creaTools_name.sh?? //FCY
287 DYLD_LIBRARY_PATH=$creaimagedll:$DYLD_LIBRARY_$PATH
289 LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_$PATH
292 export creaImageIO_DIR=$generationdir/creatools_bin/creaImageIOBin
294 # -------------------------
295 # start_point = 8 : creaContour
296 #-------------------------
297 if [ $start_point -le 8 ]
299 # the following stupid test is used at debug time; Please don't remove!
304 bash $scriptDir/cmakemod.sh $creacontourssource $generationdir $installPrefix $buildType
305 bash $scriptDir/creaContoursVariables.sh $creacontourssource $generationdir $docgeneration
306 bash $scriptDir/compilemod.sh $buildType $creacontourssource $generationdir $corenumber
307 bash $scriptDir/ctestmod.sh $creacontourssource $generationdir
310 creacontourdll=$generationdir/creatools_bin/creacontoursBin
312 if [ $OperatingSystem = "MacOS" ]
314 #duplicate form creaTools_name.sh?? //FCY
315 DYLD_LIBRARY_PATH=$creacontoursdll:$DYLD_LIBRARY_$PATH
317 LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_$PATH
320 export creaContours_DIR=$generationdir/creatools_bin/creaContoursBin
322 # -------------------------
323 # start_point = 9 : creaRigidRegistration
324 #-------------------------
325 if [ $start_point -le 9 ]
327 # the following stupid test is used at debug time; Please don't remove!
331 bash $scriptDir/cmakemod.sh $crearigidregistrationssource $generationdir $installPrefix $buildType
332 bash $scriptDir/creaRigidRegistrationVariables.sh $crearigidregistrationssource $generationdir $docgeneration
333 bash $scriptDir/compilemod.sh $buildType $crearigidregistrationssource $generationdir $corenumber
334 bash $scriptDir/ctestmod.sh $crearigidregistrationssource $generationdir
337 # crearigidregistrationdll=$generationdir/creatools_bin/crearigidregistrationBin
338 # LD_LIBRARY_PATH=$crearigidregistrationdll:$LD_LIBRARY_PATH
341 # -------------------------
342 # start_point = 10 : bbtkGEditor
343 #-------------------------
344 if [ $start_point -le 10 ]
346 # the following stupid test is used at debug time; Please don't remove!
351 bash $scriptDir/cmakemod.sh $bbtkgeditorsource $generationdir $installPrefix $buildType
352 bash $scriptDir/bbtkGEditorVariables.sh $bbtkgeditorsource $generationdir $docgeneration
353 bash $scriptDir/compilemod.sh $buildType $bbtkgeditorsource $generationdir $corenumber
354 bash $scriptDir/ctestmod.sh $bbtkgeditorsource $generationdir
357 # bbtkgeditordll=$generationdir/creatools_bin/bbtkgeditorBin
358 # LD_LIBRARY_PATH=$bbtkgeditordll:$LD_LIBRARY_PATH
361 # -------------------------
362 # start_point = 11 : libido
363 #-------------------------
364 #if [ $start_point -le 11 ]
366 ## the following stupid test is used at debug time; Please don't remove!
367 ##if [ true = false ]
371 # bash $scriptDir/cmakemod.sh $libidosource $generationdir $installPrefix $buildType
372 # bash $scriptDir/libidoVariables.sh $libidosource $generationdir $docgeneration
373 # bash $scriptDir/compilemod.sh $buildType $libidosource $generationdir $corenumber
379 # -------------------------
380 # start_point = 12 : creaTools
381 #-------------------------
382 if [ $start_point -le 12 ]
384 # the following stupid test is used at debug time; Please don't remove!
389 bash $scriptDir/cmakemod.sh $creatoolssource $generationdir $installPrefix $buildType
390 bash $scriptDir/creaToolsVariables.sh $creatoolssource $generationdir $docgeneration
391 bash $scriptDir/compilemod.sh $buildType $creatoolssource $generationdir $corenumber
396 # bash ctestmod.sh $creatoolsbinary $generationdir
397 # creatoolsdll=$generationdir/creatools_bin/creatoolsBin
398 # LD_LIBRARY_PATH=$creatoolssdll:$LD_LIBRARY_PATH
401 # -------------------------
402 # start_point = 13 : creaMiniTools
403 #-------------------------
404 if [ $start_point -le 13 ]
406 # the following stupid test is used at debug time; Please don't remove!
411 bash $scriptDir/cmakemod.sh $creaminitoolssource $generationdir $installPrefix $buildType
412 bash $scriptDir/creaMiniToolsVariables.sh $creaminitoolssource $generationdir $docgeneration
413 bash $scriptDir/compilemod.sh $buildType $creaminitoolssource $generationdir $corenumber