]> Creatis software - creaToolsTools.git/blobdiff - Install_ThirdParty/scripts/download_ThirdPartySW.bat
Bug #1908
[creaToolsTools.git] / Install_ThirdParty / scripts / download_ThirdPartySW.bat
index b3dc8729fc344834dc7bd3c58168c42ab9ce2ac8..9604c29da67f1d6fbc153ef6d873c66dda02adf1 100644 (file)
@@ -1,26 +1,3 @@
-REM ---------------------------------------------------------------------
-REM
-REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
-REM                        pour la Santé)
-REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
-REM
-REM  This software is governed by the CeCILL-B license under French law and 
-REM  abiding by the rules of distribution of free software. You can  use, 
-REM  modify and/ or redistribute the software under the terms of the CeCILL-B 
-REM  license as circulated by CEA, CNRS and INRIA at the following URL 
-REM  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
-REM  or in the file LICENSE.txt.
-REM
-REM  As a counterpart to the access to the source code and  rights to copy,
-REM  modify and redistribute granted by the license, users are provided only
-REM  with a limited warranty  and the software's author,  the holder of the
-REM  economic rights,  and the successive licensors  have only  limited
-REM  liability. 
-REM
-REM  The fact that you are presently reading this means that you have had
-REM  knowledge of the CeCILL-B license and that you accept its terms.
-REM ------------------------------------------------------------------------  
-
 @echo off
 echo -----------------------------------
 echo --------Download Libraries---------
@@ -53,16 +30,19 @@ set wgetPath="%ProgramFilesPath_x86%\GnuWin32\bin\wget.exe"
 if not exist %zipPath% set zipPath="%ProgramFilesPath_x64%\7-Zip\7z.exe"
 if not exist %zipPath% (
   echo ERROR!!! 7Zip has not been found in the system
+  pause
   exit
 )
 if not exist %vcvarsall% set vcvarsall="%ProgramFilesPath_x64%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
 if not exist %vcvarsall% (
   echo ERROR!!! Visual Studio has not been found in the system
+  pause
   exit
 )
 
 if not exist %wgetPath% (
   echo ERROR!!! wget has not been found in the system
+  pause
   exit
 )
 
@@ -77,11 +57,12 @@ if %wxStable%==ON (
        set WXFNAME=wxWidgets-2.8.12.zip
        set WXVERSION=2.8.12
 ) else (
-       set WXFNAME=wxWidgets-2.9.3.zip
-       set WXVERSION=2.9.2
+       set WXFNAME=wxWidgets-2.9.4.zip
+       set WXVERSION=2.9.4
 )
 else
-set BOOSTFNAME=boost_1_49_0.7z
+REM set BOOSTFNAME=boost_1_49_0.7z
+set BOOSTFNAME=boost_1_52_0.7z
 set XERCESFNAME=xerces-c-3.1.1.zip
 set ITKFNAME=InsightToolkit-3.20.1.zip
 set VTKFNAME=vtk-5.10.0.zip
@@ -109,95 +90,103 @@ echo -----------------------------------
 
 cd %sourcepath%\
 
-%wgetPath% "http://releases.qt-project.org/qt4/source/%QTFNAME%"
-%wgetPath% "http://sourceforge.net/projects/wxwindows/files/%WXVERSION%/%WXFNAME%/download"
-%wgetPath% "http://sourceforge.net/projects/boost/files/boost/1.49.0/%BOOSTFNAME%/download"
-%wgetPath% "http://mirror.ibcp.fr/pub/apache//xerces/c/3/sources/%XERCESFNAME%"
-%wgetPath% "http://sourceforge.net/projects/itk/files/itk/3.20/%ITKFNAME%/download"
-%wgetPath% "http://www.vtk.org/files/release/5.10/%VTKFNAME%"
-%wgetPath% "%urlCreatisSource%/%GDCMFNAME%.gz"
-%wgetPath% "http://hutchinson.belmont.ma.us/tth/tth-noncom/%TTHFNAME%"
-%wgetPath% "ftp://ftp.qt.nokia.com/jom/%JOMFNAME%"
-
-echo -----------------------------------
-echo --------------Qt-------------------
-echo -----------------------------------
-call %vcvarsall%
-
-cd %sourcepath%
-%zipPath% x %sourcepath%\%QTFNAME%
-del %sourcepath%\%QTFNAME%
-
-echo -----------------------------------
-echo --------------JOM------------------
-echo -----------------------------------
-
-cd %sourcepath%
-%zipPath% x %sourcepath%\%JOMFNAME% -o*
-del %sourcepath%\%JOMFNAME%
-
-echo -----------------------------------
-echo -----------wxWidgets---------------
-echo -----------------------------------
-echo ----------Extracting---------------
-
-cd %sourcepath%
-%zipPath% x %sourcepath%\%WXFNAME%
+REM%wgetPath% "http://sourceforge.net/projects/itk/files/itk/3.20/%ITKFNAME%/download"
+REM%wgetPath% "http://sourceforge.net/projects/wxwindows/files/%WXVERSION%/%WXFNAME%/download"
+REM%wgetPath% "http://sourceforge.net/projects/boost/files/boost/1.49.0/%BOOSTFNAME%/download"
+
+if %EEDdownloadQT%==FALSE GOTO SKIPDOWNLOADQT
+  %wgetPath% "http://releases.qt-project.org/qt4/source/%QTFNAME%"
+  %wgetPath% "http://releases.qt-project.org/jom/%JOMFNAME%"
+  echo -----------------------------------
+  echo --------------Qt-------------------
+  echo -----------------------------------
+  call %vcvarsall%
+  cd %sourcepath%
+  %zipPath% x %sourcepath%\%QTFNAME%
+  del %sourcepath%\%QTFNAME%
+  echo -----------------------------------
+  echo --------------JOM------------------
+  echo -----------------------------------
+  cd %sourcepath%
+  %zipPath% x %sourcepath%\%JOMFNAME% -o*
+  del %sourcepath%\%JOMFNAME%
+:SKIPDOWNLOADQT
+  
+if %EEDdownloadITK%==FALSE GOTO SKIPDOWNLOADITK
+  %wgetPath% "http://downloads.sourceforge.net/project/itk/itk/3.20/%ITKFNAME%?r=http%3A%2F%2Fwww.itk.org%2FITK%2Fresources%2Fsoftware.html&ts=1357254419&use_mirror=ufpr"
+  echo -----------------------------------
+  echo -------------ITK-------------------
+  echo -----------------------------------
+  cd %sourcepath%
+  %zipPath% x %ITKFNAME%
+  del %ITKFNAME%
+:SKIPDOWNLOADITK
+  
+if %EEDdownloadWXWINDOWS%==FALSE GOTO SKIPDOWNLOADWXWINDOWS
+  %wgetPath% "http://downloads.sourceforge.net/project/wxwindows/%WXVERSION%/%WXFNAME%?r=http%3A%2F%2Fwww.wxwidgets.org%2Fdownloads%2F%23latest_dev&ts=1357255370&use_mirror=ufpr"
+  echo -----------------------------------
+  echo -----------wxWidgets---------------
+  echo -----------------------------------
+  echo ----------Extracting---------------
+  cd %sourcepath%
+  %zipPath% x %sourcepath%\%WXFNAME%
   del %sourcepath%\%WXFNAME%
+:SKIPDOWNLOADWXWINDOWS
+
+if %EEDdownloadBOOST%==FALSE GOTO SKIPDOWNLOADBOOST
+  REM %wgetPath% "http://downloads.sourceforge.net/project/boost/boost/1.49.0/%BOOSTFNAME%?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fboost%2Ffiles%2Fboost%2F1.49.0%2F&ts=1357255694&use_mirror=hivelocity"
+  %wgetPath% "http://downloads.sourceforge.net/project/boost/boost/1.52.0/boost_1_52_0.7z?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fboost%2Ffiles%2Fboost%2F1.52.0%2Fboost_1_52_0.7z%2Fdownload&ts=1360058777&use_mirror=ignum"
+  echo -----------------------------------
+  echo ------------Boost------------------
+  echo -----------------------------------
+  cd %sourcepath%
+  %zipPath% x %sourcepath%\%BOOSTFNAME%
+  del %sourcepath%\%BOOSTFNAME%
+:SKIPDOWNLOADBOOST
+
+if %EEDdownloadXERCES%==FALSE GOTO SKIPDOWNLOADXERCES
+  %wgetPath% "http://mirror.ibcp.fr/pub/apache//xerces/c/3/sources/%XERCESFNAME%"
+  echo -----------------------------------
+  echo -------------XERCES----------------
+  echo -----------------------------------
+  cd %sourcepath%
+  %zipPath% x %XERCESFNAME%
+  del %XERCESFNAME%
+:SKIPDOWNLOADXERCES
+
+if %EEDdownloadVTK%==FALSE GOTO SKIPDOWNLOADVTK
+  %wgetPath% "http://www.vtk.org/files/release/5.10/%VTKFNAME%"
+  echo -----------------------------------
+  echo -------------VTK-------------------
+  echo -----------------------------------
+  cd %sourcepath%
+  %zipPath% x %sourcepath%\%VTKFNAME%
+  del %sourcepath%\%VTKFNAME%
+:SKIPDOWNLOADVTK
+  
+if %EEDdownloadGDCM%==FALSE GOTO SKIPDOWNLOADGDCM
+  %wgetPath% "%urlCreatisSource%/%GDCMFNAME%.gz"
+  echo -----------------------------------
+  echo ------------GDCM ------------------
+  echo -----------------------------------
+  cd %sourcepath%
+  %zipPath% x %GDCMFNAME%.gz
+  %zipPath% x %GDCMFNAME%
+  del %GDCMFNAME%.gz
+  del %GDCMFNAME%
+:SKIPDOWNLOADGDCM
+  
+if %EEDdownloadTTH%==FALSE GOTO SKIPDOWNLOADTTH
+  %wgetPath% "http://hutchinson.belmont.ma.us/tth/tth-noncom/%TTHFNAME%"
+  echo -----------------------------------
+  echo --------------TTH------------------
+  echo -----------------------------------
+  cd %sourcepath%
+  %zipPath% x %TTHFNAME%
+  del %TTHFNAME%
+:SKIPDOWNLOADTTH
 
-echo -----------------------------------
-echo ------------Boost------------------
-echo -----------------------------------
-
-cd %sourcepath%
-%zipPath% x %sourcepath%\%BOOSTFNAME%
-del %sourcepath%\%BOOSTFNAME%
-
-echo -----------------------------------
-echo -------------VTK-------------------
-echo -----------------------------------
 
-cd %sourcepath%
-%zipPath% x %sourcepath%\%VTKFNAME%
-del %sourcepath%\%VTKFNAME%
-
-echo -----------------------------------
-echo ------------GDCM ------------------
-echo -----------------------------------
-
-cd %sourcepath%
-%zipPath% x %GDCMFNAME%.gz
-%zipPath% x %GDCMFNAME%
-del %GDCMFNAME%.gz
-del %GDCMFNAME%
-
-echo -----------------------------------
-echo -------------ITK-------------------
-echo -----------------------------------
-
-cd %sourcepath%
-%zipPath% x %ITKFNAME%
-del %ITKFNAME%
-
-echo -----------------------------------
-echo -------------XERCES----------------
-echo -----------------------------------
-
-cd %sourcepath%
-%zipPath% x %XERCESFNAME%
-del %XERCESFNAME%
-
-echo -----------------------------------
-echo --------------TTH------------------
-echo -----------------------------------
-
-cd %sourcepath%
-%zipPath% x %TTHFNAME%
-del %TTHFNAME%
-
-echo ------End TTH Installation---------
-
-echo -----------------------------------
 
 echo -----------------------------------
 echo --------Renaming Folders-----------
@@ -205,7 +194,8 @@ echo -----------------------------------
 cd %sourcepath%
 rename qt-everywhere-opensource-src-4.8.2 qt
 rename wxWidgets-%WXVERSION% wxWidgets
-rename boost_1_49_0 boost
+REM rename boost_1_49_0 boost
+rename boost_1_52_0 boost
 rename InsightToolkit-3.20.1 itk
 rename VTK vtk
 rename gdcm gdcm13