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
74 if [ ! -f $installPrefixThird/share/creatools/creatools_third_party_library_config.sh ]
76 echo missing $installPrefixThird/share/creatools/creatools_third_party_library_config.sh
79 echo "==================================================="
82 echo "YOU NEED TO RUN 'Install Third Party Libraries' (1) FIRST !"
83 echo "==================================================="
85 echo "Hit any key to continue"
90 if [ ! -e $generationdir/creatools_source ]
92 echo missing $generationdir/creatools_source
95 echo "==================================================="
98 echo "YOU NEED TO RUN 'Load' (2) FIRST !"
99 echo "==================================================="
106 if [ ! -f $installPrefixThird/share/creatools/creatools_third_party_library_config.sh ]
108 echo missing $installPrefixThird/share/creatools/creatools_third_party_library_config.sh
111 echo "==================================================="
114 echo "YOU NEED TO RUN 'Load' (2) FIRST !"
115 echo "==================================================="
122 if [ -e creatools_bin ]
126 mkdir -p creatools_bin
130 # -------------------------
131 # start_point = 2 : CREA
132 #-------------------------
133 if [ $start_point -le 2 ]
136 # the following stupid test is used at debug time; Please don't remove!
141 bash $scriptDir/cmakemod.sh $creasource $generationdir $installPrefix $buildType
142 bash $scriptDir/creaVariables.sh $creasource $generationdir $docgeneration $TDx
143 bash $scriptDir/compilemod.sh $buildType $creasource $generationdir $corenumber
144 bash $scriptDir/ctestmod.sh $creasource $generationdir
147 creadll=$generationdir/creatools_bin/creaBin
148 if [ $OperatingSystem = "MacOS" ]
150 #duplicate form creaTools_name.sh?? //FCY
151 DYLD_LIBRARY_PATH=$creadll:$DYLD_LIBRARY_$PATH
153 LD_LIBRARY_PATH=$creadll:$LD_LIBRARY_$PATH
155 export crea_DIR=$generationdir/creatools_bin/creaBin
157 # -------------------------
158 # start_point = 3 : BBTK
159 #-------------------------
160 if [ $start_point -le 3 ]
162 # the following stupid test is used at debug time; Please don't remove!
167 echo ========================================================= $bbtksource $generationdir $installPrefix $buildType
168 bash $scriptDir/cmakemod.sh $bbtksource $generationdir $installPrefix $buildType
169 bash $scriptDir/bbtkVariables.sh $bbtksource $generationdir $docgeneration $gdcmVersion $TDx
170 bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber bbtk
171 bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber bbi
172 bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber bbfy
173 bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber bbStudio
174 bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber bbPackageBrowser
175 bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber bbs2cpp
176 bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber bbRegenerateBoxesLists
177 bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber bbRegeneratePackageDoc
178 bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber bbPlugPackage
179 bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber bbpConfigurator
180 bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber bbvtk
181 bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber bbwx
182 bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber
183 bash $scriptDir/ctestmod.sh $bbtksource $generationdir
187 bbtkdll=$generationdir/creatools_bin/bbtkBin
188 if [ $OperatingSystem = "MacOS" ]
190 #duplicate form creaTools_name.sh?? //FCY
191 DYLD_LIBRARY_PATH=$bbtkdll:$DYLD_LIBRARY_PATH
193 LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH
195 export BBTK_DIR=$generationdir/creatools_bin/bbtkBin
197 # -------------------------
198 # start_point = 4 : creaMaracasVisu
199 #-------------------------
200 if [ $start_point -le 4 ]
202 # the following stupid test is used at debug time; Please don't remove!
207 bash $scriptDir/cmakemod.sh $creamaracassource $generationdir $installPrefix $buildType
208 bash $scriptDir/creaMaracasVariables.sh $creamaracassource $generationdir $docgeneration $TDx
209 bash $scriptDir/compilemod.sh $buildType $creamaracassource $generationdir $corenumber
210 bash $scriptDir/ctestmod.sh $creamaracassource $generationdir
213 creamaracasdll=$generationdir/creatools_bin/creaMaracasVisuBin
215 if [ $OperatingSystem = "MacOS" ]
217 #duplicate form creaTools_name.sh?? //FCY
218 DYLD_LIBRARY_PATH=$creamaracasdll:$DYLD_LIBRARY_$PATH
220 LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_$PATH
223 export creaMaracasVisu_DIR=$generationdir/creatools_bin/creaMaracasVisuBin
225 # -------------------------
226 # start_point = 5 : creaEnvironment
227 #-------------------------
228 if [ $start_point -le 5 ]
230 # the following stupid test is used at debug time; Please don't remove!
235 bash $scriptDir/cmakemod.sh $creaenvironmentsource $generationdir $installPrefix $buildType
236 bash $scriptDir/creaenvironmentVariables.sh $creaenvironmentsource $generationdir $docgeneration
237 bash $scriptDir/compilemod.sh $buildType $creaenvironmentsource $generationdir $corenumber
238 bash $scriptDir/ctestmod.sh $creaenvironmentsource $generationdir
241 creaenvironmentdll=$generationdir/creatools_bin/creaenvironmentBin
243 if [ $OperatingSystem = "MacOS" ]
245 #duplicate form creaTools_name.sh?? //FCY
246 DYLD_LIBRARY_PATH=$creaenvironmentdll:$DYLD_LIBRARY_$PATH
248 LD_LIBRARY_PATH=$creaenvironmentdll:$LD_LIBRARY_$PATH
251 export creaEnvironment_DIR=$generationdir/creatools_bin/creaEnvironmentBin
253 # -------------------------
254 # start_point = 6 : creaBruker
255 #-------------------------
256 if [ $start_point -le 6 ]
258 # the following stupid test is used at debug time; Please don't remove!
263 bash $scriptDir/cmakemod.sh $creabrukersource $generationdir $installPrefix $buildType
264 bash $scriptDir/creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration $gdcmVersion
265 bash $scriptDir/compilemod.sh $buildType $creabrukersource $generationdir $corenumber
266 bash $scriptDir/ctestmod.sh $creabrukersource $generationdir
269 creabrukerdll=$generationdir/creatools_bin/creabrukerBin
271 if [ $OperatingSystem = "MacOS" ]
273 #duplicate form creaTools_name.sh?? //FCY
274 DYLD_LIBRARY_PATH=$creabrukerdll:$DYLD_LIBRARY_$PATH
276 LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_$PATH
279 export creaBruker_DIR=$generationdir/creatools_bin/creaBrukerBin
281 # -------------------------
282 # start_point = 7 : creaImageIO
283 #-------------------------
284 if [ $start_point -le 7 ]
286 # the following stupid test is used at debug time; Please don't remove!
291 bash $scriptDir/cmakemod.sh $creaimagesource $generationdir $installPrefix $buildType
292 bash $scriptDir/creaImageIOVariables.sh $creaimagesource $generationdir $docgeneration $gdcmVersion $TDx
293 bash $scriptDir/compilemod.sh $buildType $creaimagesource $generationdir $corenumber
294 bash $scriptDir/ctestmod.sh $creaimagesource $generationdir
297 creaimagedll=$generationdir/creatools_bin/creaimageBin
299 if [ $OperatingSystem = "MacOS" ]
301 #duplicate form creaTools_name.sh?? //FCY
302 DYLD_LIBRARY_PATH=$creaimagedll:$DYLD_LIBRARY_$PATH
304 LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_$PATH
307 export creaImageIO_DIR=$generationdir/creatools_bin/creaImageIOBin
309 # -------------------------
310 # start_point = 8 : creaContour
311 #-------------------------
312 if [ $start_point -le 8 ]
314 # the following stupid test is used at debug time; Please don't remove!
319 bash $scriptDir/cmakemod.sh $creacontourssource $generationdir $installPrefix $buildType
320 bash $scriptDir/creaContoursVariables.sh $creacontourssource $generationdir $docgeneration $TDx
321 bash $scriptDir/compilemod.sh $buildType $creacontourssource $generationdir $corenumber
322 bash $scriptDir/ctestmod.sh $creacontourssource $generationdir
325 creacontourdll=$generationdir/creatools_bin/creacontoursBin
327 if [ $OperatingSystem = "MacOS" ]
329 #duplicate form creaTools_name.sh?? //FCY
330 DYLD_LIBRARY_PATH=$creacontoursdll:$DYLD_LIBRARY_$PATH
332 LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_$PATH
335 export creaContours_DIR=$generationdir/creatools_bin/creaContoursBin
337 # -------------------------
338 # start_point = 9 : creaRigidRegistration
339 #-------------------------
340 if [ $start_point -le 9 ]
342 # the following stupid test is used at debug time; Please don't remove!
346 bash $scriptDir/cmakemod.sh $crearigidregistrationssource $generationdir $installPrefix $buildType
347 bash $scriptDir/creaRigidRegistrationVariables.sh $crearigidregistrationssource $generationdir $docgeneration $TDx
348 bash $scriptDir/compilemod.sh $buildType $crearigidregistrationssource $generationdir $corenumber
349 bash $scriptDir/ctestmod.sh $crearigidregistrationssource $generationdir
352 # crearigidregistrationdll=$generationdir/creatools_bin/crearigidregistrationBin
353 # LD_LIBRARY_PATH=$crearigidregistrationdll:$LD_LIBRARY_PATH
356 # -------------------------
357 # start_point = 10 : bbtkGEditor
358 #-------------------------
359 if [ $start_point -le 10 ]
361 # the following stupid test is used at debug time; Please don't remove!
366 bash $scriptDir/cmakemod.sh $bbtkgeditorsource $generationdir $installPrefix $buildType
367 bash $scriptDir/bbtkGEditorVariables.sh $bbtkgeditorsource $generationdir $docgeneration $TDx
368 bash $scriptDir/compilemod.sh $buildType $bbtkgeditorsource $generationdir $corenumber
369 bash $scriptDir/ctestmod.sh $bbtkgeditorsource $generationdir
372 # bbtkgeditordll=$generationdir/creatools_bin/bbtkgeditorBin
373 # LD_LIBRARY_PATH=$bbtkgeditordll:$LD_LIBRARY_PATH
376 # -------------------------
377 # start_point = 11 : libido
378 #-------------------------
379 #if [ $start_point -le 11 ]
381 ## the following stupid test is used at debug time; Please don't remove!
382 ##if [ true = false ]
386 # bash $scriptDir/cmakemod.sh $libidosource $generationdir $installPrefix $buildType
387 # bash $scriptDir/libidoVariables.sh $libidosource $generationdir $docgeneration
388 # bash $scriptDir/compilemod.sh $buildType $libidosource $generationdir $corenumber
394 # -------------------------
395 # start_point = 12 : creaTools
396 #-------------------------
397 if [ $start_point -le 12 ]
399 # the following stupid test is used at debug time; Please don't remove!
404 bash $scriptDir/cmakemod.sh $creatoolssource $generationdir $installPrefix $buildType
405 bash $scriptDir/creaToolsVariables.sh $creatoolssource $generationdir $docgeneration
406 bash $scriptDir/compilemod.sh $buildType $creatoolssource $generationdir $corenumber
411 # bash ctestmod.sh $creatoolsbinary $generationdir
412 # creatoolsdll=$generationdir/creatools_bin/creatoolsBin
413 # LD_LIBRARY_PATH=$creatoolssdll:$LD_LIBRARY_PATH
416 # -------------------------
417 # start_point = 13 : creaMiniTools
418 #-------------------------
419 if [ $start_point -le 13 ]
421 # the following stupid test is used at debug time; Please don't remove!
426 bash $scriptDir/cmakemod.sh $creaminitoolssource $generationdir $installPrefix $buildType
427 bash $scriptDir/creaMiniToolsVariables.sh $creaminitoolssource $generationdir $docgeneration
428 bash $scriptDir/compilemod.sh $buildType $creaminitoolssource $generationdir $corenumber
433 # -------------------------
434 # start_point = 14 : creaVtk
435 #-------------------------
436 if [ $start_point -le 14 ]
438 # the following stupid test is used at debug time; Please don't remove!
443 bash $scriptDir/cmakemod.sh $creavtksource $generationdir $installPrefix $buildType
444 bash $scriptDir/creaVtkVariables.sh $creavtksource $generationdir $docgeneration $TDx
445 bash $scriptDir/compilemod.sh $buildType $creavtksource $generationdir $corenumber
446 bash $scriptDir/ctestmod.sh $creavtksource $generationdir
449 creavtkdll=$generationdir/creatools_bin/creaVtkBin
451 if [ $OperatingSystem = "MacOS" ]
453 #duplicate form creaTools_name.sh?? //FCY
454 DYLD_LIBRARY_PATH=$creavtkdll:$DYLD_LIBRARY_$PATH
456 LD_LIBRARY_PATH=$creavtkdll:$LD_LIBRARY_$PATH
459 export creaVtk_DIR=$generationdir/creatools_bin/creaVtkBin