set creaminitoolssource=creaMiniTools
set currentdir=%~dp0
-
-
call %currentdir%\cleangeneral.bat %creatoolsGeneration% %installPrefix%
set binfolder=%1\creatools_bin\%2Bin
cd %binfolder%
-
cmake -D crea_DIR:PATH=%1\creatools_install\crea CMakeCache.txt
cmake -D BBTK_DIR:PATH=%1\creatools_install\bbtk CMakeCache.txt
%zipPath%\7z.exe x ..\wxWidgets-2.9.1.7z
-
-
-
rem ------------- vtk --------------------
cd %binpath%
mkdir %vtk%Bin
cmake CMakeCache.txt
call %vcvarsall%
FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%buildType%
-msbuild /p:Configuration=%buildType% INSTALL.vcxproj
+msbuild /p:Configuration=%buildType% INSTALL.vcxproj
-
:next
REM msbuild /p:Configuration=%buildType% INSTALL.vcxproj
-
-
pause
case $i in
0)
-
+
# Do it, while we are under user, not under root! # JPR
if [ -f $HOME/.bashrc ]
then
read a # just to let the user time enough to read the message...
fi
fi
-
+
clear
suitable=XXX
#ls -l scripts/CreaTools-configure.sh
then
echo WARNING
echo "the curently used Third Party libraries are NOT in $installPrefixThird but ... in :"
- grep "installPrefixThird=" $ETC_BASHRC
+ grep "installPrefixThird=" $ETC_BASHRC
echo "VTK_DIR : " $VTK_DIR
echo "ITK_DIR : " $ITK_DIR
echo "GDCM_DIR : " $GDCM_DIR
docgeneration="OFF"
fi
echo "you said : [" $docgeneration "]"
- done
- echo
- echo
+ done
+ echo
+ echo
fi
docgeneration="OFF"
fi
;;
- 1)
+ 1)
echo "===================================at begin 1) ======ETC_BASHRC : " $ETC_BASHRC
read a
echo "========================== 1 "
echo --gdcmVersion--
echo $gdcmVersion
echo "--ETC_BASHRC--"
- echo $ETC_BASHRC
+ echo $ETC_BASHRC
echo --sourcesFrom--
echo $sourcesFrom
echo --scriptDir--
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
+ 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
fi
bbtkdll=$generationdir/creatools_bin/bbtkBin
cd $scriptDir
-#create creatools_base_library_config.sh at the very begining, so we can write "export xxx_BIN=..." inside installmod.sh. JPRx 3 mars 2011
+ #create creatools_base_library_config.sh at the very begining, so we can write "export xxx_BIN=..." inside installmod.sh. JPRx 3 mars 2011
if [ -f $installPrefix/share/creatools_base_library_config.sh ]
then
chmod 755 $installPrefix/share/creatools_base_library_config.sh
-# Install creatools as user (no longer as root) // JPR 2/5/2011
-
-# if [ ! -f /etc/bashrc ]
-# then
-# export ETC_BASHRC="/etc/bash.bashrc"
-# else
-# export ETC_BASHRC="/etc/bashrc"
-# fi
-
-# export ETC_BASHRC=$HOME/.bashrc
-
+ # Install creatools as user (no longer as root) // JPR 2/5/2011
+
# - remove line 'bash $installPrefix/creatools_install/share/creatools_base_library_config.sh' if any
sed -i -e '/.*creatools_base_library_config.*/ d' $ETC_BASHRC
sed -i -e '/installPrefixtmp*/ d' $ETC_BASHRC
if [ $OperatingSystem = "MacOS" ]
then
echo export DYLD_LIBRARY_PATH='$'DYLD_LIBRARY_PATH:$installPrefix/lib/creatools >> $installPrefix/share/creatools_base_library_config.sh
-else
+else
echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$installPrefix/lib/creatools >> $installPrefix/share/creatools_base_library_config.sh
echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$installPrefix/lib64/creatools >> $installPrefix/share/creatools_base_library_config.sh
fi
-
echo "===================================================in CreaTools-install.sh ETC_BASHRC : " $ETC_BASHRC
+
echo installPrefixtmp=$installPrefix >> $ETC_BASHRC
echo '[ -f "$installPrefixtmp/share/creatools_base_library_config.sh" ] && source $installPrefixtmp/share/creatools_base_library_config.sh' >> $ETC_BASHRC
echo --buildType--
echo $buildType
echo --gdcmVersion--
- echo $gdcmVersion
+ echo $gdcmVersion
echo "--ETC_BASHRC--"
- echo $ETC_BASHRC
+ echo $ETC_BASHRC
echo --sourcesFrom--
echo $sourcesFrom
echo --scriptDir--
echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$VTK_DIR >> $installPrefixThird/share/creatools_third_party_library_config.sh
fi
-# done in scripts/CreaTools-configure.sh // JPR
-# case "$OperatingSystem" in
-# Fedora)
-# export ETC_BASHRC=$HOME/.bashrc
-# ;;
-# Ubuntu)
-# export ETC_BASHRC=$HOME/.bashrc
-# ;;
-# MacOS)
-# export ETC_BASHRC=$HOME/.profile
-# ;;
-# esac
-
sed -i -e '/.*installPrefixThird*/ d' $ETC_BASHRC
sed -i -e '/.*creatools_third_party_library_config.*/ d' $ETC_BASHRC
echo
exit 0
fi
-
+echo $PWD/scripts/CreaTools-configure.sh
+echo --- beg
+more $PWD/scripts/CreaTools-configure.sh
+echo --- end
source $PWD/scripts/CreaTools-configure.sh
echo "------"
echo $buildType
echo --gdcmVersion--
echo $gdcmVersion
+ echo --ITKVersion--
+ echo $ITKVersion
# echo --sourcesFrom--
# echo $sourcesFrom
# echo --scriptDir--
#!/bin/bash
+
if [ ! -f $PWD/scripts/CreaTools-configure.sh ]
then
echo
echo
echo
exit 0
-fi
+fi
echo $loginGroupName
source $PWD/scripts/CreaTools-configure.sh
echo --generationdir--
echo $generationdir
echo --corenumber--
- echo $corenumber
+ echo $corenumber
echo --docgeneration--
echo $docgeneration
echo --installPrefix--
# echo $start_point
echo "------"
-
scriptDir=$PWD
sourcesDir=$generationdir/thirdparty_sources
binDir=$generationdir/thirdparty_bin
chown $loginUserName $generationdir
chgrp $loginGroupName $generationdir
fi
-
if [ ! -e $sourcesDir ]
then
mkdir $sourcesDir
fi
-
# Third Party base stuff is now installed by ThirdParty-install-Base-Stuff.sh JPR
-
-
# the following stupid test is used at debug time; Please don't remove!
#if [ true = false ]
if [ true = true ]
then
-
rm -rf $sourcesDir/tth*
cd $sourcesDir
- if [ $OperatingSystem = "MacOS" ]
- then
+ if [ $OperatingSystem = "MacOS" ]
+ then
# curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/VTK-5.6.1.patchCreatis.tar.gz
# curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
# curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/InsightToolkit-3.20.0.tar.gz
debug="OFF"
fi
-
#if [ true = false ]
if [ true = true ]
then
echo $PWD/scripts/CreaTools-configure.sh
echo --generationdir--
echo $generationdir
+ echo --corenumber--
+ echo $corenumber
echo --docgeneration--
echo $docgeneration
echo --installPrefix--
echo --gdcmVersion--
echo $gdcmVersion
echo "--ETC_BASHRC--"
- echo $ETC_BASHRC
+ echo $ETC_BASHRC
# echo --sourcesFrom--
# echo $sourcesFrom
# echo --scriptDir--
# echo --start_point--
# echo $start_point
echo "------"
-
+
scriptDir=$PWD
sourcesDir=$generationdir/thirdparty_sources
binDir=$generationdir/thirdparty_bin
echo "export $2_DIR=$installPrefix/lib/creatools/$2" >> $installPrefix/share/creatools_base_library_config.sh
echo "export bb$2_DIR=$installPrefix/lib/creatools/bb$2" >> $installPrefix/share/creatools_base_library_config.sh
fi
-
else
echo "============================= NEITHER $installPrefix/lib64 NOR $installPrefix/lib EXIST ?!?"
fi
+
fi
cd ../..
pwd