else
suitable="NO"
fi
-
+
if [ "$suitable" = "NO" ]
then
echo
echo
echo
-
# ------------------
echo "Name of the Generation Directory (default is /tmp/myGenerationDir)"
read generationdir
echo "buildType=$buildType" >> $configureFile
echo "gdcmVersion=$gdcmVersion" >> $configureFile
-
# ------------------
# endif 'suitable'
fi
vtkdirVariable=""
while [ "$vtkdirVariable" = "" ]
do
+ echo
+ echo " --------------------------------"
echo " Set VTK_DIR environment variable"
+ echo " --------------------------------"
+ echo
read vtkdirVariable
done
echo "you said [" $vtkdirVariable "]"
latexCompilerVariable=""
while [ "$latexCompilerVariable" = "" ]
do
+ echo
+ echo " ---------------------------------------"
echo " Set LATEX_COMPILER environment variable"
+ echo " ---------------------------------------"
+ echo
read latexCompilerVariable
done
echo "you said [" $latexCompilerVariable "]"
echo "export VTK_DIR=$vtkdirVariable" >> /etc/bashrc
echo "export LATEX_COMPILER=$latexCompilerVariable" >> /etc/bashrc
- echo "------------------------------------"
+ echo "---------------------------------------------------------"
echo OK
echo "To go on, run again 'sh menu.sh' as root, in a new window"
- echo "------------------------------------"
+ echo "---------------------------------------------------------"
exit 0
;;
2)
echo "========================== 3"
- sh scripts/CreaTools-load.sh
-
+ sh scripts/CreaTools-load.sh
;;
-
-
3)
echo "========================== 3"
echo $gdcmVersion
echo --sourcesFrom--
echo $sourcesFrom
- echo --scriptDir--
- echo $scriptDir
- echo --start_point--
- echo $start_point
+# echo --scriptDir--
+# echo $scriptDir
+# echo --start_point--
+# echo $start_point
echo "------"
sourcesDir=$generationdir/thirdparty_sources
binDir=$generationdir/thirdparty_bin
-mkdir $generationdir
-mkdir $sourcesDir
-mkdir $binDir
+if [ ! -e $generationdir ]
+then
+ mkdir $generationdir
+ mkdir $sourcesDir
+ mkdir $binDir
+fi
if [ -f $installPrefix/share/creatools_third_party_library_config.sh ]
then
# the following stupid test is used at debug time; Please don't remove!
if [ true = true ]
+#if [ true = false ]
then
case "$OperatingSystem" in
# the following stupid test is used at debug time; Please don't remove!
+#if [ true = false ]
if [ true = true ]
then
rm -rf $sourcesDir/VTK*
fi
-
if [ $buildType = "Debug" ]
then
debug="ON"
libname=VTK
dirInstall=$binDir/$libname-Bin
dirInstallVTK=$dirInstall
- VTK_DIR=$installPrefix/lib/vtk-5.6/
+ export VTK_DIR=$installPrefix/lib/vtk-5.6/
cd $dirInstall
+
cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
##cmake -G"CodeBlocks - Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
cmake -D USE_DEBUG_LIB:BOOL=$buildType -D CMAKE_INSTALL_PREFIX:PATH=$installPrefix CMakeCache.txt
then
libname=gdcm
dirInstall=$binDir/$libname-Bin
- GDCM_DIR=$installPrefix/lib/gdcm/
+ export GDCM_DIR=$installPrefix/lib/gdcm/
mkdir $dirInstall
cd $dirInstall
cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
then
libname=InsightToolkit-3.20.0
dirInstall=$binDir/$libname-Bin
- ITK_DIR=$installPrefix/lib/InsightToolkit/
+ export ITK_DIR=$installPrefix/lib/InsightToolkit/
mkdir $dirInstall
cd $dirInstall
cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
# - add line 'sh $installPrefix/share/creatools_third_party_library_config.sh' (with accurate value for ???)
echo source $installPrefix/share/creatools_third_party_library_config.sh >> /etc/bashrc
-
-