From ab0c2f729a86c5d479bf1a96b22055d2bb28f9a4 Mon Sep 17 00:00:00 2001 From: Diego Caceres Date: Mon, 26 Sep 2011 08:09:06 +0000 Subject: [PATCH] DFCH: Script with the last VTK update (GDCM still doesn't work :s :s) --- .../scripts/install_thirdparty_all.bat | 90 ++++++++++--------- 1 file changed, 46 insertions(+), 44 deletions(-) diff --git a/Install_ThirdParty/scripts/install_thirdparty_all.bat b/Install_ThirdParty/scripts/install_thirdparty_all.bat index 0086fbe..9ae4375 100644 --- a/Install_ThirdParty/scripts/install_thirdparty_all.bat +++ b/Install_ThirdParty/scripts/install_thirdparty_all.bat @@ -43,6 +43,8 @@ echo ----------------------------------- @echo on call %vcvarsall% +goto next + @echo off echo ----------------------------------- echo -------Creating Folders------------ @@ -166,6 +168,48 @@ cd C:\ @echo off echo -----End Boost Installation-------- +echo ----------------------------------- +echo -------ITK Installation------------ +echo ----------------------------------- +echo ----------Extracting--------------- +@echo on +cd %thirdpartyGeneration%\thirdparty_source +%zipPath% x InsightToolkit-3.20.0.zip +del InsightToolkit-3.20.0.zip +@echo off +echo ----------Installing--------------- +@echo on +cd %binpath% +mkdir %itk%Bin +cd %itk%Bin +cmake -G"Visual Studio 10" -H%sourcepath%\%itk% -B%binpath%\%itk%Bin +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 +cmake -D USE_DEBUG_LIB:BOOL=%buildType% CMakeCache.txt +cmake CMakeCache.txt +FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%buildType% +msbuild /p:Configuration=%buildType% INSTALL.vcxproj +cd c:\ +@echo off +echo ------End ITK Installation--------- + +echo ----------------------------------- +echo ------XERCES Installation---------- +echo ----------------------------------- +echo ----------Extracting--------------- +@echo on +cd %thirdpartyGeneration%\thirdparty_source +%zipPath% x xerces-c-3.1.1.zip +del xerces-c-3.1.1.zip +@echo off +echo ----------Installing--------------- +@echo on +cd %sourcepath%\%xercesc%\projects\Win32\VC10\xerces-all +FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=build +FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%buildType% +msbuild /p:Configuration=%buildType% INSTALL.vcxproj +@echo off +echo -----End XERCES Installation------- +:next echo ----------------------------------- echo -------VTK Installation------------ echo ----------------------------------- @@ -173,10 +217,10 @@ echo ----------Extracting--------------- @echo on cd %thirdpartyGeneration%\thirdparty_source\ %zipPath% x %thirdpartyGeneration%\thirdparty_source\vtk-5.8.0.tar.gz -%zipPath% x %thirdpartyGeneration%\thirdparty_source\vtk-5.8.0.tar.gz +%zipPath% x %thirdpartyGeneration%\thirdparty_source\vtk-5.8.0.tar cd %thirdpartyGeneration%\thirdparty_source\VTK del %thirdpartyGeneration%\thirdparty_source\VTK-5.8.0.tar.gz -del %thirdpartyGeneration%\thirdparty_source\VTK-5.8.0.tar.gz +del %thirdpartyGeneration%\thirdparty_source\VTK-5.8.0.tar @echo off echo ----------Installing--------------- @echo on @@ -219,48 +263,6 @@ msbuild /p:Configuration=%buildType% INSTALL.vcxproj cd c:\ @echo off echo -----End GDCM Installation--------- - -echo ----------------------------------- -echo -------ITK Installation------------ -echo ----------------------------------- -echo ----------Extracting--------------- -@echo on -cd %thirdpartyGeneration%\thirdparty_source -%zipPath% x InsightToolkit-3.20.0.zip -del InsightToolkit-3.20.0.zip -@echo off -echo ----------Installing--------------- -@echo on -cd %binpath% -mkdir %itk%Bin -cd %itk%Bin -cmake -G"Visual Studio 10" -H%sourcepath%\%itk% -B%binpath%\%itk%Bin -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 -cmake -D USE_DEBUG_LIB:BOOL=%buildType% CMakeCache.txt -cmake CMakeCache.txt -FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%buildType% -msbuild /p:Configuration=%buildType% INSTALL.vcxproj -cd c:\ -@echo off -echo ------End ITK Installation--------- - -echo ----------------------------------- -echo ------XERCES Installation---------- -echo ----------------------------------- -echo ----------Extracting--------------- -@echo on -cd %thirdpartyGeneration%\thirdparty_source -%zipPath% x xerces-c-3.1.1.zip -del xerces-c-3.1.1.zip -@echo off -echo ----------Installing--------------- -@echo on -cd %sourcepath%\%xercesc%\projects\Win32\VC10\xerces-all -FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=build -FOR /R %%a IN (*.sln) DO msbuild %%a /p:Configuration=%buildType% -msbuild /p:Configuration=%buildType% INSTALL.vcxproj -@echo off -echo -----End XERCES Installation------- @echo on cd c:\ pause -- 2.45.1