set buildType=%2
set wxStable=%3
-set urlCreatisSource=http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source
+:: set urlCreatisSource=http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source
+set urlCreatisSource=http://www.creatis.insa-lyon.fr/~caceres/software
if %PROCESSOR_ARCHITECTURE%==x86 (
set ProgramFilesPath_x86=%ProgramFiles%
)
set zipPath="%ProgramFilesPath_x86%\7-Zip\7z.exe"
-set miktex="%ProgramFilesPath_x86%\MiKTeX 2.9\miktex\bin\texworks.exe"
set vcvarsall="%ProgramFilesPath_x86%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
set wgetPath="%ProgramFilesPath_x86%\GnuWin32\bin\wget.exe"
exit
)
-if not exist %miktex% (
- set miktex="%ProgramFilesPath_x64%\MiKTeX 2.9\miktex\bin\texworks.exe"
- if not exist %miktex% (
- echo ERROR!!! MiKTex has not been found in the system
- exit
- )
-)
-
if not exist %wgetPath% (
echo ERROR!!! wget has not been found in the system
exit
set installpath=%thirdpartyGeneration%\thirdparty_install\%buildType%
set binpath=%thirdpartyGeneration%\thirdparty_bin\%buildType%
set sourcepath=%thirdpartyGeneration%\thirdparty_source\%buildType%
+set LogFolder=%thirdpartyGeneration%\installLog
set QTFNAME=qt-everywhere-opensource-src-4.8.2.zip
set XERCESFNAME=xerces-c-3.1.1.zip
set ITKFNAME=InsightToolkit-3.20.1.zip
set VTKFNAME=vtk-5.10.0.zip
-::set GDCMFNAME=gdcm_11_Oct_2011.tar.gz
-set GDCMFNAME=gdcm_05_Mai_2011.tar
+set GDCMFNAME=gdcm_11_Oct_2011.tar
+::set GDCMFNAME=gdcm_05_Mai_2011.tar
set TTHFNAME=tth_exe.zip
set JOMFNAME=jom.zip
echo ThirdpartyGeneration=%thirdpartyGeneration%
echo BuildType=%buildType%
echo wget=%wgetPath%
-echo MikTex=%miktex%
echo urlCreatis=%urlCreatisSource%
echo 7zip=%zipPath%
echo Visual Studio=%vcvarsall%
echo BinPath=%binpath%
echo SourcePath=%sourcepath%
-echo -----------------------------------
-echo -------Removing Folders------------
-echo -----------------------------------
-
-rmdir /S /Q %thirdpartyGeneration%
-
-echo -----------------------------------
-echo -------Creating Folders------------
-echo -----------------------------------
-
-mkdir %thirdpartyGeneration%
-cd %thirdpartyGeneration%
-mkdir %sourcepath%
-mkdir %binpath%
-mkdir %installpath%
-
echo -----------------------------------
echo ------Downloading Sources----------
echo -----------------------------------
%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 -----------------------------------
%zipPath% x %XERCESFNAME%
del %XERCESFNAME%
-echo -----------------------------------
-echo ------------GDCM ------------------
-echo -----------------------------------
-
-cd %sourcepath%
-%zipPath% x %GDCMFNAME%.gz
-%zipPath% x %GDCMFNAME%
-del %GDCMFNAME%.gz
-del %GDCMFNAME%
-
echo -----------------------------------
echo --------------TTH------------------
echo -----------------------------------
rename boost_1_49_0 boost
rename InsightToolkit-3.20.1 itk
rename VTK vtk
-rename gdcm gdcm
+rename gdcm gdcm13
rename tth_exe tth
rename xerces-c-3.1.1 xerces
echo -----End of Download Libraries-----
echo -----------------------------------
+echo -----------------------------------
exit /B
\ No newline at end of file