===== How to Install - HTML VERSION =======
1)
-./installscript -os Fedora -ncore 8 -gdir $HOME/Creatis/creaTools -instprefix $HOME/Creatis/creaTools/creatools_install -instprefix3 $HOME/Creatis/creaTools/thirdparty_install -build Release config
+./installscript -os Fedora -ncore 8 -gdir $HOME/Creatis/creaTools -instprefix $HOME/Creatis/creaTools/creatools_install -instprefix3 $HOME/Creatis/creaTools/thirdparty_install -html -build Release config
2) As root
./installscript 3rd
# default configuration parameters
OperatingSystem=`getDistrib`
corenumber=`getncore`
-generationdir=$HOME/CreatoolsGenerationDir
+generationdir=$HOME/Creatis/creaTools
installPrefixThird=
installPrefix=
docgeneration=OFF
echo " as a normal user:"
echo " config : set the configuration parameters only"
echo " "
- echo " as root:"
+ echo " need root password:"
echo " 3rd : Get, Compile, Install all 3rd party library "
echo " 3rd-base : Install basic tools (cmake, doxygen...)"
echo " 3rd-vtk : Get, Compile, Install vtk"
echo " -gdir <dir> : generation directory (default $generationdir)"
echo " -instprefix <dir> : creatools install prefix"
echo " -instprefix3 <dir> : 3rd party library install prefix"
+ echo " -html : get creatools from HTML"
echo " -git : get creatools from git (CREATIS user only)"
echo " -git-read-only : get creatools from git (anonymously, no write access)"
echo " -build : build type Release, RelWithDebug or Debug (default RelWithDebug)"
-instprefix) installPrefix=$2; shift 2;;
-instprefix3) installPrefixThird=$2; shift 2;;
-doc) docgeneration=ON; shift 1;;
+ -html) sourcesFrom=HTML; shift 1;;
-git) sourcesFrom=GIT; shift 1;;
-git-read-only) sourcesFrom=GIT-READ-ONLY;
shift 1;;
then
rm -rf creatools_bin
fi
- mkdir creatools_bin
+ mkdir -p creatools_bin
cd $scriptDir
then
if [ ! -e $generationdir/creatools_install ]
then
- mkdir $generationdir/creatools_install
+ mkdir -p $generationdir/creatools_install
fi
else
echo
sed -i -e '/.*creatools_base_library_config.*/ d' $ETC_BASHRC
sed -i -e '/installPrefixtmp*/ d' $ETC_BASHRC
- mkdir $installPrefix
- mkdir $installPrefix/share
+ mkdir -p $installPrefix
+ mkdir -p $installPrefix/share
echo '## This file is call from .bashrc' > $installPrefix/share/creatools_base_library_config.sh
bash installmodBash.sh $installPrefix
if [ ! -e $generationdir ]
then
- mkdir $generationdir
- mkdir $generationdir/creatools_source
- mkdir $generationdir/creatools_bin
- mkdir $generationdir/creatools_install
+ mkdir -p $generationdir
+ mkdir -p $generationdir/creatools_source
+ mkdir -p $generationdir/creatools_bin
+ mkdir -p $generationdir/creatools_install
fi
cd $generationdir
rm -rf creatools_source
rm -rf creatools_bin
rm -rf creatools_install
- mkdir $generationdir/creatools_source
+ mkdir -p $generationdir/creatools_source
fi
fi
if [ ! -e $generationdir ]
then
- mkdir $generationdir
- chown $loginUserName $generationdir
- chgrp $loginGroupName $generationdir
+ mkdir -p $generationdir
+ chown -R $loginUserName $generationdir
+ chgrp -R $loginGroupName $generationdir
fi
if [ ! -e $sourcesDir ]
then
- mkdir $sourcesDir
+ mkdir -p $sourcesDir
#was : (pb on MacOS?)
- #chown $loginUserName:$loginGroupName $sourcesDir
- chown $loginUserName $sourcesDir
- chgrp $loginGroupName $sourcesDir
+ #chown -R $loginUserName:$loginGroupName $sourcesDir
+ chown -R $loginUserName $sourcesDir
+ chgrp -R $loginGroupName $sourcesDir
fi
if [ ! -e $binDir ]
then
- mkdir $binDir
- chown $loginUserName $binDir
- chgrp $loginGroupName $binDir
+ mkdir -p $binDir
+ chown -R $loginUserName $binDir
+ chgrp -R $loginGroupName $binDir
fi
# the following stupid test is used at debug time; Please don't remove!
if [ ! -e $installPrefixThird/share ]
then
- mkdir $installPrefixThird/share
+ mkdir -p $installPrefixThird/share
fi
touch $installPrefixThird/share/creatools_third_party_library_config.sh
chmod 755 $installPrefixThird/share/creatools_third_party_library_config.sh
if [ ! -e $generationdir ]
then
- mkdir $generationdir
- chown $loginUserName $generationdir
- chgrp $loginGroupName $generationdir
+ mkdir -p $generationdir
+ chown -R $loginUserName $generationdir
+ chgrp -R $loginGroupName $generationdir
fi
if [ ! -e $sourcesDir ]
then
- mkdir $sourcesDir
+ mkdir -p $sourcesDir
#was : (pb on MacOS?)
- #chown $loginUserName:$loginGroupName $sourcesDir
- chown $loginUserName $sourcesDir
- chgrp $loginGroupName $sourcesDir
+ #chown -R $loginUserName:$loginGroupName $sourcesDir
+ chown -R $loginUserName $sourcesDir
+ chgrp -R $loginGroupName $sourcesDir
fi
if [ ! -e $binDir ]
then
- mkdir $binDir
- chown $loginUserName $binDir
- chgrp $loginGroupName $binDir
+ mkdir -p $binDir
+ chown -R $loginUserName $binDir
+ chgrp -R $loginGroupName $binDir
fi
echo "we remove old stuff"
dirInstall=$binDir/$libname-Bin
export ITK_DIR=$installPrefixThird/lib/InsightToolkit/
- mkdir $dirInstall
+ mkdir -p $dirInstall
cd $dirInstall
cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
if [ ! -e $generationdir ]
then
- mkdir $generationdir
- chown $loginUserName $generationdir
- chgrp $loginGroupName $generationdir
+ mkdir -p $generationdir
+ chown -R $loginUserName $generationdir
+ chgrp -R $loginGroupName $generationdir
fi
if [ ! -e $sourcesDir ]
then
- mkdir $sourcesDir
+ mkdir -p $sourcesDir
#was : (pb on MacOS?)
- #chown $loginUserName:$loginGroupName $sourcesDir
- chown $loginUserName $sourcesDir
- chgrp $loginGroupName $sourcesDir
+ #chown -R $loginUserName:$loginGroupName $sourcesDir
+ chown -R $loginUserName $sourcesDir
+ chgrp -R $loginGroupName $sourcesDir
fi
if [ ! -e $binDir ]
then
- mkdir $binDir
- chown $loginUserName $binDir
- chgrp $loginGroupName $binDir
+ mkdir -p $binDir
+ chown -R $loginUserName $binDir
+ chgrp -R $loginGroupName $binDir
fi
echo "we remove old stuff"
## export VTK_DIR=$installPrefixThird/lib/vtk-5.6/
export VTK_DIR=$installPrefixThird/lib/vtk-5.10/
- mkdir $dirInstall
+ mkdir -p $dirInstall
echo "we prepare directories dirInstall " $dirInstall " VTK_DIR " $installPrefixThird/lib/vtk-5.10.1/
cd $dirInstall
if [ ! -e $generationdir ]
then
- mkdir $generationdir
- chown $loginUserName $generationdir
- chgrp $loginGroupName $generationdir
+ mkdir -p $generationdir
+ chown -R $loginUserName $generationdir
+ chgrp -R $loginGroupName $generationdir
fi
if [ ! -e $sourcesDir ]
then
- mkdir $sourcesDir
+ mkdir -p $sourcesDir
#was : (pb on MacOS?)
- #chown $loginUserName:$loginGroupName $sourcesDir
- chown $loginUserName $sourcesDir
- chgrp $loginGroupName $sourcesDir
+ #chown -R $loginUserName:$loginGroupName $sourcesDir
+ chown -R $loginUserName $sourcesDir
+ chgrp -R $loginGroupName $sourcesDir
fi
if [ ! -e $binDir ]
then
- mkdir $binDir
- chown $loginUserName $binDir
- chgrp $loginGroupName $binDir
+ mkdir -p $binDir
+ chown -R $loginUserName $binDir
+ chgrp -R $loginGroupName $binDir
fi
echo "we remove old stuff"
libname=wxWidgets
dirInstall=$installPrefixThird/lib/wx/
export WX_DIR=$installPrefixThird/lib/wx/
- mkdir $dirInstall
+ mkdir -p $dirInstall
echo "we prepare directories dirInstall " $dirInstall " wx_DIR " $installPrefixThird/lib/wx/
#cd $dirInstall
if [ ! -e $generationdir ]
then
- mkdir $generationdir
- chown $loginUserName $generationdir
- chgrp $loginGroupName $generationdir
+ mkdir -p $generationdir
+ chown -R $loginUserName $generationdir
+ chgrp -R $loginGroupName $generationdir
fi
if [ ! -e $sourcesDir ]
then
- mkdir $sourcesDir
+ mkdir -p $sourcesDir
#was : (pb on MacOS?)
- #chown $loginUserName:$loginGroupName $sourcesDir
- chown $loginUserName $sourcesDir
- chgrp $loginGroupName $sourcesDir
+ #chown -R $loginUserName:$loginGroupName $sourcesDir
+ chown -R $loginUserName $sourcesDir
+ chgrp -R $loginGroupName $sourcesDir
fi
if [ ! -e $binDir ]
then
- mkdir $binDir
- chown $loginUserName $binDir
- chgrp $loginGroupName $binDir
+ mkdir -p $binDir
+ chown -R $loginUserName $binDir
+ chgrp -R $loginGroupName $binDir
fi
echo "we remove old stuff"
libname=gdcm
dirInstall=$binDir/$libname-Bin
export GDCM_DIR=$installPrefixThird/lib/gdcm/
- mkdir $dirInstall
+ mkdir -p $dirInstall
cd $dirInstall
cmake -G"Unix Makefiles" -H$sourcesDir/$libname -B$dirInstall/
if [ ! -e $generationdir ]
then
- mkdir $generationdir
- chown $loginUserName $generationdir
- chgrp $loginGroupName $generationdir
+ mkdir -p $generationdir
+ chown -R $loginUserName $generationdir
+ chgrp -R $loginGroupName $generationdir
fi
if [ ! -e $sourcesDir ]
then
- mkdir $sourcesDir
+ mkdir -p $sourcesDir
#was : (pb on MacOS?)
- #chown $loginUserName:$loginGroupName $sourcesDir
- chown $loginUserName $sourcesDir
- chgrp $loginGroupName $sourcesDir
+ #chown -R $loginUserName:$loginGroupName $sourcesDir
+ chown -R $loginUserName $sourcesDir
+ chgrp -R $loginGroupName $sourcesDir
fi
if [ ! -e $binDir ]
then
- mkdir $binDir
- chown $loginUserName $binDir
- chgrp $loginGroupName $binDir
+ mkdir -p $binDir
+ chown -R $loginUserName $binDir
+ chgrp -R $loginGroupName $binDir
fi
if [ ! -e $installPrefixThird/share ]
then
- mkdir $installPrefixThird/share
+ mkdir -p $installPrefixThird/share
fi
touch $installPrefixThird/share/creatools_third_party_library_config.sh
chmod 755 $installPrefixThird/share/creatools_third_party_library_config.sh
echo dirInstall
echo $dirInstall
-mkdir $dirInstall
+mkdir -p $dirInstall
cd $dirInstall
echo -H$currentdir/creatools_source/$1
echo -B$dirInstall/