set boost=boost
set xercesc=xerces
set itk=itk
-set gdcm=gdcm
+set gdcm=gdcm13
set vtk=vtk
set tth=tth
set wxPrefixmsw=wxmsw28
set boostMT=-vc100-mt-1_49.dll
set boostMTGD=-vc100-mt-gd-1_49.dll
-echo ) else (
-echo set qtBtype=d4
-echo set wxPrefixBase=wxbase293d
-echo set wxPrefixmsw=wxmsw293d
-echo )
+ )
+::else (
+::echo set qtBtype=d4
+::echo set wxPrefixBase=wxbase293d
+::echo set wxPrefixmsw=wxmsw293d
+::echo )
if %x86Comp%==ON (
echo Environment variables Configuration
echo -----------------------------------
echo ThirdpartyGeneration=%thirdpartyGeneration%
-echo MikTex=%miktex%
-echo miktexAux=%miktexAux%
echo InstallPath=%installpath%
echo BinPath=%binpath%
echo SourcePath=%sourcepath%
copy /V /Y %QTDIR%\bin\QtXml%qtBtype%.dll %creaThirdPartydlls%
copy /V /Y %QTDIR%\bin\QtXmlPatterns%qtBtype%.dll %creaThirdPartydlls%
-:: In order to compile I have to copy the following dlls -- change it because those libraries should be in dll folder of thirdparty libs
-copy /V /Y %QTDIR%\bin\assistant.exe %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\designer.exe %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\dumpcpp.exe %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\idc.exe %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\lconvert.exe %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\linguist.exe %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\lrelease.exe %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\lupdate.exe %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\moc.exe %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\pixeltool.exe %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\qcollectiongenerator.exe %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\qhelpconverter.exe %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\qhelpgenerator.exe %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\qmake.exe %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\qt3to4.exe %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\qtdemo.exe %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\rcc.exe %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\uic.exe %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\uic3.exe %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\xmlpatterns.exe %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\Qt3Support%qtBtype%.dll %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\QtCore%qtBtype%.dll %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\QtDesigner%qtBtype%.dll %creaThirdPartydlls%
-copy /V /Y %QTDIR%\bin\QtDesignerComponents%qtBtype%.dll %creaThirdPartydlls%
-::End of temporal copy
-
echo -----------------------------------
echo -------------wxWidgets-------------
echo -----------------------------------
::The following line is to force x86 or x64 compilation
set x86Comp=%3
-set MIKTEXPFDIR="%ProgramFilesPath_x86%\MiKTeX 2.9\miktex\bin\texworks.exe"
-
set installpath=%thirdpartyGeneration%\thirdparty_install\%buildType%
set binpath=%thirdpartyGeneration%\thirdparty_bin\%buildType%
set sourcepath=%thirdpartyGeneration%\thirdparty_source\%buildType%
set boost=boost
set xercesc=xerces
set itk=itk
-set gdcm=gdcm
+set gdcm=gdcm13
set vtk=vtk
set tth=tth
-set miktex=miktex
set QTDIR=%sourcepath%\%qt%
set VTKINSTALLDIR=%installpath%\%vtk%
set GDCMINSTALLDIR=%installpath%\%gdcm%
set TTHDIR=%sourcepath%\%tth%
-set MIKTEXDIR=%creaThirdPartyLibraries%\%miktex%
-
-if not exist %MIKTEXPFDIR% (
- set MIKTEXPFDIR="%ProgramFilesPath_x64%\MiKTeX 2.9\miktex\bin\texworks.exe"
- if not exist %MIKTEXPFDIR% (
- echo ERROR!!! MiKTex has not been found in the system
- exit
- ) else set MIKTEXPFDIR="%ProgramFilesPath_x64%\MiKTeX 2.9"
-) else set MIKTEXPFDIR="%ProgramFilesPath_x86%\MiKTeX 2.9"
-
echo if(%buildType%==release)(
set qtBtype=4
set wxPrefixBase=wxbase28
set wxPrefixmsw=wxmsw28
- set boostMT=-vc100-mt-1_49.*
- set boostMTGD=-vc100-mt-gd-1_49.*
- set boostMTS=-vc100-mt-s-1_49.*
- set boostMTSGD=-vc100-mt-sgd-1_49.*
-echo ) else (
-echo set qtBtype=d4
-echo set wxPrefixBase=wxbase293d
-echo set wxPrefixmsw=wxmsw293d
-echo )
+ set boostMT=-vc100-mt-1_49.lib
+ set boostMTGD=-vc100-mt-gd-1_49.lib
+ set boostMTS=-vc100-mt-s-1_49.lib
+ set boostMTSGD=-vc100-mt-sgd-1_49.lib
+ )
+:: else (
+:: set qtBtype=d4
+:: set wxPrefixBase=wxbase293d
+:: set wxPrefixmsw=wxmsw293d
+:: )
if %x86Comp%==ON (
set vcFolder=vc_dll
echo Environment variables Configuration
echo -----------------------------------
echo ThirdpartyGeneration=%thirdpartyGeneration%
-echo MikTex=%miktex%
-echo miktexAux=%miktexAux%
echo InstallPath=%installpath%
echo BinPath=%binpath%
echo SourcePath=%sourcepath%
mkdir %creaThirdPartyLibraries%\%qt%\src\
XCOPY %QTDIR%\mkspecs\* %creaThirdPartyLibraries%\%qt%\mkspecs\ /s /i
-XCOPY %QTDIR%\include\* %creaThirdPartyLibraries%\%qt%\include\ /s /i
+
+XCOPY %QTDIR%\include\ActiveQt %creaThirdPartyLibraries%\%qt%\include\ActiveQt /s /i
+XCOPY %QTDIR%\include\phonon %creaThirdPartyLibraries%\%qt%\include\phonon /s /i
+XCOPY %QTDIR%\include\Qt %creaThirdPartyLibraries%\%qt%\include\Qt /s /i
+XCOPY %QTDIR%\include\Qt3Support %creaThirdPartyLibraries%\%qt%\include\Qt3Support /s /i
+XCOPY %QTDIR%\include\QtCore %creaThirdPartyLibraries%\%qt%\include\QtCore /s /i
+XCOPY %QTDIR%\include\QtDBus %creaThirdPartyLibraries%\%qt%\include\QtDBus /s /i
+XCOPY %QTDIR%\include\QtDeclarative %creaThirdPartyLibraries%\%qt%\include\QtDeclarative /s /i
+XCOPY %QTDIR%\include\QtDesigner %creaThirdPartyLibraries%\%qt%\include\QtDesigner /s /i
+XCOPY %QTDIR%\include\QtGui %creaThirdPartyLibraries%\%qt%\include\QtGui /s /i
+XCOPY %QTDIR%\include\QtHelp %creaThirdPartyLibraries%\%qt%\include\QtHelp /s /i
+XCOPY %QTDIR%\include\QtNetwork %creaThirdPartyLibraries%\%qt%\include\QtNetwork /s /i
+XCOPY %QTDIR%\include\QtOpenGL %creaThirdPartyLibraries%\%qt%\include\QtOpenGL /s /i
+XCOPY %QTDIR%\include\QtScript %creaThirdPartyLibraries%\%qt%\include\QtScript /s /i
+XCOPY %QTDIR%\include\QtScriptTools %creaThirdPartyLibraries%\%qt%\include\QtScriptTools /s /i
+XCOPY %QTDIR%\include\QtSql %creaThirdPartyLibraries%\%qt%\include\QtSql /s /i
+XCOPY %QTDIR%\include\QtSvg %creaThirdPartyLibraries%\%qt%\include\QtSvg /s /i
+XCOPY %QTDIR%\include\QtTest %creaThirdPartyLibraries%\%qt%\include\QtTest /s /i
+XCOPY %QTDIR%\include\QtUiTools %creaThirdPartyLibraries%\%qt%\include\QtUiTools /s /i
+XCOPY %QTDIR%\include\QtWebKit %creaThirdPartyLibraries%\%qt%\include\QtWebKit /s /i
+XCOPY %QTDIR%\include\QtXml %creaThirdPartyLibraries%\%qt%\include\QtXml /s /i
+XCOPY %QTDIR%\include\QtXmlPatterns %creaThirdPartyLibraries%\%qt%\include\QtXmlPatterns /s /i
copy /V /Y %QTDIR%\bin\assistant.exe %creaThirdPartyLibraries%\%qt%\bin\
copy /V /Y %QTDIR%\bin\designer.exe %creaThirdPartyLibraries%\%qt%\bin\
copy /V /Y %QTDIR%\bin\QtDesigner%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
copy /V /Y %QTDIR%\bin\QtDesignerComponents%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
-:: In order to compile I have to copy the following dlls -- change it because those libraries should be in dll folder of thirdparty libs
-copy /V /Y %QTDIR%\bin\phonon%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
-copy /V /Y %QTDIR%\bin\QtCore%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
-copy /V /Y %QTDIR%\bin\QtGui%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
-copy /V /Y %QTDIR%\bin\QtNetwork%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
-copy /V /Y %QTDIR%\bin\QtOpenGL%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
-copy /V /Y %QTDIR%\bin\QtScript%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
-copy /V /Y %QTDIR%\bin\QtScriptTools%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
-copy /V /Y %QTDIR%\bin\QtSql%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
-copy /V /Y %QTDIR%\bin\QtSvg%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
-copy /V /Y %QTDIR%\bin\QtTest%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
-copy /V /Y %QTDIR%\bin\QtXml%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
-copy /V /Y %QTDIR%\bin\QtXmlPatterns%qtBtype%.dll %creaThirdPartyLibraries%\%qt%\bin\
-::End of temporal copy
-
-XCOPY %QTDIR%\lib\*.lib %creaThirdPartyLibraries%\%qt%\lib\ /i
+::XCOPY %QTDIR%\lib\*.lib %creaThirdPartyLibraries%\%qt%\lib\ /i DFCH
+copy /V /Y %QTDIR%\lib\phonon4.lib %creaThirdPartyLibraries%\%qt%\lib\
+copy /V /Y %QTDIR%\lib\QAxContainer.lib %creaThirdPartyLibraries%\%qt%\lib\
+copy /V /Y %QTDIR%\lib\QAxServer.lib %creaThirdPartyLibraries%\%qt%\lib\
+copy /V /Y %QTDIR%\lib\Qt3Support4.lib %creaThirdPartyLibraries%\%qt%\lib\
+copy /V /Y %QTDIR%\lib\QtCore4.lib %creaThirdPartyLibraries%\%qt%\lib\
+copy /V /Y %QTDIR%\lib\QtGui4.lib %creaThirdPartyLibraries%\%qt%\lib\
+copy /V /Y %QTDIR%\lib\qtmain.lib %creaThirdPartyLibraries%\%qt%\lib\
+copy /V /Y %QTDIR%\lib\QtNetwork4.lib %creaThirdPartyLibraries%\%qt%\lib\
+copy /V /Y %QTDIR%\lib\QtOpenGL4.lib %creaThirdPartyLibraries%\%qt%\lib\
+copy /V /Y %QTDIR%\lib\QtScript4.lib %creaThirdPartyLibraries%\%qt%\lib\
+copy /V /Y %QTDIR%\lib\QtSql4.lib %creaThirdPartyLibraries%\%qt%\lib\
+copy /V /Y %QTDIR%\lib\QtSvg4.lib %creaThirdPartyLibraries%\%qt%\lib\
+copy /V /Y %QTDIR%\lib\QtTest4.lib %creaThirdPartyLibraries%\%qt%\lib\
+copy /V /Y %QTDIR%\lib\QtXml4.lib %creaThirdPartyLibraries%\%qt%\lib\
+copy /V /Y %QTDIR%\lib\QtXmlPatterns4.lib %creaThirdPartyLibraries%\%qt%\lib\
mkdir %creaThirdPartyLibraries%\%qt%\src\corelib
mkdir %creaThirdPartyLibraries%\%qt%\src\gui
XCOPY %QTDIR%\src\corelib\* %creaThirdPartyLibraries%\%qt%\src\corelib /s /i
+rmdir %creaThirdPartyLibraries%\%qt%\src\corelib\animation /S /Q
+rmdir %creaThirdPartyLibraries%\%qt%\src\corelib\tmp /S /Q
+rmdir %creaThirdPartyLibraries%\%qt%\src\corelib\statemachine /S /Q
-echo %QTDIR%\src\gui\
-echo %creaThirdPartyLibraries%\%qt%\src\gui
XCOPY %QTDIR%\src\gui\* %creaThirdPartyLibraries%\%qt%\src\gui /s /i
+::Cleaning directories
+rmdir %creaThirdPartyLibraries%\%qt%\src\gui\animation /S /Q
+rmdir %creaThirdPartyLibraries%\%qt%\src\gui\effects /S /Q
+rmdir %creaThirdPartyLibraries%\%qt%\src\gui\egl /S /Q
+rmdir %creaThirdPartyLibraries%\%qt%\src\gui\embedded /S /Q
+rmdir %creaThirdPartyLibraries%\%qt%\src\gui\math3d /S /Q
+rmdir %creaThirdPartyLibraries%\%qt%\src\gui\s60framework /S /Q
+rmdir %creaThirdPartyLibraries%\%qt%\src\gui\statemachine /S /Q
+rmdir %creaThirdPartyLibraries%\%qt%\src\gui\symbian /S /Q
+rmdir %creaThirdPartyLibraries%\%qt%\src\gui\tmp /S /Q
echo -----------------------------------
echo -------------wxWidgets-------------
mkdir %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
-:: In order to compile I have to copy the following dlls -- change it because those libraries should be in dll folder of thirdparty libs
-copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_net_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
-copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
-copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_xml_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
-copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_adv_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
-copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_aui_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
-copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_core_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
-copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_gl_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
-copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_html_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
-copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_media_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
-copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_qa_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
-copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_richtext_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
-copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixmsw%_xrc_vc_custom.dll %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
-::End of temporal copy
-
copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%.lib %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_net.lib %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
copy /V /Y %WXDIR%\lib\%vcFolder%\%wxPrefixBase%_xml.lib %creaThirdPartyLibraries%\%wxWidgets%\lib\%vcFolder%
copy /V /Y %XERCESDIR%\Build\%winType%\VC10\Release\xerces-c_3.lib %creaThirdPartyLibraries%\%xercesc%\lib\
-:: In order to compile I have to copy the following dlls -- change it because those libraries should be in dll folder of thirdparty libs
-copy /V /Y %XERCESDIR%\Build\%winType%\VC10\Release\xerces-c_3_1.dll %creaThirdPartyLibraries%\%xercesc%\lib\
-
-
echo -----------------------------------
echo -------------ITK-------------------
echo -----------------------------------
mkdir %creaThirdPartyLibraries%\%vtk%\include
mkdir %creaThirdPartyLibraries%\%vtk%\lib
-mkdir %creaThirdPartyLibraries%\%vtk%\bin
+::mkdir %creaThirdPartyLibraries%\%vtk%\bin
XCOPY %VTKINSTALLDIR%\include\* %creaThirdPartyLibraries%\%vtk%\include /s /i
XCOPY %VTKINSTALLDIR%\lib\* %creaThirdPartyLibraries%\%vtk%\lib /s /i
-XCOPY %VTKINSTALLDIR%\bin\* %creaThirdPartyLibraries%\%vtk%\bin /s /i
+::XCOPY %VTKINSTALLDIR%\bin\* %creaThirdPartyLibraries%\%vtk%\bin /s /i
+
+echo cleaning
+
+del %creaThirdPartyLibraries%\%vtk%\lib\vtk-5.10\VTKTargets.cmake
+del %creaThirdPartyLibraries%\%vtk%\lib\vtk-5.10\VTKTargets-release.cmake
echo -----------------------------------
echo -------------GDCM------------------
mkdir %creaThirdPartyLibraries%\tth
XCOPY %TTHDIR%\* %creaThirdPartyLibraries%\%tth% /s /i
-::echo -----------------------------------
-::echo -------------MiKText---------------
-::echo -----------------------------------
-::mkdir %creaThirdPartyLibraries%\%miktexAux%
-
-::XCOPY %MIKTEXPFDIR%\* %MIKTEXDIR% /s /i
-
-
echo -----------------------------------
echo -----End of Moving Libraries-------
echo -----------------------------------