From: Eduardo Davila Date: Fri, 29 Oct 2010 11:35:38 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: Creatools2-0-3.creaToolsTools2-0-3.17Feb2011~111 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=4dc2d7c1326eabf28bbb27ca09393a8aff20f9c4;p=creaToolsTools.git *** empty log message *** --- diff --git a/Install/creatools.sh_TEMPLATE b/Install/creatools.sh_TEMPLATE index 179567a..b5b3dab 100644 --- a/Install/creatools.sh_TEMPLATE +++ b/Install/creatools.sh_TEMPLATE @@ -1,12 +1,19 @@ + creatoolsGeneration= - installPrefix=$creatoolsGeneration/creatool_install - or - set installPrefix=/usr/local + +installPrefix=$creatoolsGeneration/creatools_install +# or +#installPrefix=/usr/local + cvsUser= + docGeneration= let it to OFF! + buildType= -#sudo pwd + + + cd scripts sh All.sh $creatoolsGeneration $docGeneration $cvsUser $installPrefix $buildType cd .. diff --git a/Install_ThirdParty/Readme.txt b/Install_ThirdParty/Readme.txt new file mode 100644 index 0000000..32570fb --- /dev/null +++ b/Install_ThirdParty/Readme.txt @@ -0,0 +1,5 @@ + + +--sudo configuration-- +https://fedoraproject.org/wiki/Configuring_Sudo + diff --git a/Install_ThirdParty/install_thirdparty.sh_TEMPLATE b/Install_ThirdParty/install_thirdparty.sh_TEMPLATE new file mode 100644 index 0000000..fa44d18 --- /dev/null +++ b/Install_ThirdParty/install_thirdparty.sh_TEMPLATE @@ -0,0 +1,8 @@ +creatoolsGeneration=~/Creatis/All/thirdParty_creatools +installPrefix=$creatoolsGeneration/thirdparty_install +buildType=Debug + +#sudo pwd +cd scripts +sh install_thirdparty_all.sh $creatoolsGeneration $installPrefix $buildType +cd .. diff --git a/Install_ThirdParty/scripts/install_thirdparty_all.sh b/Install_ThirdParty/scripts/install_thirdparty_all.sh new file mode 100644 index 0000000..55f40cf --- /dev/null +++ b/Install_ThirdParty/scripts/install_thirdparty_all.sh @@ -0,0 +1,135 @@ + +#!/bin/sh + +if [ $# = 0 ] +then + echo "Use it as :" + echo "sh install_thirdparty_fedora.sh " + echo " " + echo "ex : sh install_thirdparty_fedora.sh /tmp/gendir /home/jpr/myInstallDirectory Debug" + exit 0 +fi + +echo $# +echo "----------" +echo $0 +echo $1 +echo $2 +echo $3 +echo "----------" + +if [ $# != 3 ] +then + echo "Use it as :" + echo "sh install_thirdparty_fedora.sh " + echo " " + echo "ex : sh install_thirdparty_fedora.sh /tmp/gendir /home/jpr/myInstallDirectory Debug" + exit 0 +fi + + +generationdir=$1 +installPrefix=$2 +buildType=$3 + +scriptDir=$PWD +sourcesDir=$generationdir/thirdparty_sources +binDir=$generationdir/thirdparty_bin + +mkdir $generationdir +mkdir $sourcesDir +mkdir $binDir + +# the following stupid test is used at debug time; Please don't remove! +if [ true = false ] +then + sudo yum install cmake -y + sudo yum install cmake-gui -y + sudo yum install doxygen -y + sudo yum install graphviz -y + sudo yum install texlive -y + sudo yum install latex2html -y + sudo yum install wxGTK-devel wxBase -y + sudo yum install boost-devel -y + sudo yum install sqlite-devel -y + sudo yum install qt-devel -y + sudo yum install mesa-libOSMesa-devel -y +fi + + + +# the following stupid test is used at debug time; Please don't remove! +if [ true = false ] +then + rm -rf $sources/VTK* + rm -rf $sources/vtk* + rm -rf $sources/InsightToolkit* + rm -rf $sources/gdcm* + cd $sources + wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/vtk-5.6.1.tar.gz + wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_08_Dic_2009.tar.gz + wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/InsightToolkit-3.20.0.tar.gz + tar -xvzf vtk-5.6.1.tar.gz + tar -xvzf gdcm_08_Dic_2009.tar.gz + tar -xvzf InsightToolkit-3.20.0.tar.gz +fi + + + +if [ $buildType = "Debug" ] +then +debug="ON" +else +debug="OFF" +fi + + +if [ true = true ] +then + libname=VTK + dirInstall=$binDir/$libname-Bin + dirInstallVTK=$dirInstall + mkdir $dirInstall + 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 + cmake -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF -D BUILD_SHARED_LIBS:BOOL=ON -D VTK_USE_QT:BOOL=ON CMakeCache.txt + make -j 2 + sudo make install + cd .. +fi + +if [ true = true ] +then + libname=gdcm + dirInstall=$binDir/$libname-Bin + mkdir $dirInstall + 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 + cmake -D VTK_DIR:PATH=$dirInstallVTK CMakeCache.txt + cmake -D GDCM_VTK:BOOL=ON -D GDCM_NAME_SPACE:STRING=gdcm13 CMakeCache.txt + make -j 2 + sudo make install + cd .. +fi + +if [ true = true ] +then + libname=InsightToolkit-3.20.0 + dirInstall=$binDir/$libname-Bin + mkdir $dirInstall + 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 + cmake -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF -D BUILD_SHARED_LIBS:BOOL=ON -D ITK_USE_REVIEW:BOOL=ON CMakeCache.txt + cmake CMakeCache.txt + make -j 2 + sudo make install + cd .. +fi + + diff --git a/README.txt b/README.txt index 172a7fe..e70161f 100644 --- a/README.txt +++ b/README.txt @@ -21,10 +21,13 @@ export LATEX_COMPILER=/usr/bin/latex, for instance 4) ssh-add -5)cd Install +5) sudo configuration +https://fedoraproject.org/wiki/Configuring_Sudo + +6)cd Install cp creatools.sh_TEMPLATE creatools.sh -6) modify the file creatools.sh, according to your preferences, modify (only once) creatools.sh +7) modify the file creatools.sh, according to your preferences, modify (only once) creatools.sh vim creatools.sh as follows :