2 echo -----------------------------------
3 echo --------Download Libraries---------
4 echo -----------------------------------
6 echo -----------------------------------
7 echo ---Setting Environment Variables---
8 echo -----------------------------------
10 set thirdpartyGeneration=%1
14 :: set urlCreatisSource=http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source
15 set urlCreatisSource=http://www.creatis.insa-lyon.fr/~caceres/software
17 if %PROCESSOR_ARCHITECTURE%==x86 (
18 set ProgramFilesPath_x86=%ProgramFiles%
19 echo "Architecture found = x86"
21 set "ProgramFilesPath_x64=%ProgramFiles%"
22 set "ProgramFilesPath_x86=%ProgramFiles(x86)%"
23 echo "Architecture found = x64"
26 set zipPath="%ProgramFilesPath_x86%\7-Zip\7z.exe"
27 set miktex="%ProgramFilesPath_x86%\MiKTeX 2.9\miktex\bin\texworks.exe"
28 set vcvarsall="%ProgramFilesPath_x86%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
29 set wgetPath="%ProgramFilesPath_x86%\GnuWin32\bin\wget.exe"
31 if not exist %zipPath% set zipPath="%ProgramFilesPath_x64%\7-Zip\7z.exe"
32 if not exist %zipPath% (
33 echo ERROR!!! 7Zip has not been found in the system
36 if not exist %vcvarsall% set vcvarsall="%ProgramFilesPath_x64%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
37 if not exist %vcvarsall% (
38 echo ERROR!!! Visual Studio has not been found in the system
42 if not exist %miktex% (
43 set miktex="%ProgramFilesPath_x64%\MiKTeX 2.9\miktex\bin\texworks.exe"
44 if not exist %miktex% (
45 echo ERROR!!! MiKTex has not been found in the system
50 if not exist %wgetPath% (
51 echo ERROR!!! wget has not been found in the system
55 set installpath=%thirdpartyGeneration%\thirdparty_install\%buildType%
56 set binpath=%thirdpartyGeneration%\thirdparty_bin\%buildType%
57 set sourcepath=%thirdpartyGeneration%\thirdparty_source\%buildType%
58 set LogFolder=%thirdpartyGeneration%\installLog
60 set QTFNAME=qt-everywhere-opensource-src-4.8.2.zip
63 set WXFNAME=wxWidgets-2.8.12.zip
66 set WXFNAME=wxWidgets-2.9.3.zip
70 set BOOSTFNAME=boost_1_49_0.7z
71 set XERCESFNAME=xerces-c-3.1.1.zip
72 set ITKFNAME=InsightToolkit-3.20.1.zip
73 set VTKFNAME=vtk-5.10.0.zip
74 set GDCMFNAME=gdcm_11_Oct_2011.tar
75 ::set GDCMFNAME=gdcm_05_Mai_2011.tar
76 set TTHFNAME=tth_exe.zip
79 echo -----------------------------------
80 echo Environment variables Configuration
81 echo -----------------------------------
82 echo ThirdpartyGeneration=%thirdpartyGeneration%
83 echo BuildType=%buildType%
86 echo urlCreatis=%urlCreatisSource%
88 echo Visual Studio=%vcvarsall%
89 echo InstallPath=%installpath%
90 echo BinPath=%binpath%
91 echo SourcePath=%sourcepath%
93 echo -----------------------------------
94 echo ------Downloading Sources----------
95 echo -----------------------------------
99 %wgetPath% "http://releases.qt-project.org/qt4/source/%QTFNAME%"
100 %wgetPath% "http://sourceforge.net/projects/wxwindows/files/%WXVERSION%/%WXFNAME%/download"
101 %wgetPath% "http://sourceforge.net/projects/boost/files/boost/1.49.0/%BOOSTFNAME%/download"
102 %wgetPath% "http://mirror.ibcp.fr/pub/apache//xerces/c/3/sources/%XERCESFNAME%"
103 %wgetPath% "http://sourceforge.net/projects/itk/files/itk/3.20/%ITKFNAME%/download"
104 %wgetPath% "http://www.vtk.org/files/release/5.10/%VTKFNAME%"
105 %wgetPath% "%urlCreatisSource%/%GDCMFNAME%.gz"
106 %wgetPath% "http://hutchinson.belmont.ma.us/tth/tth-noncom/%TTHFNAME%"
107 %wgetPath% "ftp://ftp.qt.nokia.com/jom/%JOMFNAME%"
109 echo -----------------------------------
110 echo --------------Qt-------------------
111 echo -----------------------------------
115 %zipPath% x %sourcepath%\%QTFNAME%
116 del %sourcepath%\%QTFNAME%
118 echo -----------------------------------
119 echo --------------JOM------------------
120 echo -----------------------------------
123 %zipPath% x %sourcepath%\%JOMFNAME% -o*
124 del %sourcepath%\%JOMFNAME%
126 echo -----------------------------------
127 echo -----------wxWidgets---------------
128 echo -----------------------------------
129 echo ----------Extracting---------------
132 %zipPath% x %sourcepath%\%WXFNAME%
133 del %sourcepath%\%WXFNAME%
135 echo -----------------------------------
136 echo ------------Boost------------------
137 echo -----------------------------------
140 %zipPath% x %sourcepath%\%BOOSTFNAME%
141 del %sourcepath%\%BOOSTFNAME%
143 echo -----------------------------------
144 echo -------------VTK-------------------
145 echo -----------------------------------
148 %zipPath% x %sourcepath%\%VTKFNAME%
149 del %sourcepath%\%VTKFNAME%
151 echo -----------------------------------
152 echo ------------GDCM ------------------
153 echo -----------------------------------
156 %zipPath% x %GDCMFNAME%.gz
157 %zipPath% x %GDCMFNAME%
161 echo -----------------------------------
162 echo -------------ITK-------------------
163 echo -----------------------------------
166 %zipPath% x %ITKFNAME%
169 echo -----------------------------------
170 echo -------------XERCES----------------
171 echo -----------------------------------
174 %zipPath% x %XERCESFNAME%
177 echo -----------------------------------
178 echo --------------TTH------------------
179 echo -----------------------------------
182 %zipPath% x %TTHFNAME%
185 echo ------End TTH Installation---------
187 echo -----------------------------------
189 echo -----------------------------------
190 echo --------Renaming Folders-----------
191 echo -----------------------------------
193 rename qt-everywhere-opensource-src-4.8.2 qt
194 rename wxWidgets-%WXVERSION% wxWidgets
195 rename boost_1_49_0 boost
196 rename InsightToolkit-3.20.1 itk
200 rename xerces-c-3.1.1 xerces
202 echo -----End of Download Libraries-----
203 echo -----------------------------------
204 echo -----------------------------------