]> Creatis software - creaToolsTools.git/commitdiff
*** empty log message ***
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Fri, 29 Oct 2010 11:35:38 +0000 (11:35 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Fri, 29 Oct 2010 11:35:38 +0000 (11:35 +0000)
Install/creatools.sh_TEMPLATE
Install_ThirdParty/Readme.txt [new file with mode: 0644]
Install_ThirdParty/install_thirdparty.sh_TEMPLATE [new file with mode: 0644]
Install_ThirdParty/scripts/install_thirdparty_all.sh [new file with mode: 0644]
README.txt

index 179567ad15eb4a68b7243a0d5addda1bf902751c..b5b3dab61957df83386fd21883b96f64a813367a 100644 (file)
@@ -1,12 +1,19 @@
+
 creatoolsGeneration=<directory where you want to generate>
- installPrefix=$creatoolsGeneration/creatool_install
-       or
- set installPrefix=/usr/local
+
+installPrefix=$creatoolsGeneration/creatools_install
+#      or
+#installPrefix=/usr/local
+
 cvsUser=<USER>
+
 docGeneration=<OFF|ON> let it to OFF!
+
 buildType=<Release|Debug>
 
-#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 (file)
index 0000000..32570fb
--- /dev/null
@@ -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 (file)
index 0000000..fa44d18
--- /dev/null
@@ -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 (file)
index 0000000..55f40cf
--- /dev/null
@@ -0,0 +1,135 @@
+
+#!/bin/sh
+
+if [ $# = 0 ]
+then
+  echo "Use it as :"
+  echo "sh install_thirdparty_fedora.sh <nameOfTheGenerationDirectory> <installPrefix> <buildType>"  
+  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 <nameOfTheGenerationDirectory> <installPrefix> <buildType>"
+  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
+
+
index 172a7fe331a8a7267d01eb5eefb7cea9bab13ef9..e70161f3ab6be3c8096592ef9e190ffab68375ff 100644 (file)
@@ -21,10 +21,13 @@ export LATEX_COMPILER=/usr/bin/latex, for instance
 4) ssh-add
 <type your cvs password>
 
-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 :