From: Eduardo Davila Date: Wed, 6 Oct 2010 16:58:32 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: CREATOOLS.2-0-3~18 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=408ce0d93a1f7cf4e06d77e4dcc122e4a4965cc6;p=creaToolsTools.git *** empty log message *** --- diff --git a/Install/Readme.txt b/Install/Readme.txt new file mode 100644 index 0000000..1d9c416 --- /dev/null +++ b/Install/Readme.txt @@ -0,0 +1,66 @@ +Automatic compilation for all the Creatools + +--> WINDOWS USERS : +Change your CVS user in the file All.bat + +--> LINUX USERS : +Change your CVS user in the file cvscheckout.sh +Change the entry 'VTK_DIR:PATH=' of cmakemod.sh, acording to your own computer +Use ssh-add and give your pass-phrase (for cvs checkout) +Run the script as : +sh All.sh + ex : sh All.sh /tmp/gendir OFF jpr /usr/local/lib/vtk-5.4 /home/jpr/myInsallDirectory + +sh All.sh name_of_the_directory_to_generate ON +(ON : to generate documentation) + + +Requirements + +Donwload and install crea_Developers_tools, crea_ThirdParty_dlls, crea_ThirdParty_Libraries and VisualStudioExpress2008 +from http://www.creatis.insa-lyon.fr/site/fr/CreatoolsDownload + +Copy all the .bat files into one directoy where the tests are going to be run +execute All.bat + +Not forget to run your ssh key with puttyAgent + +All the creatools projects are downloaded from the CVS, compiled and the CTest for the dashboard is run. + + + + +=============Install cmake ========================= + +Install + visualStudio + Putty + Graphviz + doxygen + TortoiseCVS + NSIS + cmake (outside of "Programs Files") + crea_ThirdParty_Libraries (outside of "Programs Files") + +outside of "Programs Files" +To avoid the probleme of: Read only + + +=============Test dashboard in local with: Windows, php, mysql + + +0) +Install EasyPhp outside of "Programs Files" directory +avoid Read Only conflicts + +1) +Download with svn CDASH +https://www.kitware.com/svn/CDash/Release-1-6-4 +y put it in www of your "/EasyPHP" instalation + +2) modify php.ini confiuration +In EasyPHP=5.3.3/conf_files + php.ini + uncomment : + extension=php_xsl.dll + extension=php_curl.dll diff --git a/Install/creatools.bat_TEMPLATE b/Install/creatools.bat_TEMPLATE new file mode 100644 index 0000000..e0e802e --- /dev/null +++ b/Install/creatools.bat_TEMPLATE @@ -0,0 +1,10 @@ +cd scrips + +set buildType=Release +set docGeneration=OFF +set cvsUser=davila + +All.bat %buildType% %docGeneration% %cvsUser% + +cd .. + diff --git a/Install/creatools.sh b/Install/creatools.sh new file mode 100644 index 0000000..92a7d45 --- /dev/null +++ b/Install/creatools.sh @@ -0,0 +1,13 @@ +creatoolsGeneration=~/Creatis/All2 +docGeneration=OFF +cvsUser=davila +vtkDir=/usr/lib64/vtk-5.4/ +instalPrefix=/usr/local +buildType=Release + +sudo pwd +cd scripts +echo sh All.sh $creatoolsGeneration $docGeneratin $cvsUser $vtkDir $installPrefix $buildType +sh All.sh $creatoolsGeneration $docGeneration $cvsUser $vtkDir $installPrefix $buildType +cd .. + diff --git a/Install/creatools.sh_TEMPLATE b/Install/creatools.sh_TEMPLATE new file mode 100644 index 0000000..a7cebb4 --- /dev/null +++ b/Install/creatools.sh_TEMPLATE @@ -0,0 +1,12 @@ +creatoolsGeneration=~/Creatis/All2 +docGeneration= +cvsUser= +vtkDir=/usr/lib64/vtk-5.4/ +instalPrefix=/usr/local +buildType= + +sudo pwd +cd scripts +sh All.sh $creatoolsGeneration $docGeneration $cvsUser $~ $installPrefix $buildType +cd .. + diff --git a/Install/scripts/All.bat b/Install/scripts/All.bat new file mode 100644 index 0000000..96e1985 --- /dev/null +++ b/Install/scripts/All.bat @@ -0,0 +1,139 @@ +rem %1 = buildtype +rem %2 = docgeneration +rem %3 = cvsUser + +rem @echo off +set buildtype=%1 +set docgeneration=%2 +set cvsUser=%3 + +set creasourcefolder=crea +set bbtksourcefolder=bbtk +set creamaracassourcefolder=creaMaracasVisu +set creaenvironmentsource=creaEnvironment +set creabrukersource=creaBruker +set creaimagesourcefolder=creaImageIO +set creacontourssource=creaContours +set crearigidregistrationssource=creaRigidRegistration +set bbtkgeditorsource=bbtkGEditor +set creatoolssource=creaTools + +set currentdir=%~dp0 +rem set currentdir=%currentdir:\=/% +set dirInstall=%currentdir%\tmpCreaTools_INSTALL +rmdir %dirInstall% /s /q +rmdir Result_Installers /s /q +mkdir Result_Installers + +call cvscheckout.bat %creasourcefolder% %cvsUser% +call cvscheckout.bat %bbtksourcefolder% %cvsUser% +call cvscheckout.bat %creamaracassourcefolder% %cvsUser% +call cvscheckout.bat %creaenvironmentsource% %cvsUser% +call cvscheckout.bat %creabrukersource% %cvsUser% +call cvscheckout.bat %creaimagesourcefolder% %cvsUser% +call cvscheckout.bat %creacontourssource% %cvsUser% +call cvscheckout.bat %crearigidregistrationssource% %cvsUser% +call cvscheckout.bat %bbtkgeditorsource% %cvsUser% +call cvscheckout.bat %creatoolssource% %cvsUser% + + + + +rem CREA +call cleanmod.bat %creasourcefolder% +call cmakemod.bat %creasourcefolder% %dirInstall% +call creaVariables.bat %creasourcefolder% +call compilemod.bat %buildtype% %creasourcefolder% +call ctestmod.bat %creasourcefolder% +set creadll=%~dp0 +set creadll=%creadll%%creasourcefolder%Bin\%buildtype% +set PATH=%creadll%;%PATH% + + +rem BBTK +call cleanmod.bat %bbtksourcefolder% +call cmakemod.bat %bbtksourcefolder% %dirInstall% +call bbtkVariables.bat %bbtksourcefolder% %docgeneration% +call compilemod.bat %buildtype% %bbtksourcefolder% +call ctestmod.bat %bbtksourcefolder% +set bbtkdll=%~dp0 +set bbtkdll=%bbtkdll%%bbtksourcefolder%Bin\%buildtype% +set PATH=%bbtkdll%;%PATH% + +rem creaMaracasVisu +call cleanmod.bat %creamaracassourcefolder% +call cmakemod.bat %creamaracassourcefolder% %dirInstall% +call creaMaracasVariables.bat %creamaracassourcefolder% %docgeneration% +call compilemod.bat %buildtype% %creamaracassourcefolder% +call ctestmod.bat %creamaracassourcefolder% +set creamaracasdll=%~dp0%creamaracassourcefolder%\%buildtype% +set PATH=%creamaracasdll%;%PATH% + + +rem creaEnvironment +call cleanmod.bat %creaenvironmentsource% +call cmakemod.bat %creaenvironmentsource% %dirInstall% +call creaenvironmentVariables.bat %creaenvironmentsource% +call compilemod.bat %buildtype% %creaenvironmentsource% +call ctestmod.bat %creaenvironmentsource% +set creaenvironmentdll=%~dp0%creaenvironmentsource%\%buildtype% +set PATH=%creaenvironmentdll%;%PATH% + +rem creaBruker +call cleanmod.bat %creabrukersource% +call cmakemod.bat %creabrukersource% %dirInstall% +call creaBrukerVariables.bat %creabrukersource% %docgeneration% +call compilemod.bat %buildtype% %creabrukersource% +call ctestmod.bat %creabrukersource% +set creabrukerdll=%~dp0%creabrukersource%\%buildtype% +set PATH=%creabrukerdll%;%PATH% + +rem creaImageIO +call cleanmod.bat %creaimagesourcefolder% +call cmakemod.bat %creaimagesourcefolder% %dirInstall% +call creaImageIOVariables.bat %creaimagesourcefolder% %docgeneration% +call compilemod.bat %buildtype% %creaimagesourcefolder% +call ctestmod.bat %creaimagesourcefolder% +set creaimagedll=%~dp0%creaimagesourcefolder%\%buildtype% +set PATH=%creaimagedll%;%PATH% + + +rem creaContours +call cleanmod.bat %creacontourssource% +call cmakemod.bat %creacontourssource% %dirInstall% +call creaContoursVariables.bat %creacontourssource% %docgeneration% +call compilemod.bat %buildtype% %creacontourssource% +call ctestmod.bat %creacontourssource% +set creacontourdll=%~dp0%creacontourssource%\%buildtype% +rem set PATH=%creacontoursdll%;%PATH% + +rem creaRigidRegistration +call cleanmod.bat %crearigidregistrationssource% +call cmakemod.bat %crearigidregistrationssource% %dirInstall% +call creaRigidRegistrationVariables.bat %crearigidregistrationssource% %docgeneration% +call compilemod.bat %buildtype% %crearigidregistrationssource% +call ctestmod.bat %crearigidregistrationssource% +rem set crearigidregistrationdll=%~dp0%crearigidregistrationssource%\%buildtype% +rem set PATH=%crearigidregistrationdll%;%PATH% + +rem bbtkGEditor +call cleanmod.bat %bbtkgeditorsource% +call cmakemod.bat %bbtkgeditorsource% %dirInstall% +call bbtkGEditorVariables.bat %bbtkgeditorsource% %docgeneration% +call compilemod.bat %buildtype% %bbtkgeditorsource% +call ctestmod.bat %bbtkgeditorsource% +rem set bbtkgeditordll=%~dp0%bbtkgeditorsource%\%buildtype% +rem set PATH=%bbtkgeditordll%;%PATH% + +rem creaTools +call cleanmod.bat %creatoolssource% +call cmakemod.bat %creatoolssource% %dirInstall% +call creaToolsVariables.bat %creatoolssource% +call compilemodCreaTools.bat %buildtype% %creatoolssource% +rem remcall ctestmod.bat %creatoolssource% +set creatoolsdll=%~dp0%creatoolssource%\%buildtype% +set PATH=%creatoolssdll%;%PATH% + + +rem shutdown /s +exit /b diff --git a/Install/scripts/All.sh b/Install/scripts/All.sh new file mode 100644 index 0000000..1e23099 --- /dev/null +++ b/Install/scripts/All.sh @@ -0,0 +1,186 @@ +#!/bin/sh + +if [ $# = 0 ] +then +echo "Use it as :" +echo "sh All.sh " +echo " " +echo "ex : sh All.sh /tmp/gendir OFF jpr /usr/local/lib/vtk-5.4 /home/jpr/myInsallDirectory" +exit 0 +fi + +if [ $# != 6 ] +then +echo "use it as sh All.sh /tmp/gendir OFF jpr /usr/local/lib/vtk-5.4 /home/jpr/myInsallDirectory Release" +exit 0 +fi + +# @echo off + +#allow user to choose the generation dir +#allow user to choose to generate the doc or not + +generationdir=$1 +cvsUserName=$3 +VTKdir=$4 +installPrefix=$5 +buildtype=$6 + +mkdir $generationdir +mkdir $generationdir/tmpCreaToolsBIN + + creasource=crea + bbtksource=bbtk + creamaracassource=creaMaracasVisu + creaenvironmentsource=creaEnvironment + creabrukersource=creaBruker + creaimagesource=creaImageIO + creacontourssource=creaContours + crearigidregistrationssource=creaRigidRegistration + bbtkgeditorsource=bbtkGEditor + creatoolssource=creaTools + +# the following stupid test is used at debug time; Please don't remove! +if [ true = true ] +then + +rm -rf $generationdir/creaBin +rm -rf $generationdir/bbtkBin +rm -rf $generationdir/creamaracasBin +rm -rf $generationdir/creaEnvironmentBin +rm -rf $generationdir/creaBrukerBin +rm -rf $generationdir/creaImageIOBin +rm -rf $generationdir/creaContoursBin +rm -rf $generationdir/creaRigidRegistrationBin +rm -rf $generationdir/bbtkGEditorBin +rm -rf $generationdir/creaToolsBin + +sh cvscheckout.sh $creasource $generationdir $cvsUserName +sh cvscheckout.sh $bbtksource $generationdir $cvsUserName +sh cvscheckout.sh $creamaracassource $generationdir $cvsUserName +sh cvscheckout.sh $creaenvironmentsource $generationdir $cvsUserName +sh cvscheckout.sh $creabrukersource $generationdir $cvsUserName +sh cvscheckout.sh $creaimagesource $generationdir $cvsUserName +sh cvscheckout.sh $creacontourssource $generationdir $cvsUserName +sh cvscheckout.sh $crearigidregistrationssource $generationdir $cvsUserName +sh cvscheckout.sh $bbtkgeditorsource $generationdir $cvsUserName +sh cvscheckout.sh $creatoolssource $generationdir $cvsUserName + +fi + +# CREA +#if [ true = false ] +#then + sh cmakemod.sh $creasource $generationdir $VTKdir $installPrefix $buildType + sh creaVariables.sh $creasource $generationdir $docgeneration + sh compilemod.sh $buildtype $creasource $generationdir + sh ctestmod.sh $creasource $generationdir +#fi + + creadll=$generationdir/tmpCreaTools_INSTALL/creaBin + LD_LIBRARY_PATH=$creadll:LD_LIBRARY_$PATH + +# echo "=in All.sh, out of crea ============================================================================ $LD_LIBRARY_PATH" + + +#if [ true = false ] +#then +# BBTK + sh cmakemod.sh $bbtksource $generationdir $VTKdir $installPrefix $buildType +# echo "============================BBTK out of cmakemod " + + sh bbtkVariables.sh $bbtksource $generationdir $docgeneration +# echo "============================BBTK out of bbtkVariables " + + sh compilemod.sh $buildtype $bbtksource $generationdir + echo "============================BBTK out of compilemod " + + sh ctestmod.sh $bbtksource $generationdir +#fi + + bbtkdll=$generationdir/tmpCreaTools_INSTALL/bbtkBin + LD_LIBRARY_PATH=$bbtkdll:$LD_LIBRARY_PATH + +#if [ true = false ] +#then + creaMaracasVisu +# echo "========================================================================================start creaMaracasVisu " + sh cmakemod.sh $creamaracassource $generationdir $VTKdir $installPrefix $buildType +# echo "=======================================================================================creaMaracasVisu out of cmakemod " + + sh creaMaracasVariables.sh $creamaracassource $generationdir $docgeneration + sh compilemod.sh $buildtype $creamaracassource $generationdir + sh ctestmod.sh $creamaracassource $generationdir +#fi + creamaracasdll=$generationdir/tmpCreaTools_INSTALL/creamaracasBin + LD_LIBRARY_PATH=$creamaracasdll:$LD_LIBRARY_PATH + + +#if [ true = false ] +#then +# creaEnvironment + sh cmakemod.sh $creaenvironmentsource $generationdir $VTKdir $installPrefix $buildType + + sh creaenvironmentVariables.sh $creaenvironmentsource $generationdir $docgeneration + sh compilemod.sh $buildtype $creaenvironmentsource $generationdir + sh ctestmod.sh $creaenvironmentsource $generationdir +#fi + creaenvironmentdll=$generationdir/tmpCreaTools_INSTALL/creaenvironmentBin + LD_LIBRARY_PATH=$creaenvironmentdll:$LD_LIBRARY_PATH + +#if [ true = false ] +#then +# creaBruker + sh cmakemod.sh $creabrukersource $generationdir $VTKdir $installPrefix $buildType + sh creaBrukerVariables.sh $creabrukersource $generationdir $docgeneration +#fi + + sh compilemod.sh $buildtype $creabrukersource $generationdir +# echo "creaBruker : out of compilemod.sh; stop here, now!" +# exit 0 + sh ctestmod.sh $creabrukersource $creabinfolder + creabrukerdll=$generationdir/tmpCreaTools_INSTALL/creabrukerBin + LD_LIBRARY_PATH=$creabrukerdll:$LD_LIBRARY_PATH + +# creaImageIO + sh cmakemod.sh $creaimagesource $generationdir $VTKdir $installPrefix $buildType + sh creaImageIOVariables.sh $creaimagesource $generationdir $docgeneration + sh compilemod.sh $buildtype $creaimagesource $generationdir + sh ctestmod.sh $creaimagesource $generationdir + creaimagedll=$generationdir/tmpCreaTools_INSTALL/creaimageBin + LD_LIBRARY_PATH=$creaimagedll:$LD_LIBRARY_PATH + +# creaContours + sh cmakemod.sh $creacontourssource $generationdir $VTKdir $installPrefix $buildType + sh creaContoursVariables.sh $creacontourssource $generationdir $docgeneration + sh compilemod.sh $buildtype $creacontourssource $generationdir + sh ctestmod.sh $creacontourssource $generationdir +# creacontourdll=$generationdir/tmpCreaTools_INSTALL/creacontoursBin +# LD_LIBRARY_PATH=$creacontoursdll:$LD_LIBRARY_PATH + +# creaRigidRegistration + sh cmakemod.sh $crearigidregistrationssource $generationdir $VTKdir $installPrefix $buildType + sh creaRigidRegistrationVariables.sh $crearigidregistrationssource $generationdir $docgeneration + sh compilemod.sh $buildtype $crearigidregistrationssource $generationdir + sh ctestmod.sh $crearigidregistrationssource $generationdir +# crearigidregistrationdll=$generationdir/tmpCreaTools_INSTALL/crearigidregistrationBin +# LD_LIBRARY_PATH=$crearigidregistrationdll:$LD_LIBRARY_PATH + +# bbtkGEditor + sh cmakemod.sh $bbtkgeditorsource $generationdir $VTKdir $installPrefix $buildType + sh bbtkGEditorVariables.sh $bbtkgeditorsource $generationdir $docgeneration + sh compilemod.sh $buildtype $bbtkgeditorsource $generationdir + sh ctestmod.sh $bbtkgeditorsource $generationdir +# bbtkgeditordll=$generationdir/tmpCreaTools_INSTALL/bbtkgeditorBin +# LD_LIBRARY_PATH=$bbtkgeditordll:$LD_LIBRARY_PATH + +# creaTools + sh cmakemod.sh $creatoolssource $generationdir $VTKdir $installPrefix $buildType + sh creaToolsVariables.sh $creatoolssource $generationdir $docgeneration + sh compilemod.sh $buildtype $creatoolssource $generationdir +# sh ctestmod.sh $creatoolsbinary $generationdir +# creatoolsdll=$generationdir/tmpCreaTools_INSTALL/creatoolsBin +# LD_LIBRARY_PATH=$creatoolssdll:$LD_LIBRARY_PATH + +# shutdown /s +# exit /b diff --git a/Install/scripts/bbtkGEditorVariables.bat b/Install/scripts/bbtkGEditorVariables.bat new file mode 100644 index 0000000..9c8b59d --- /dev/null +++ b/Install/scripts/bbtkGEditorVariables.bat @@ -0,0 +1,12 @@ +rem %1=creabrukersource% %2=docgeneration + +set currentdir=%~dp0 +set currentdir=%currentdir:\=/% + +cd %1Bin +cmake -D crea_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/crea CMakeCache.txt +cmake -D BBTK_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/bbtk CMakeCache.txt +cmake -D creaMaracasVisu_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/creaMaracasVisu CMakeCache.txt +cmake -D BUILD_bbtkGEditor_DOC:BOOL=%2 CMakeCache.txt +cmake CMakeCache.txt +cd .. \ No newline at end of file diff --git a/Install/scripts/bbtkGEditorVariables.sh b/Install/scripts/bbtkGEditorVariables.sh new file mode 100644 index 0000000..ee26523 --- /dev/null +++ b/Install/scripts/bbtkGEditorVariables.sh @@ -0,0 +1,15 @@ +# $1 : creaBruker +# $2 : generationdir +# $3 : ON/OFF (generate doc) + +binfolder=$2/tmpCreaTools_INSTALL/$1Bin +cd $binfolder + +cmake -D crea_DIR:PATH=$2/tmpCreaTools_INSTALL/creaBin CMakeCache.txt +cmake -D BBTK_DIR:PATH=$2/tmpCreaTools_INSTALL/bbtkBin CMakeCache.txt +cmake -D creaMaracasVisu_DIR:PATH=$2/tmpCreaTools_INSTALL/creaMaracasVisuBin CMakeCache.txt +cmake -D BUILD_bbtkGEditor_DOC:BOOL=$3 CMakeCache.txt +cmake -D BUILD_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt +cmake CMakeCache.txt + +cd .. diff --git a/Install/scripts/bbtkVariables.bat b/Install/scripts/bbtkVariables.bat new file mode 100644 index 0000000..38696f5 --- /dev/null +++ b/Install/scripts/bbtkVariables.bat @@ -0,0 +1,13 @@ +rem %1=bbtksourcefolder% %2=docgeneration + +set binfolder=%1Bin +cd %binfolder% +set currentdir=%~dp0 +set currentdir=%currentdir:\=/% +cmake -D --BUILD_ALL:BOOL=ON -D crea_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/crea -D BUILD_BBTK_DOC:BOOL=%2 CMakeCache.txt +cmake CMakeCache.txt +cmake CMakeCache.txt +cmake CMakeCache.txt +cmake CMakeCache.txt +cmake CMakeCache.txt +cd .. \ No newline at end of file diff --git a/Install/scripts/bbtkVariables.sh b/Install/scripts/bbtkVariables.sh new file mode 100644 index 0000000..01a4dd9 --- /dev/null +++ b/Install/scripts/bbtkVariables.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +# $1 : bbtk +# $2 : generationdir +# $3 : ON/OFF (generate doc) + +binfolder=$2/tmpCreaTools_INSTALL/$1Bin +cd $binfolder + +cmake -D --BUILD_ALL:BOOL=ON CMakeCache.txt +cmake -D crea_DIR:PATH=$2/tmpCreaTools_INSTALL/creaBin CMakeCache.txt +cmake -D BUILD_BBTK_DOC:BOOL=$3 CMakeCache.txt +cmake -D BUILD_BBTK_DOC_GUIDES_HTML:BOOL=$3 CMakeCache.txt + +cmake CMakeCache.txt +cmake CMakeCache.txt +cmake CMakeCache.txt +cmake CMakeCache.txt +cmake CMakeCache.txt +cmake CMakeCache.txt +cd .. diff --git a/Install/scripts/cleanmod.bat b/Install/scripts/cleanmod.bat new file mode 100644 index 0000000..7464c83 --- /dev/null +++ b/Install/scripts/cleanmod.bat @@ -0,0 +1,17 @@ +REM %1=creasourcefolder + +set binfolder=%1Bin +cd %binfolder% +del *.exe +del *.lib +del *.dll +del Debug\*.exe +del Debug\*.lib +del Debug\*.dll +del Release\*.exe +del Release\*.lib +del Release\*.dll +del RelWithDebInfo\*.exe +del RelWithDebInfo\*.lib +del RelWithDebInfo\*.dll +cd .. \ No newline at end of file diff --git a/Install/scripts/cmakemod.bat b/Install/scripts/cmakemod.bat new file mode 100644 index 0000000..d1f8f45 --- /dev/null +++ b/Install/scripts/cmakemod.bat @@ -0,0 +1,13 @@ +REM %1= +REM %2= + +set currentdir=%~dp0 +set currentdir=%currentdir:\=/% +set dirInstallModule=%2\%1 + +mkdir %1Bin +cd %1Bin +cmake -G"Visual Studio 9 2008" -H%currentdir%%1 -B%currentdir%%1Bin +cmake -D INCLUDE_CTEST:BOOL=ON -D CMAKE_INSTALL_PREFIX:PATH=%dirInstallModule% CMakeCache.txt +cd .. + diff --git a/Install/scripts/cmakemod.sh b/Install/scripts/cmakemod.sh new file mode 100644 index 0000000..4a401cd --- /dev/null +++ b/Install/scripts/cmakemod.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +currentdir=$2 +VTKdir=$3 +installPrefix=$4 +dirInstall=$currentdir/tmpCreaTools_INSTALL/$1Bin +installPrefix=$4 +buildType=$5 + +if [ buildType = "Debug" ] +then +debug = "ON" +else +debug = "OFF" +fi + +echo dirInstall +echo $dirInstall + +mkdir $dirInstall +cd $dirInstall +echo -H$currentdir/$1 +echo -B$dirInstall/ + +## cmake -G"CodeBlocks - Unix Makefiles" -H$currentdir/$1 -B$dirInstall/ +cmake -G"Unix Makefiles" -H$currentdir/$1 -B$dirInstall/ +cmake -D BUILD_ALL:BOOL=ON -D USE_DEBUG_LIB:BOOL=$debug CMakeCache.txt + +# the following line is the right one! +#cmake -D INCLUDE_CTEST:BOOL=ON -D CMAKE_INSTALL_PREFIX:PATH=$dirInstall -D crea_DIR:PATH=$currentdir/tmpCreaTools_INSTALL/creaBin CMakeCache.txt + +# This one : only for misinstalled vtk: +# modify VTK_DIR:PATH=, acording to your own computer + +cmake -D INCLUDE_CTEST:BOOL=ON -D BBTK_USE_WXWIDGETS:BOOL=ON -D VTK_DIR:PATH=$VTKdir -D crea_DIR:PATH=$currentdir/tmpCreaTools_INSTALL/creaBin -D BBTK_DIR:PATH=$currentdir/tmpCreaTools_INSTALL/bbtkBin -D CMAKE_INSTALL_PREFIX:PATH=$installPrefix CMakeCache.txt +cd .. diff --git a/Install/scripts/compilemod.bat b/Install/scripts/compilemod.bat new file mode 100644 index 0000000..a25d229 --- /dev/null +++ b/Install/scripts/compilemod.bat @@ -0,0 +1,9 @@ +REM %1=buildtype %2= + +cd %2Bin +call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" +FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%1 +FOR /R %%a IN (*.sln) DO msbuild /p:Configuration=%1 INSTALL.vcproj +FOR /R %%a IN (*.sln) DO msbuild /p:Configuration=%1 PACKAGE.vcproj +copy %2*.exe ../Result_Installers/ +cd .. diff --git a/Install/scripts/compilemod.sh b/Install/scripts/compilemod.sh new file mode 100644 index 0000000..5ef07b1 --- /dev/null +++ b/Install/scripts/compilemod.sh @@ -0,0 +1,14 @@ +# $1 : useless for Linux (Release/Debug) + +cd $3/tmpCreaTools_INSTALL/$2Bin + +#echo $1 +#echo $2 +#echo $3 + +make -j 2 +echo " " +echo $2 +pwd +sudo make install +cd .. diff --git a/Install/scripts/compilemodCreaTools.bat b/Install/scripts/compilemodCreaTools.bat new file mode 100644 index 0000000..a9155c1 --- /dev/null +++ b/Install/scripts/compilemodCreaTools.bat @@ -0,0 +1,4 @@ +cd %2Bin +call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" +FOR /R %%a IN (*.sln) DO msbuild /p:Configuration=%1 PACKAGE.vcproj +cd .. diff --git a/Install/scripts/creaBrukerVariables.bat b/Install/scripts/creaBrukerVariables.bat new file mode 100644 index 0000000..2b0355f --- /dev/null +++ b/Install/scripts/creaBrukerVariables.bat @@ -0,0 +1,8 @@ +rem %1=creabrukersource% %2=docgeneration + +set binfolder=%1Bin +cd %binfolder% +set currentdir=%~dp0 +set currentdir=%currentdir:\=/% +cmake -D --BUILD_ALL:BOOL=OFF -D crea_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/crea -D BUILD_creaBruker_DOC:BOOL=%2 CMakeCache.txt +cd .. \ No newline at end of file diff --git a/Install/scripts/creaBrukerVariables.sh b/Install/scripts/creaBrukerVariables.sh new file mode 100644 index 0000000..5355243 --- /dev/null +++ b/Install/scripts/creaBrukerVariables.sh @@ -0,0 +1,17 @@ +# $1 : creaBruker +# $2 : generationdir +# $3 : ON/OFF (generate doc) + +binfolder=$2/tmpCreaTools_INSTALL/$1Bin +cd $binfolder + +#cmake -D BUILD_ALL:BOOL=OFF CMakeCache.txt +cmake -D BUILD_creaBruker_DOC:BOOL=$3 CMakeCache.txt +cmake -D crea_DIR:PATH=$2/tmpCreaTools_INSTALL/creaBin CMakeCache.txt +cmake -D BUILD_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt + +cmake CMakeCache.txt +cmake CMakeCache.txt +cmake CMakeCache.txt + +cd .. diff --git a/Install/scripts/creaContoursVariables.bat b/Install/scripts/creaContoursVariables.bat new file mode 100644 index 0000000..347dfe6 --- /dev/null +++ b/Install/scripts/creaContoursVariables.bat @@ -0,0 +1,11 @@ +rem %1=creabrukersource% %2=docgeneration + +set currentdir=%~dp0 +set currentdir=%currentdir:\=/% + +cd %1Bin +cmake -D crea_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/crea -D creaEnvironment_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/creaEnvironment -D creaMaracasVisu_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/creaMaracasVisu -D creaImageIO_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/creaImageIO -D BUILD_BBTK_PACKAGE_creaContours_DOXYGEN_DOC:BOOL=ON CMakeCache.txt +cmake -D BBTK_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/bbtk CMakeCache.txt +cmake -D creaContours_DOC:BOOL=%2 -D BUILD_BBTK_PACKAGE_creaContours_DOXYGEN_DOC:BOOL=%2 CMakeCache.txt +cmake CMakeCache.txt +cd .. diff --git a/Install/scripts/creaContoursVariables.sh b/Install/scripts/creaContoursVariables.sh new file mode 100644 index 0000000..0da38b1 --- /dev/null +++ b/Install/scripts/creaContoursVariables.sh @@ -0,0 +1,16 @@ +# $1 : creaBruker +# $2 : generationdir +# $3 : ON/OFF (generate doc) + +binfolder=$2/tmpCreaTools_INSTALL/$1Bin +cd $binfolder + +cmake -D BBTK_DIR:PATH=$2/tmpCreaTools_INSTALL/bbtkBin CMakeCache.txt +cmake -D crea_DIR:PATH=$2/tmpCreaTools_INSTALL/creaBin CMakeCache.txt +cmake -D BUILD_BBTK_PACKAGE_creaContours:BOOL=ON CMakeCache.txt +cmake -D creaContours_DOC:BOOL=$3 CMakeCache.txt +cmake -D BUILD_BBTK_PACKAGE_creaContours_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt + +cmake CMakeCache.txt + +cd .. diff --git a/Install/scripts/creaImageIOVariables.bat b/Install/scripts/creaImageIOVariables.bat new file mode 100644 index 0000000..145cef3 --- /dev/null +++ b/Install/scripts/creaImageIOVariables.bat @@ -0,0 +1,12 @@ +rem %1=creabrukersource% %2=docgeneration + +set currentdir=%~dp0 +set currentdir=%currentdir:\=/% + +cd %1Bin +cmake -D crea_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/crea -D BUILD_BBTK_PACKAGE_creaImageIO:BOOL=ON -D creaBruker_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/creaBruker -D USE_GDCM:BOOL=ON CMakeCache.txt +cmake -D BBTK_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/bbtk CMakeCache.txt +cmake -D BUILD_DOXYGEN_DOC:BOOL=%2 -D BUILD_BBTK_PACKAGE_creaImageIO_DOXYGEN_DOC:BOOL=%2 CMakeCache.txt +cmake CMakeCache.txt + +cd .. \ No newline at end of file diff --git a/Install/scripts/creaImageIOVariables.sh b/Install/scripts/creaImageIOVariables.sh new file mode 100644 index 0000000..59257bd --- /dev/null +++ b/Install/scripts/creaImageIOVariables.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +# $1 : 'creaImageIO' +# $2 : generationdir +# $3 : ON/OFF (generate doc) + +currentdir=$2 +binfolder=$2/tmpCreaTools_INSTALL/$1Bin +cd $binfolder + +cmake -D BBTK_DIR:PATH=$currentdir/tmpCreaTools_INSTALL/bbtkBin CMakeCache.txt +cmake -D crea_DIR:PATH=$currentdir/tmpCreaTools_INSTALL/creaBin CMakeCache.txt +cmake -D BUILD_BBTK_PACKAGE_creaImageIO:BOOL=ON CMakeCache.txt +cmake -D BUILD_creaImageIO_DOC:BOOL=$3 CMakeCache.txt +cmake -D BUILD_BBTK_PACKAGE_creaImageIO_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt + +cmake CMakeCache.txt + +cd .. diff --git a/Install/scripts/creaMaracasVariables.bat b/Install/scripts/creaMaracasVariables.bat new file mode 100644 index 0000000..cc27378 --- /dev/null +++ b/Install/scripts/creaMaracasVariables.bat @@ -0,0 +1,11 @@ +rem %1=creamaracassourcefolder %2=docgeneration + +set currentdir=%~dp0 +set currentdir=%currentdir:\=/% + +cd %1Bin +cmake -D crea_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/crea -D BUILD_BBTK_PACKAGE_creaMaracasVisu:BOOL=ON -D creaMaracasVisu_DOC:BOOL=%2 CMakeCache.txt +cmake -D BBTK_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/bbtk CMakeCache.txt +cmake -D BUILD_BBTK_PACKAGE_creaMaracasVisu_DOXYGEN_DOC:BOOL=%2 CMakeCache.txt +cmake CMakeCache.txt +cd .. \ No newline at end of file diff --git a/Install/scripts/creaMaracasVariables.sh b/Install/scripts/creaMaracasVariables.sh new file mode 100644 index 0000000..de55629 --- /dev/null +++ b/Install/scripts/creaMaracasVariables.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +# $1 : bbtk +# $2 : generationdir +# $3 : ON/OFF (generate doc) + +currentdir=$2 +binfolder=$2/tmpCreaTools_INSTALL/$1Bin +cd $binfolder + +cmake -D BBTK_DIR:PATH=$currentdir/tmpCreaTools_INSTALL/bbtkBin CMakeCache.txt +cmake -D crea_DIR:PATH=$currentdir/tmpCreaTools_INSTALL/creaBin CMakeCache.txt +cmake -D BUILD_BBTK_PACKAGE_creaMaracasVisu:BOOL=ON CMakeCache.txt +cmake -D creaMaracasVisu_DOC:BOOL=$3 CMakeCache.txt +cmake -D BUILD_BBTK_PACKAGE_creaMaracasVisu_DOXYGEN_DOC:BOOL=$3 CMakeCache.txt + +cmake CMakeCache.txt +cmake CMakeCache.txt + +cd .. diff --git a/Install/scripts/creaRigidRegistrationVariables.bat b/Install/scripts/creaRigidRegistrationVariables.bat new file mode 100644 index 0000000..1cefcf9 --- /dev/null +++ b/Install/scripts/creaRigidRegistrationVariables.bat @@ -0,0 +1,12 @@ +rem %1=creabrukersource% %2=docgeneration + +set currentdir=%~dp0 +set currentdir=%currentdir:\=/% + +cd %1Bin +cmake -D crea_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/crea -D BUILD_BBTK_PACKAGE_PackRecalage:BOOL=ON CMakeCache.txt +cmake -D BBTK_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/bbtk CMakeCache.txt +cmake -D BUILD_creaRigidRegistration_DOC:BOOL=%2 -D BUILD_BBTK_PACKAGE_PackRecalage_DOXYGEN_DOC:BOOL=%2 CMakeCache.txt +cmake CMakeCache.txt +cmake CMakeCache.txt +cd .. diff --git a/Install/scripts/creaRigidRegistrationVariables.sh b/Install/scripts/creaRigidRegistrationVariables.sh new file mode 100644 index 0000000..29a137a --- /dev/null +++ b/Install/scripts/creaRigidRegistrationVariables.sh @@ -0,0 +1,13 @@ +# $1 : creaBruker +# $2 : generationdir +# $3 : ON/OFF (generate doc) + +binfolder=$2/tmpCreaTools_INSTALL/$1Bin +cd $binfolder + + +cmake -D crea_DIR:PATH=$currentdir$2 -D BUILD_BBTK_PACKAGE_PackRecalage:BOOL=ON -D BUILD_creaRigidRegistration_DOC:BOOL=$3 -D crea_DIR:PATH=$2/tmpCreaTools_INSTALL/creaBin CMakeCache.txt + +cmake CMakeCache.txt +cmake CMakeCache.txt +cd .. diff --git a/Install/scripts/creaToolsVariables.bat b/Install/scripts/creaToolsVariables.bat new file mode 100644 index 0000000..a16d5a6 --- /dev/null +++ b/Install/scripts/creaToolsVariables.bat @@ -0,0 +1,5 @@ +REM %1= + +cd %1Bin +cmake -D CREATOOLS_SOURCE_PATH:PATH=%1 CMakeCache.txt +cd .. \ No newline at end of file diff --git a/Install/scripts/creaToolsVariables.sh b/Install/scripts/creaToolsVariables.sh new file mode 100644 index 0000000..f9da12e --- /dev/null +++ b/Install/scripts/creaToolsVariables.sh @@ -0,0 +1,12 @@ +# $1 : 'creaTools' +# $2 : generationdir +# $3 : ON/OFF (generate doc) + +binfolder=$2/tmpCreaTools_INSTALL/$1Bin +cd $binfolder + +cmake -D CREATOOLS_SOURCE_PATH:PATH=$currentdir/tmpCreaTools_INSTALL/ CMakeCache.txt + +cmake CMakeCache.txt + +cd .. diff --git a/Install/scripts/creaVariables.bat b/Install/scripts/creaVariables.bat new file mode 100644 index 0000000..c8e6767 --- /dev/null +++ b/Install/scripts/creaVariables.bat @@ -0,0 +1,6 @@ +REM %1=creasourcefolder + +set binfolder=%1Bin +cd %binfolder% +cmake -D CREA_BUILD_VTK:BOOL=ON -D CREA_BUILD_WX:BOOL=ON CMakeCache.txt +cd .. \ No newline at end of file diff --git a/Install/scripts/creaVariables.sh b/Install/scripts/creaVariables.sh new file mode 100644 index 0000000..3cff629 --- /dev/null +++ b/Install/scripts/creaVariables.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# $1 : bbtk +# $2 : generationdir +# $3 : ON/OFF (generate doc) --> Not used + +binfolder=$2/tmpCreaTools_INSTALL/$1Bin + +cd $binfolder + +cmake -D CREA_BUILD_VTK:BOOL=ON -D CREA_BUILD_WX:BOOL=ON CMakeCache.txt +cd .. diff --git a/Install/scripts/creaenvironmentVariables.bat b/Install/scripts/creaenvironmentVariables.bat new file mode 100644 index 0000000..a09e286 --- /dev/null +++ b/Install/scripts/creaenvironmentVariables.bat @@ -0,0 +1,8 @@ +rem %1=creaenvironmentsource + +set currentdir=%~dp0 +set currentdir=%currentdir:\=/% + +cd %1Bin +cmake -D crea_DIR:PATH=%currentdir%/tmpCreaTools_INSTALL/crea CMakeCache.txt +cd .. \ No newline at end of file diff --git a/Install/scripts/creaenvironmentVariables.sh b/Install/scripts/creaenvironmentVariables.sh new file mode 100644 index 0000000..0eed0f1 --- /dev/null +++ b/Install/scripts/creaenvironmentVariables.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +# $1 : 'creaEnvironment' +# $2 : generationdir +# $3 : ON/OFF (generate doc) + +binfolder=$2/tmpCreaTools_INSTALL/$1Bin +cd $binfolder + +cmake -D crea_DIR:PATH=$2/tmpCreaTools_INSTALL/creaBin CMakeCache.txt + +cmake CMakeCache.txt + +cd .. diff --git a/Install/scripts/creatools.sh b/Install/scripts/creatools.sh new file mode 100644 index 0000000..7e413d1 --- /dev/null +++ b/Install/scripts/creatools.sh @@ -0,0 +1,3 @@ +sudo pwd +sh All.sh /home/davila/Creatis/All/ OFF davila /usr/lib64/vtk-5.4/ /usr/local + diff --git a/Install/scripts/ctestmod.bat b/Install/scripts/ctestmod.bat new file mode 100644 index 0000000..d892360 --- /dev/null +++ b/Install/scripts/ctestmod.bat @@ -0,0 +1,12 @@ +REM %1= + +set binfolder=%1Bin +cd %binfolder% +rem EED>> ctest -D ContinuousStart -D ContinuousUpdate -D ContinuousConfigure -D ContinuousBuild -D ContinuousTest -D ContinuousSubmit +rem EED>> ctest -D ContinuousMemCheck -D ContinuousSubmit +rem EED>> ctest -D ExperimentalStart -D ExperimentalUpdate -D ExperimentalConfigure -D ExperimentalBuild -D ExperimentalTest -D ExperimentalSubmit +rem EED>> ctest -D ExperimentalMemCheck -D ExperimentalSubmit +ctest -D ExperimentalConfigure -D ExperimentalBuild +rem EED>> ctest -D NightlyStart -D NightlyUpdate -D NightlyConfigure -D NightlyBuild -D NightlyTest -D NightlySubmit +rem EED>> ctest -D NightlyMemCheck -D NightlySubmit +cd .. \ No newline at end of file