]> Creatis software - creaToolsTools.git/commitdiff
#3224 creaToolsTools Feature New Normal - vtk8itk4wx3-mingw64
authorEduardo Davila <davila@ei-ed-606.creatis.insa-lyon.fr>
Mon, 27 Aug 2018 11:32:47 +0000 (13:32 +0200)
committerEduardo Davila <davila@ei-ed-606.creatis.insa-lyon.fr>
Mon, 27 Aug 2018 11:32:47 +0000 (13:32 +0200)
Linux/installscript
Linux/scripts/LocalFunctions.sh
Linux/scripts/ThirdParty-install-Base-Stuff.sh
Linux/scripts/ThirdParty-install-Base-rpm.sh
Linux/scripts/ThirdParty-install-ITK.sh
Linux/scripts/ThirdParty-install-VTK.sh
Linux/scripts/ThirdParty-install-WT.sh
Linux/scripts/ThirdParty-install-gdcm.sh

index 2631d2bd5796dce732a128a8d316154fdf22289b..a27e07a95fc3d640f6427209fe4f52eafb5aa432 100755 (executable)
 
 #!/bin/bash -e
 
-scriptDirName=$(dirname $(readlink -f $0) )
+#EED 2018-08-26
+
+#scriptDirName=$(dirname $(readlink -f $0) )
+scriptDirName=$(pwd)
 
 #########################################################################
 ############     Local Functions  #######################################
@@ -38,12 +41,14 @@ configureFile="scripts/CreaTools-configure.sh"
 # default configuration parameters
 OperatingSystem=`getDistrib`
 corenumber=`getncore`
+echo "hola1"
 generationdir=$HOME/Creatis/creaTools
 installPrefixThird=
 installPrefix=
 docgeneration=OFF
 sourcesFrom=GIT
 
+
 loginUserName=$USER
 loginGroupName=`groups | awk '{print $1}'`
 buildType=Release
@@ -248,9 +253,11 @@ fi
 
 # vtk
 if [ `checkVal $command all 3rd 3rd-vtk` == true ] ; then
-    bigDisplay "INSTALL VTK"
-    source scripts/ThirdParty-install-VTK.sh
-    cd $scriptDirName
+#      if ! [ $OperatingSystem = "MacOS" ] ; then
+           bigDisplay "INSTALL VTK"
+               source scripts/ThirdParty-install-VTK.sh
+       cd $scriptDirName
+#      fi
 fi
 
 # gdcm
@@ -262,9 +269,11 @@ fi
 
 # itk
 if [ `checkVal $command all 3rd 3rd-itk` == true ] ; then
-    bigDisplay "INSTALL $ITKVersion"
-    bash scripts/ThirdParty-install-ITK.sh
-    cd $scriptDirName
+       if ! [ $OperatingSystem = "MacOS" ] ; then
+           bigDisplay "INSTALL $ITKVersion"
+               bash scripts/ThirdParty-install-ITK.sh
+       cd $scriptDirName
+    fi
 fi
 
 # wt
index 084c2a19c4dc790a5280f2023c8dd2aff79722a3..662fbae0d65c126df57ced28728e28c141813ad4 100644 (file)
@@ -121,7 +121,9 @@ function getDownloadCommand {
 ###########################################
 function getncore {
     if [ `uname` == Darwin ] ; then # MacOS
-        system_profiler | grep Processor | awk '$1=="Number" {print $4}'
+#EED 2018-08-26
+#        system_profiler | grep Processor | awk '$1=="Number" {print $4}'
+        sysctl hw.physicalcpu hw.logicalcpu | grep logicalcpu | awk '{print $2}'
     else
         cat /proc/cpuinfo | grep processor | wc -l
     fi
index 088e02b4c8ec3e84e0cda62870311908ba4553ea..7caf9ca714ec77f2d6b156441a88fd214833637d 100644 (file)
@@ -36,7 +36,9 @@ echo "OperatingSystem = $OperatingSystem"
         echo "Please enter the root passwd to add necessary packages:"; 
         if [ "Ubuntu" == $OperatingSystem ] ; then
            sudo bash ThirdParty-install-Base-rpm.sh $OperatingSystem
-       else
+        elif [ "MacOS" == $OperatingSystem ] ; then
+           sudo bash ThirdParty-install-Base-rpm.sh $OperatingSystem
+               else
            su -c "bash ThirdParty-install-Base-rpm.sh $OperatingSystem"   
         fi 
     fi
index 2b3072a6fea1995cedc48f447f9a84d192e6e6d7..25ddfa444db10b82b3393dc8bc9cce053899b43f 100644 (file)
@@ -145,27 +145,27 @@ then
      apt-get --yes install libosmesa6-dev #Mesa6
      apt-get --yes install uuid-dev # uuid para la instalacion de itk
      apt-get --yes install libxaw7-dev # X11
-     ;;
+     ;; 
   MacOS)
      port selfupdate
-     port install cmake                -y
-     port install doxygen              -y
-     port install graphviz             -y
-    # port install tetex               -y   (replaced by texlive) # cf EED : http://www.creatis.insa-lyon.fr/site/fr/CreatoolsInstallInstructionsv2.0.1MacOsv10.5.6-Developpers
-     port install texlive              -y
-     port install latex2html           -y
-     port install wxGTK                -y
-     port install boost                -y
-     ln -s libboost_signals-xgcc40-mt-1_38.dylib    libboost_signals.dylib    /opt/local/lib # cf EED : http://www.creatis.insa-lyon.fr/site
-     ln -s libboost_signals-xgcc40-mt-1_38.dylib    libboost_signals.dylib    /opt/local/lib # cf EED
-     ln -s libboost_filesystem-xgcc40-mt-1_38.dylib libboost_filesystem.dylib /opt/local/lib # cf EE
-     ln -s libboost_system-xgcc40-mt-1_38.dylib     libboost_system.dylib     /opt/local/lib # cf EE 
-     port install sqlite3              -y
-     port install qt4-mac              -y
-     ln -s qmake-mac qmake /opt/local/bin  # cf EED
-     port install mesa                 -y
-     port install fcgi                 -y  ## It's working ?
-     port install fcgi-devel           -y  ## It's working ?
+     port -N install wget                 -y
+     port -N install cmake                -y
+     port -N install doxygen              -y
+     port -N install graphviz             -y 
+    # port -N install tetex               -y   (replaced by texlive) # cf EED : http://www.creatis.insa-lyon.fr/site/fr/CreatoolsInstallInstructionsv2.0.1MacOsv10.5.6-Developpers
+     port -N install texlive              -y
+     port -N install latex2html           -y
+     port -N install wxWidgets-3.0        -y
+     port -N install boost                -y
+#     ln -s libboost_signals-xgcc40-mt-1_38.dylib    libboost_signals.dylib    /opt/local/lib # cf EED : http://www.creatis.insa-lyon.fr/site
+#     ln -s libboost_signals-xgcc40-mt-1_38.dylib    libboost_signals.dylib    /opt/local/lib # cf EED
+#     ln -s libboost_filesystem-xgcc40-mt-1_38.dylib libboost_filesystem.dylib /opt/local/lib # cf EE
+#     ln -s libboost_system-xgcc40-mt-1_38.dylib     libboost_system.dylib     /opt/local/lib # cf EE 
+     port -N install sqlite3              -y
+#     port install qt4-mac              -y
+#     ln -s qmake-mac qmake /opt/local/bin  # cf EED
+#     port install mesa                 -y
+     port -N install fcgi                 -y  ## It's working ?
      ;;
   *)
      echo " '$OperatingSystem' : Unknown (for us...) Operating Sytem "
index a08a8ec1cd6a3f4cf86c0968af4367ca0f2af049..3fb0447c8b4beb3d964bbd1232057deb30f7547e 100644 (file)
@@ -68,6 +68,14 @@ source $PWD/scripts/CreaTools-configure.sh
 #   echo $start_point
    echo "------"
 
+ if [ $OperatingSystem = "MacOS" ]
+ then
+    # Itk is all ready installed with the macport mechanism
+    exit 0
+ fi
+
+
+
 
 #EED 2017-03-24
   source $PWD/scripts/LocalFunctions.sh
index 4c9db74f0aa9f5ad8e4e27e29c4ff76a2e97c9fd..ced69e113c60a3b46596a005c4c4617737261d6f 100644 (file)
@@ -64,6 +64,8 @@ source $PWD/scripts/CreaTools-configure.sh
    echo "------"
 
 
+
 #EED 2017-03-24
   source $PWD/scripts/LocalFunctions.sh
   if [ `getDistrib` == "CentOS" ] && [ `getKernelVersion` < "2.6.34" ]
@@ -112,11 +114,11 @@ fi
  echo "we download new stuff"
  if [ $OperatingSystem = "MacOS" ]
  then
-
-## EED 2013-10-29
-##  curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/VTK-5.6.1.patchCreatis.tar.gz
-##  # MacOS, clever enough to understand it *has* to uncompress, doesn't understand tar -z :-(
-##  tar -xvf VTK-5.6.1.patchCreatis.tar.gz
+# EED 2013-10-29
+#  curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/VTK-5.6.1.patchCreatis.tar.gz
+#  # MacOS, clever enough to understand it *has* to uncompress, doesn't understand tar -z :-(
+#  tar -xvf VTK-5.6.1.patchCreatis.tar.gz
 
   curl -O http://www.vtk.org/files/release/5.10/vtk-5.10.1.zip
   unzip vtk-5.10.1.zip
index 8feeec60d6a2422efae1b36073b1727fa1c197fe..ea5fc673fac66378e5a5371cdd54c86f6b75591d 100644 (file)
@@ -99,21 +99,22 @@ fi
   cd $sourcesDir
 
  echo "we download new stuff"
- if [ $OperatingSystem = "MacOS" ]
- then
-
-  curl -O http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/wt-3.3.4.tar.gz
-  tar -xvzf wt-3.3.4.tar.gz
-  # MacOS, clever enough to understand it *has* to uncompress, doesn't understand tar -z :-(
- else
-#  wget http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/wt-3.3.4.tar.gz
-#  tar -xvzf wt-3.3.4.tar.gz
+##  if [ $OperatingSystem = "MacOS" ]
+##  then
+## #  curl -O http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/wt-3.3.4.tar.gz
+## #  tar -xvzf wt-3.3.4.tar.gz
+##   curl -O http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/wt-4.0.4-rc1.tar.gz
+##   tar -xvzf wt-4.0.4-rc1.tar.gz
+##   # MacOS, clever enough to understand it *has* to uncompress, doesn't understand tar -z :-(
+##  else
+## #  wget http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/wt-3.3.4.tar.gz
+## #  tar -xvzf wt-3.3.4.tar.gz
+## fi
 
   wget http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/wt-4.0.4-rc1.tar.gz
   tar -xvzf wt-4.0.4-rc1.tar.gz
 
- fi
-
 
 #if [ $buildType = "Debug" ]
 #then
@@ -153,5 +154,6 @@ then
 
   make -j $corenumber
   su -c 'make install'
+  sudo make install
   cd ..
 fi
index 5183c5f15bafd5691dd13ef1bf156e4c23f9a151..d42809ef15df7545911b3bad536d05757d9f2f41 100644 (file)
@@ -106,25 +106,27 @@ fi
   cd $sourcesDir
 
   echo "we download new stuff"
- if [ $OperatingSystem = "MacOS" ]
- then
-  curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
-  # MacOS, clever enough to understand it *has* to uncompress, doesn't understand tar -z :-(
-  tar -xvf gdcm_05_Mai_2011.tar.gz
- else
-##19mai2015  wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
-
-##VTK-5
-#    wget http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
-#      tar -xvzf gdcm_05_Mai_2011.tar.gz
-
-#    wget http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/gdcm_10_Mars_2017-vtk7.tar.gz
-#      tar -xvzf gdcm13_2018_05_28_vtk8.tar.gz
+  
+##  if [ $OperatingSystem = "MacOS" ]
+##  then
+##   curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
+##   # MacOS, clever enough to understand it *has* to uncompress, doesn't understand tar -z :-(
+##   tar -xvf gdcm_05_Mai_2011.tar.gz
+##  else
+## ##19mai2015  wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
+## 
+## ##VTK-5
+## #    wget http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
+## #   tar -xvzf gdcm_05_Mai_2011.tar.gz
+## 
+## #    wget http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/gdcm_10_Mars_2017-vtk7.tar.gz
+## #   tar -xvzf gdcm13_2018_05_28_vtk8.tar.gz
+##  fi
 
     wget http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/gdcm13_2018_05_28_vtk8.zip
        unzip gdcm13_2018_05_28_vtk8.zip
+       mv gdcm13_2018_05_28_vtk8 gdcm
 
- fi
 
 if [ $buildType = "Debug" ]
 then