2 echo -----------------------------------
3 echo ------Asking Architecture----------
4 echo -----------------------------------
5 if %PROCESSOR_ARCHITECTURE%==x86 (
7 set ProgramFilesPath=%ProgramFiles%
11 set "ProgramFilesPath=%ProgramFiles(x86)%"
15 echo ----End Asking Architecture--------
17 echo -----------------------------------
18 echo ---Setting Enviroment Variables----
19 echo -----------------------------------
22 set thirdpartyGeneration=%1
25 set wgetPath=%cd%\..\..\windows\creaTools_win_installers\CreaTools_v2_0_0_win32_installer\bin\wget.exe
26 set zipPath="%ProgramFilesPath%\7-Zip\7z.exe"
27 set urlCreatisSource=http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source
28 set urlCreatisSource=http://www.creatis.insa-lyon.fr/~caceres/software
29 set vcvarsall="%ProgramFilesPath%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
31 set installpath=%thirdpartyGeneration%\thirdparty_install
32 set binpath=%thirdpartyGeneration%\thirdparty_bin
33 set sourcepath=%thirdpartyGeneration%\thirdparty_source
35 set xercesc=xerces-c-3.1.1
36 set itk=InsightToolkit-3.20.0
41 echo ---End Setting Global Variables----
42 echo -----------------------------------
47 echo -----------------------------------
48 echo -------Creating Folders------------
49 echo -----------------------------------
53 rmdir %thirdpartyGeneration% /s /q
54 mkdir %thirdpartyGeneration%
55 cd %thirdpartyGeneration%
56 mkdir thirdparty_source
58 mkdir thirdparty_install
61 echo ------End Creating Folders---------
63 echo -----------------------------------
64 echo ------Downloading Sources----------
65 echo -----------------------------------
67 cd %thirdpartyGeneration%\thirdparty_source\
68 %wgetPath% %urlCreatisSource%/qt-4.7.3.zip
69 %wgetPath% %urlCreatisSource%/wxWidgets-2.9.2.7z
70 %wgetPath% %urlCreatisSource%/boost_1_47_0.7z
71 %wgetPath% %urlCreatisSource%/vtk-5.8.0.tar.gz
72 %wgetPath% %urlCreatisSource%/InsightToolkit-3.20.0.zip
73 %wgetPath% %urlCreatisSource%/gdcm.tar.gz
74 %wgetPath% %urlCreatisSource%/xerces-c-3.1.1.zip
77 echo ------End Downloading Sources------
79 echo -----------------------------------
80 echo --------Qt Installation------------
81 echo -----------------------------------
82 echo ---Setting Enviroment Variables----
84 set QTDIR=%thirdpartyGeneration%\thirdparty_source\Qt\4.7.3\
86 echo ----------Extracting---------------
88 cd %thirdpartyGeneration%\thirdparty_source\
91 %zipPath% x %thirdpartyGeneration%\thirdparty_source\qt-4.7.3.zip
92 del %thirdpartyGeneration%\thirdparty_source\qt-4.7.3.zip
94 echo --------Renaming Folder------------
96 rename qt-everywhere-opensource-src-4.7.3 4.7.3
98 echo ----------Installing---------------
101 echo y | configure -%buildType% -opensource -shared -qt-sql-sqlite -phonon -phonon-backend -platform win32-msvc2010 -mp
105 echo ------End QT Installation----------
107 echo -----------------------------------
108 echo -----wxWidgets Installation--------
109 echo -----------------------------------
110 echo -------Setting Variables-----------
112 set WXDIR=%thirdpartyGeneration%\thirdparty_source\wxWidgets\2.9.2\
114 echo ----------Extracting---------------
116 cd %thirdpartyGeneration%\thirdparty_source
119 %zipPath% x %thirdpartyGeneration%\thirdparty_source\wxWidgets-2.9.2.7z
120 del %thirdpartyGeneration%\thirdparty_source\wxWidgets-2.9.2.7z
122 echo ----------Installing---------------
124 cd %thirdpartyGeneration%\thirdparty_source\wxWidgets\2.9.2\build\msw
125 nmake -f makefile.vc BUILD=%buildType% UNICODE=1 SHARED=1
128 echo ----End wxWidgets Installation-----
130 echo -----------------------------------
131 echo ------Boost Installation-----------
132 echo -----------------------------------
133 echo -------Setting Variables-----------
135 set BOOSTDIR=%thirdpartyGeneration%\thirdparty_source\Boost\1.47.0\
137 echo ----------Extracting---------------
139 cd %thirdpartyGeneration%\thirdparty_source\
142 %zipPath% x %thirdpartyGeneration%\thirdparty_source\boost_1_47_0.7z
143 del %thirdpartyGeneration%\thirdparty_source\boost_1_47_0.7z
145 echo --------Renaming Folder------------
147 rename boost_1_47_0 1.47.0
149 echo ----------Installing---------------
151 cd %thirdpartyGeneration%\thirdparty_source\Boost\1.47.0\
154 if %PROCESSOR_ARCHITECTURE%==x86 (
156 b2.exe --toolset=msvc-10.0 --build-type=complete stage
161 b2.exe --toolset=msvc-10.0 --build-type=complete architecture=x86 address-model=64 stage
167 echo -----End Boost Installation--------
169 echo -----------------------------------
170 echo -------VTK Installation------------
171 echo -----------------------------------
172 echo ----------Extracting---------------
174 cd %thirdpartyGeneration%\thirdparty_source\
175 %zipPath% x %thirdpartyGeneration%\thirdparty_source\vtk-5.8.0.tar.gz
176 %zipPath% x %thirdpartyGeneration%\thirdparty_source\vtk-5.8.0.tar.gz
177 cd %thirdpartyGeneration%\thirdparty_source\VTK
178 del %thirdpartyGeneration%\thirdparty_source\VTK-5.8.0.tar.gz
179 del %thirdpartyGeneration%\thirdparty_source\VTK-5.8.0.tar.gz
181 echo ----------Installing---------------
186 cmake -G"Visual Studio 10" -H%sourcepath%\%vtk% -B%binpath%\%vtk%Bin
187 cmake -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%vtk%\ CMakeCache.txt
188 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
190 FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%buildType%
191 msbuild /p:Configuration=%buildType% INSTALL.vcxproj
194 echo ------End VTK Installation---------
196 echo -----------------------------------
197 echo -------GDCM Installation-----------
198 echo -----------------------------------
199 echo -------Setting Variables-----------
200 echo ----------Extracting---------------
202 cd %thirdpartyGeneration%\thirdparty_source
203 %zipPath% x gdcm.tar.gz
208 echo ----------Installing---------------
213 cmake -G"Visual Studio 10" -H%sourcepath%\%gdcm% -B%binpath%\%gdcm%Bin
214 cmake -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%gdcm%\ CMakeCache.txt
215 cmake -D VTK_DIR:PATH=%binpath%\%vtk%Bin -D GDCM_VTK:BOOL=ON -D BUILD_TESTING:BOOL=OFF -D GDCM_NAME_SPACE:STRING=gdcm13 CMakeCache.txt
217 FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%buildType%
218 msbuild /p:Configuration=%buildType% INSTALL.vcxproj
221 echo -----End GDCM Installation---------
223 echo -----------------------------------
224 echo -------ITK Installation------------
225 echo -----------------------------------
226 echo ----------Extracting---------------
228 cd %thirdpartyGeneration%\thirdparty_source
229 %zipPath% x InsightToolkit-3.20.0.zip
230 del InsightToolkit-3.20.0.zip
232 echo ----------Installing---------------
237 cmake -G"Visual Studio 10" -H%sourcepath%\%itk% -B%binpath%\%itk%Bin
238 cmake -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%itk%\ -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF -D BUILD_SHARED_LIBS:BOOL=ON -D ITK_USE_REVIEW:BOOL=ON CMakeCache.txt
239 cmake -D USE_DEBUG_LIB:BOOL=%buildType% CMakeCache.txt
241 FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%buildType%
242 msbuild /p:Configuration=%buildType% INSTALL.vcxproj
245 echo ------End ITK Installation---------
247 echo -----------------------------------
248 echo ------XERCES Installation----------
249 echo -----------------------------------
250 echo ----------Extracting---------------
252 cd %thirdpartyGeneration%\thirdparty_source
253 %zipPath% x xerces-c-3.1.1.zip
254 del xerces-c-3.1.1.zip
256 echo ----------Installing---------------
258 cd %sourcepath%\%xercesc%\projects\Win32\VC10\xerces-all
259 FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=build
260 FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%buildType%
261 msbuild /p:Configuration=%buildType% INSTALL.vcxproj
263 echo -----End XERCES Installation-------