]> Creatis software - creaToolsTools.git/commitdiff
#3200 creaToolsTools Feature New Normal branch mingw64
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Mon, 2 Jul 2018 13:49:06 +0000 (15:49 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Mon, 2 Jul 2018 13:49:06 +0000 (15:49 +0200)
18 files changed:
Install_mingw64/Install_CreaTools/creatools.bat [new file with mode: 0644]
Install_mingw64/Install_CreaTools/creatools.bat_TEMPLATE [new file with mode: 0644]
Install_mingw64/Install_CreaTools/scripts/All.bat [new file with mode: 0644]
Install_mingw64/Install_CreaTools/scripts/All2.bat [new file with mode: 0644]
Install_mingw64/Install_CreaTools/scripts/base/cleangeneral.bat [new file with mode: 0644]
Install_mingw64/Install_CreaTools/scripts/base/configureVariables.bat [new file with mode: 0644]
Install_mingw64/Install_CreaTools/scripts/base/downloadSources.bat [new file with mode: 0644]
Install_mingw64/Install_CreaTools/scripts/base/gitclone.bat [new file with mode: 0644]
Install_mingw64/Install_CreaTools/scripts/gitcall.bat [new file with mode: 0644]
Install_mingw64/Install_CreaTools/scripts/tmp.sh [new file with mode: 0644]
Install_mingw64/Install_ThirdParty/install-All.bat [new file with mode: 0644]
Install_mingw64/Install_ThirdParty/install_generate_thirdparty-x64Release.bat [new file with mode: 0644]
Install_mingw64/Install_ThirdParty/scripts/cleanAll.bat [new file with mode: 0644]
Install_mingw64/Install_ThirdParty/scripts/download_ThirdPartySW.bat [new file with mode: 0644]
Install_mingw64/Install_ThirdParty/scripts/install_thirdparty_all.bat [new file with mode: 0644]
Install_mingw64/Install_ThirdParty/scripts/makeAll.bat [new file with mode: 0644]
Install_mingw64/Install_ThirdParty/scripts/tpl_variables.bat [new file with mode: 0644]
Install_mingw64/Readme_EED.txt [new file with mode: 0644]

diff --git a/Install_mingw64/Install_CreaTools/creatools.bat b/Install_mingw64/Install_CreaTools/creatools.bat
new file mode 100644 (file)
index 0000000..0c0ff67
--- /dev/null
@@ -0,0 +1,10 @@
+@echo off
+set creatoolsGeneration=C:\Users\davila\Creatools\C5\ct
+set docGeneration=OFF
+
+cd scripts
+call All.bat %creatoolsGeneration% %docGeneration% 
+cd ..
+pause
+exit
+
diff --git a/Install_mingw64/Install_CreaTools/creatools.bat_TEMPLATE b/Install_mingw64/Install_CreaTools/creatools.bat_TEMPLATE
new file mode 100644 (file)
index 0000000..78e0e96
--- /dev/null
@@ -0,0 +1,33 @@
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
+REM                        pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM  This software is governed by the CeCILL-B license under French law and 
+REM  abiding by the rules of distribution of free software. You can  use, 
+REM  modify and/ or redistribute the software under the terms of the CeCILL-B 
+REM  license as circulated by CEA, CNRS and INRIA at the following URL 
+REM  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
+REM  or in the file LICENSE.txt.
+REM
+REM  As a counterpart to the access to the source code and  rights to copy,
+REM  modify and redistribute granted by the license, users are provided only
+REM  with a limited warranty  and the software's author,  the holder of the
+REM  economic rights,  and the successive licensors  have only  limited
+REM  liability. 
+REM
+REM  The fact that you are presently reading this means that you have had
+REM  knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------  
+
+@echo off
+set creatoolsGeneration=<directory where you want to generate>
+set docGeneration=<OFF|ON> let it to OFF!
+
+cd scripts
+call All.bat %creatoolsGeneration% %docGeneration%
+cd ..
+pause
+exit
+
diff --git a/Install_mingw64/Install_CreaTools/scripts/All.bat b/Install_mingw64/Install_CreaTools/scripts/All.bat
new file mode 100644 (file)
index 0000000..a0b08ca
--- /dev/null
@@ -0,0 +1,59 @@
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
+REM                        pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM  This software is governed by the CeCILL-B license under French law and 
+REM  abiding by the rules of distribution of free software. You can  use, 
+REM  modify and/ or redistribute the software under the terms of the CeCILL-B 
+REM  license as circulated by CEA, CNRS and INRIA at the following URL 
+REM  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
+REM  or in the file LICENSE.txt.
+REM
+REM  As a counterpart to the access to the source code and  rights to copy,
+REM  modify and redistribute granted by the license, users are provided only
+REM  with a limited warranty  and the software's author,  the holder of the
+REM  economic rights,  and the successive licensors  have only  limited
+REM  liability. 
+REM
+REM  The fact that you are presently reading this means that you have had
+REM  knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------  
+
+@echo off
+
+set creatoolsGeneration=%1
+set docGeneration=%2
+
+set scriptsFolder=%cd%
+
+
+rmdir %logFolder% /s /q
+mkdir %logFolder%
+mkdir %creatoolsGeneration%
+
+echo call configure variables
+call %scriptsFolder%\base\configureVariables.bat
+
+echo call Clean and Download-Sources
+::start /B /wait %scriptsFolder%\base\downloadSources.bat
+
+echo %cd%
+
+::cd %scriptsFolder%
+::call All2.bat %creatoolsGeneration% %docGeneration% Release Win64
+
+::cd %scriptsFolder%
+::call All2.bat %creatoolsGeneration% %docGeneration% Release Win32 
+
+::cd %scriptsFolder%
+::call All2.bat %creatoolsGeneration% %docGeneration% Debug Win64
+
+::cd %scriptsFolder%
+::call All2.bat %creatoolsGeneration% %docGeneration% Debug Win32
+
+echo ..End..
+
+cd %scriptsFolder%
+
diff --git a/Install_mingw64/Install_CreaTools/scripts/All2.bat b/Install_mingw64/Install_CreaTools/scripts/All2.bat
new file mode 100644 (file)
index 0000000..1266cc9
--- /dev/null
@@ -0,0 +1,81 @@
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
+REM                        pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM  This software is governed by the CeCILL-B license under French law and 
+REM  abiding by the rules of distribution of free software. You can  use, 
+REM  modify and/ or redistribute the software under the terms of the CeCILL-B 
+REM  license as circulated by CEA, CNRS and INRIA at the following URL 
+REM  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
+REM  or in the file LICENSE.txt.
+REM
+REM  As a counterpart to the access to the source code and  rights to copy,
+REM  modify and redistribute granted by the license, users are provided only
+REM  with a limited warranty  and the software's author,  the holder of the
+REM  economic rights,  and the successive licensors  have only  limited
+REM  liability. 
+REM
+REM  The fact that you are presently reading this means that you have had
+REM  knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------  
+
+REM @echo off
+
+set creatoolsGeneration=%1
+set docgeneration=%2
+set buildtype=%3
+set platforme=%4
+
+set logFolder=%creatoolsGeneration%\creatools_%buildtype%%platforme%\installLog
+set installPrefix=%creatoolsGeneration%\creatools_%buildtype%%platforme%\creatools_install
+
+echo --Change ThirdParty directories (CSI/act)--
+set homedir=%cd%
+cd E:\creatis\CSI
+call act\rename_dir.bat
+rename act_%buildtype%-%platforme% act
+
+cd %creatoolsGeneration%
+
+mkdir creatools_%buildtype%%platforme%
+mkdir creatools_%buildtype%%platforme%\Result_Installers
+mkdir creatools_%buildtype%%platforme%\installLog
+
+echo call configure variables
+call %scriptsFolder%\base\configureVariables.bat
+
+REM goto skypToEED
+REM :skypToEED
+
+echo call compile crea
+start /B /wait %scriptsFolder%\crea\creaInstall.bat
+echo call compile bbtk
+start /B /wait %scriptsFolder%\bbtk\bbtkInstall.bat
+echo call compile creaMaracasVisu
+start /B /wait %scriptsFolder%\creaMaracasVisu\creaMaracasVisuInstall.bat
+echo call compile creaVtk
+start /B /wait %scriptsFolder%\creaVtk\creaVtkInstall.bat
+echo call compile creaEnvironment
+start /B /wait %scriptsFolder%\creaEnvironment\creaEnvironmentInstall.bat
+echo call compile creaBruker
+start /B /wait %scriptsFolder%\creaBruker\creaBrukerInstall.bat
+echo call compile creaImageIO
+start /B /wait %scriptsFolder%\creaImageIO\creaImageIOInstall.bat
+echo call compile creaContours
+start /B /wait %scriptsFolder%\creaContours\creaContoursInstall.bat
+echo call compile creaRigidRegistration
+start /B /wait %scriptsFolder%\creaRigidRegistration\creaRigidRInstall.bat
+echo call compile bbtkGEditor
+start /B /wait %scriptsFolder%\bbtkGEditor\bbtkGEditorInstall.bat
+echo call compile creaMinitools
+start /B /wait %scriptsFolder%\creaTools\creaMinitoolsInstall.bat
+
+
+
+echo  THIS HAS TO BE THE LAST STEP...
+echo call compile creaTools
+start /B /wait %scriptsFolder%\creaTools\creaToolsInstall.bat
+echo To see the log files of this install please go to %LogFolder%
+
diff --git a/Install_mingw64/Install_CreaTools/scripts/base/cleangeneral.bat b/Install_mingw64/Install_CreaTools/scripts/base/cleangeneral.bat
new file mode 100644 (file)
index 0000000..37e01be
--- /dev/null
@@ -0,0 +1,38 @@
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
+REM                        pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM  This software is governed by the CeCILL-B license under French law and 
+REM  abiding by the rules of distribution of free software. You can  use, 
+REM  modify and/ or redistribute the software under the terms of the CeCILL-B 
+REM  license as circulated by CEA, CNRS and INRIA at the following URL 
+REM  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
+REM  or in the file LICENSE.txt.
+REM
+REM  As a counterpart to the access to the source code and  rights to copy,
+REM  modify and redistribute granted by the license, users are provided only
+REM  with a limited warranty  and the software's author,  the holder of the
+REM  economic rights,  and the successive licensors  have only  limited
+REM  liability. 
+REM
+REM  The fact that you are presently reading this means that you have had
+REM  knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------  
+
+@echo off
+
+echo ----------------------------
+echo ----cleangeneral.bat--------
+echo ----------------------------
+
+echo creatoolsGeneration = %1
+
+rmdir %1\creatools_sources /s /q
+rmdir %1\creatools_DebugWin32 /s /q
+rmdir %1\creatools_DebugWin64 /s /q
+rmdir %1\creatools_ReleaseWin32 /s /q
+rmdir %1\creatools_ReleaseWin64 /s /q
+
+exit /B
\ No newline at end of file
diff --git a/Install_mingw64/Install_CreaTools/scripts/base/configureVariables.bat b/Install_mingw64/Install_CreaTools/scripts/base/configureVariables.bat
new file mode 100644 (file)
index 0000000..9898039
--- /dev/null
@@ -0,0 +1,68 @@
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
+REM                        pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM  This software is governed by the CeCILL-B license under French law and 
+REM  abiding by the rules of distribution of free software. You can  use, 
+REM  modify and/ or redistribute the software under the terms of the CeCILL-B 
+REM  license as circulated by CEA, CNRS and INRIA at the following URL 
+REM  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
+REM  or in the file LICENSE.txt.
+REM
+REM  As a counterpart to the access to the source code and  rights to copy,
+REM  modify and redistribute granted by the license, users are provided only
+REM  with a limited warranty  and the software's author,  the holder of the
+REM  economic rights,  and the successive licensors  have only  limited
+REM  liability. 
+REM
+REM  The fact that you are presently reading this means that you have had
+REM  knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------  
+
+@echo off
+
+echo setting variables
+
+set creasource=crea
+set bbtksource=bbtk
+set creamaracassource=creaMaracasVisu
+set creavtksource=creaVtk
+set creaenvironmentsource=creaEnvironment
+set creabrukersource=creaBruker
+set creaimagesource=creaImageIO
+set creacontourssource=creaContours
+set crearigidregistrationssource=creaRigidRegistration
+set bbtkgeditorsource=bbtkGEditor
+set creatoolssource=creaTools
+set creaminitoolssource=creaMiniTools
+
+set baseFolder=%scriptsFolder%\base
+set creadll=%creatoolsGeneration%\creatools_%buildtype%%platforme%\creatools_bin\%creasource%Bin\%buildtype%
+set PATH=%creadll%;%PATH%
+set bbtkdll=%creatoolsGeneration%\creatools_%buildtype%%platforme%\creatools_bin\%bbtksource%Bin\%buildtype%
+set PATH=%bbtkdll%;%PATH%
+set creamaracasdll=%creatoolsGeneration%\creatools_%buildtype%%platforme%\creatools_bin\%creamaracassource%Bin\%buildtype%
+set PATH=%creamaracasdll%;%PATH%
+set creavtkdll=%creatoolsGeneration%\creatools_%buildtype%%platforme%\creatools_bin\%creavtkssource%Bin\%buildtype%
+set PATH=%creavtkdll%;%PATH%
+set creaenvironmentdll=%creatoolsGeneration%\creatools_%buildtype%%platforme%\creatools_bin\%creaenvironmentsource%Bin\%buildtype%
+set PATH=%creaenvironmentdll%;%PATH%
+set creabrukerdll=%creatoolsGeneration%\creatools_%buildtype%%platforme%\creatools_bin\%creabrukersource%Bin\%buildtype%
+set PATH=%creabrukerdll%;%PATH%
+set creaimagedll=%creatoolsGeneration%\creatools_%buildtype%%platforme%\creatools_bin\%creaimagesource%Bin\%buildtype%
+set PATH=%creaimagedll%;%PATH%
+set creacontourdll=%creatoolsGeneration%\creatools_%buildtype%%platforme%\creatools_bin\%creacontourssource%Bin\%buildtype%
+set PATH=%creacontoursdll%;%PATH%
+set crearigidregistrationdll=%creatoolsGeneration%\creatools_%buildtype%%platforme%\creatools_bin\%crearigidregistrationssource%Bin\%buildtype%
+set PATH=%crearigidregistrationdll%;%PATH%
+set bbtkgeditordll=%creatoolsGeneration%\creatools_%buildtype%%platforme%\creatools_bin\%bbtkgeditorsource%Bin\%buildtype%
+set PATH=%bbtkgeditordll%;%PATH%
+set creaminitoolsdll=%creatoolsGeneration%\creatools_%buildtype%%platforme%\creatools_bin\%creaminitoolssource%Bin\%buildtype%
+set PATH=%creaminitoolsdll%;%PATH%
+set creatoolsdll=%creatoolsGeneration%\creatools_%buildtype%%platforme%\creatools_bin\%creatoolssource%Bin\%buildtype%
+set PATH=%creatoolssdll%;%PATH%
+
+echo End setting variables
+
diff --git a/Install_mingw64/Install_CreaTools/scripts/base/downloadSources.bat b/Install_mingw64/Install_CreaTools/scripts/base/downloadSources.bat
new file mode 100644 (file)
index 0000000..033e8a7
--- /dev/null
@@ -0,0 +1,57 @@
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
+REM                        pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM  This software is governed by the CeCILL-B license under French law and 
+REM  abiding by the rules of distribution of free software. You can  use, 
+REM  modify and/ or redistribute the software under the terms of the CeCILL-B 
+REM  license as circulated by CEA, CNRS and INRIA at the following URL 
+REM  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
+REM  or in the file LICENSE.txt.
+REM
+REM  As a counterpart to the access to the source code and  rights to copy,
+REM  modify and redistribute granted by the license, users are provided only
+REM  with a limited warranty  and the software's author,  the holder of the
+REM  economic rights,  and the successive licensors  have only  limited
+REM  liability. 
+REM
+REM  The fact that you are presently reading this means that you have had
+REM  knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------  
+
+@echo off
+
+echo cleaning prefix
+ call %baseFolder%\cleangeneral.bat %creatoolsGeneration% %installPrefix%
+
+echo downloading creatools software
+
+echo echo tmp.sh > tmp.sh
+set creatoolsGeneration2=%creatoolsGeneration:\=/%
+echo mkdir %creatoolsGeneration2% >> tmp.sh
+echo mkdir %creatoolsGeneration2%/creatools_sources >> tmp.sh
+echo cd %creatoolsGeneration2%/creatools_sources    >> tmp.sh
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%creasource%  >> tmp.sh
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%bbtksource%  >> tmp.sh
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%creamaracassource%  >> tmp.sh
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%creavtksource%  >> tmp.sh
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%creaenvironmentsource%  >> tmp.sh
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%creabrukersource%  >> tmp.sh
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%creaimagesource%  >> tmp.sh
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%creacontourssource%  >> tmp.sh
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%crearigidregistrationssource%  >> tmp.sh
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%bbtkgeditorsource%  >> tmp.sh
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%creatoolssource%  >> tmp.sh
+echo git clone ssh://gitolite@git.creatis.insa-lyon.fr/%creaminitoolssource%  >> tmp.sh
+
+echo call gitcall.bat "%cd%\tmp.sh"
+dir
+call gitcall.bat "%cd%\tmp.sh"
+
+ echo end of downloading creatools software
+exit
diff --git a/Install_mingw64/Install_CreaTools/scripts/base/gitclone.bat b/Install_mingw64/Install_CreaTools/scripts/base/gitclone.bat
new file mode 100644 (file)
index 0000000..ff07e13
--- /dev/null
@@ -0,0 +1,37 @@
+REM ---------------------------------------------------------------------
+REM
+REM Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
+REM                        pour la Santé)
+REM Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+REM
+REM  This software is governed by the CeCILL-B license under French law and 
+REM  abiding by the rules of distribution of free software. You can  use, 
+REM  modify and/ or redistribute the software under the terms of the CeCILL-B 
+REM  license as circulated by CEA, CNRS and INRIA at the following URL 
+REM  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
+REM  or in the file LICENSE.txt.
+REM
+REM  As a counterpart to the access to the source code and  rights to copy,
+REM  modify and redistribute granted by the license, users are provided only
+REM  with a limited warranty  and the software's author,  the holder of the
+REM  economic rights,  and the successive licensors  have only  limited
+REM  liability. 
+REM
+REM  The fact that you are presently reading this means that you have had
+REM  knowledge of the CeCILL-B license and that you accept its terms.
+REM ------------------------------------------------------------------------  
+
+@echo off
+
+echo ----------------------------
+echo -----gitclone.bat-----------
+echo ----------------------------
+
+echo creasourcefolder = %1
+REM echo cvsUser = %2
+echo creatoolsGeneration = %2
+
+mkdir %2\creatools_sources
+cd %2\creatools_sources
+REM ::cvs -d :ssh:%2@cvs.creatis.insa-lyon.fr:/cvs/creatis checkout %1
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/%1
diff --git a/Install_mingw64/Install_CreaTools/scripts/gitcall.bat b/Install_mingw64/Install_CreaTools/scripts/gitcall.bat
new file mode 100644 (file)
index 0000000..f0defc8
--- /dev/null
@@ -0,0 +1,5 @@
+echo gitcall
+rem if not exist %1 exit
+::set bash=C:\Program Files (x86)\Git\bin\bash.exe
+set bash=C:\Program Files\Git\bin\bash.exe
+"%bash%"  --login -i -c "exec  "%1""
diff --git a/Install_mingw64/Install_CreaTools/scripts/tmp.sh b/Install_mingw64/Install_CreaTools/scripts/tmp.sh
new file mode 100644 (file)
index 0000000..f542fa0
--- /dev/null
@@ -0,0 +1,16 @@
+echo tmp.sh 
+mkdir C:/Users/davila/Creatools/C5/ct 
+mkdir C:/Users/davila/Creatools/C5/ct/creatools_sources 
+cd C:/Users/davila/Creatools/C5/ct/creatools_sources    
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/crea  
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/bbtk  
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/creaMaracasVisu  
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/creaVtk  
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/creaEnvironment  
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/creaBruker  
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/creaImageIO  
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/creaContours  
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/creaRigidRegistration  
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/bbtkGEditor  
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/creaTools  
+git clone ssh://gitolite@git.creatis.insa-lyon.fr/creaMiniTools  
diff --git a/Install_mingw64/Install_ThirdParty/install-All.bat b/Install_mingw64/Install_ThirdParty/install-All.bat
new file mode 100644 (file)
index 0000000..8740543
--- /dev/null
@@ -0,0 +1,6 @@
+start /wait install_generate_thirdparty-x64Release.bat
+REM start /wait install_generate_thirdparty-x64Debug.bat
+REM start /wait install_generate_thirdparty-x86Release.bat
+REM start /wait install_generate_thirdparty-x86Debug.bat
+
+::pause
\ No newline at end of file
diff --git a/Install_mingw64/Install_ThirdParty/install_generate_thirdparty-x64Release.bat b/Install_mingw64/Install_ThirdParty/install_generate_thirdparty-x64Release.bat
new file mode 100644 (file)
index 0000000..9efae7f
--- /dev/null
@@ -0,0 +1,21 @@
+
+
+@echo off
+
+echo -----------------------------------
+echo ---Setting Environment Variables---
+echo -----------------------------------
+
+set thirdpartyGeneration=C:\Users\davila\Creatools\C5\tpl\x64-R
+set buildType=release
+
+::Set the following line ON if you want to force x86 compilation
+::set forcex86=OFF
+
+call scripts/tpl_variables.bat
+
+call scripts/makeAll.bat
+
+::pause
+
+exit
\ No newline at end of file
diff --git a/Install_mingw64/Install_ThirdParty/scripts/cleanAll.bat b/Install_mingw64/Install_ThirdParty/scripts/cleanAll.bat
new file mode 100644 (file)
index 0000000..e45217a
--- /dev/null
@@ -0,0 +1,39 @@
+@echo off
+
+set thirdpartyGeneration=%1
+
+set installpath=%thirdpartyGeneration%\tpi
+set binpath=%thirdpartyGeneration%\tpb
+set sourcepath=%thirdpartyGeneration%\tps
+set LogFolder=%thirdpartyGeneration%\installLog
+
+echo -----------------------------------
+echo -------Removing Folders------------
+echo -----------------------------------
+
+if %EEDcleanSOURCES%==FALSE GOTO SKIPCLEANSOURCES
+rmdir /S /Q %sourcepath%
+:SKIPCLEANSOURCES
+
+if %EEDcleanBIN%==FALSE GOTO SKIPCLEANBIN
+rmdir /S /Q %binpath%
+:SKIPCLEANBIN
+
+if %EEDcleanINSTALL%==FALSE GOTO SKIPCLEANINSTALL
+rmdir /S /Q %installpath%
+:SKIPCLEANINSTALL
+
+if %EEDcleanLOGS%==FALSE GOTO SKIPCLEANLOGS
+rmdir /S /Q %LogFolder%
+:SKIPCLEANLOGS
+
+echo -----------------------------------
+echo -------Creating Folders------------
+echo -----------------------------------
+
+mkdir %thirdpartyGeneration%
+cd  %thirdpartyGeneration%
+mkdir %sourcepath%
+mkdir %binpath%
+mkdir %installpath%
+mkdir %LogFolder%
\ No newline at end of file
diff --git a/Install_mingw64/Install_ThirdParty/scripts/download_ThirdPartySW.bat b/Install_mingw64/Install_ThirdParty/scripts/download_ThirdPartySW.bat
new file mode 100644 (file)
index 0000000..834d273
--- /dev/null
@@ -0,0 +1,229 @@
+@echo off
+echo -----------------------------------
+echo --------Download Libraries---------
+echo -----------------------------------
+
+echo -----------------------------------
+echo ---Setting Environment Variables---
+echo -----------------------------------
+
+set thirdpartyGeneration=%1
+set buildType=%2
+set wxStable=%3
+
+set urlCreatisSource=https://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/
+
+if %PROCESSOR_ARCHITECTURE%==x86 (
+  set ProgramFilesPath_x86=%ProgramFiles%
+  echo "Architecture found = x86"
+) else (
+  set "ProgramFilesPath_x64=%ProgramFiles%"
+  set "ProgramFilesPath_x86=%ProgramFiles(x86)%"
+  echo "Architecture found = x64"
+)
+
+::set zipPath="%ProgramFilesPath_x86%\7-Zip\7z.exe"
+set zipPath="peazip -ext2here "
+::set vcvarsall="%ProgramFilesPath_x86%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
+set wgetPath="C:\Users\davila\Creatools\For_mingw64\DeveloperTools\wget32\wget.exe"
+
+::if not exist %zipPath% set zipPath="%ProgramFilesPath_x64%\7-Zip\7z.exe"
+::if not exist %zipPath% (
+::  echo ERROR!!! 7Zip has not been found in the system
+::  pause
+::  exit
+::)
+
+::if not exist %vcvarsall% set vcvarsall="%ProgramFilesPath_x64%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
+::if not exist %vcvarsall% (
+::  echo ERROR!!! Visual Studio has not been found in the system
+::  pause
+::  exit
+::)
+
+if not exist %wgetPath% (
+  echo ERROR!!! wget has not been found in the system
+  pause
+  exit
+)
+
+set installpath=%thirdpartyGeneration%\tpi
+set binpath=%thirdpartyGeneration%\tpb
+set sourcepath=%thirdpartyGeneration%\tps
+set LogFolder=%thirdpartyGeneration%\installLog
+
+set QTFNAME=qt-everywhere-opensource-src-4.8.2.zip
+
+
+::set ITKFNAME=InsightToolkit-3.20.1.zip
+set ITKFNAME=InsightToolkit-4.12.1.tar
+::set WXFNAME=wxWidgets-2.8.12.zip
+::set WXVERSION=2.8.12
+set WXFNAME=wxWidgets-3.1.1.7z
+set WXVERSION=3.1.1
+:: set BOOSTFNAME=boost_1_49_0.7z
+:: set BOOSTFNAME=boost_1_52_0.7z
+set BOOSTFNAME=boost_1_64_0.7z
+::set XERCESFNAME=xerces-c-3.1.1.zip
+::set XERCESFNAME=xerces-c-3.1.4.zip
+set XERCESFNAME=xerces-c-3.2.1.zip
+::set VTKFNAME=vtk-5.10.0.zip
+:: set VTKFNAME=VTK-8.1.1-patch_mingw64.7z
+set VTKFNAME=VTK-8.1.1-Patch.7z
+::set GDCMFNAME=gdcm_05_Mai_2011.tar
+::set GDCMFNAME=gdcm_11_Oct_2011.tar
+::set GDCMFNAME=gdcm_10_Mars_2017-vtk7.tar
+set GDCMFNAME=gdcm13_2018_05_28_vtk8.zip
+set TTHFNAME=tth_exe.zip
+set SQLITEFNAME=sqlite_v3.6.23.1.zip
+
+set JOMFNAME=jom.zip
+
+
+echo -----------------------------------
+echo Environment variables Configuration
+echo -----------------------------------
+echo ThirdpartyGeneration=%thirdpartyGeneration%
+echo BuildType=%buildType%
+echo wget=%wgetPath%
+echo urlCreatis=%urlCreatisSource%
+echo 7zip=%zipPath%
+::echo Visual Studio=%vcvarsall%
+echo InstallPath=%installpath%
+echo BinPath=%binpath%
+echo SourcePath=%sourcepath%
+
+echo -----------------------------------
+echo ------Downloading Sources----------
+echo -----------------------------------
+
+cd %sourcepath%\
+
+if %EEDdownloadQT%==FALSE GOTO SKIPDOWNLOADQT
+  %wgetPath% "http://releases.qt-project.org/qt4/source/%QTFNAME%"
+  %wgetPath% "http://releases.qt-project.org/jom/%JOMFNAME%"
+  echo -----------------------------------
+  echo --------------Qt-------------------
+  echo -----------------------------------
+  call %vcvarsall%
+  cd %sourcepath%
+  %zipPath% x %sourcepath%\%QTFNAME%
+  del %sourcepath%\%QTFNAME%
+  echo -----------------------------------
+  echo --------------JOM------------------
+  echo -----------------------------------
+  cd %sourcepath%
+  %zipPath% x %sourcepath%\%JOMFNAME% -o*
+::  del %sourcepath%\%JOMFNAME%
+:SKIPDOWNLOADQT
+
+  
+if %EEDdownloadITK%==FALSE GOTO SKIPDOWNLOADITK
+  %wgetPath% --no-check-certificate "%urlCreatisSource%/%ITKFNAME%.gz"  
+  echo -----------------------------------
+  echo -------------ITK-------------------
+  echo -----------------------------------
+  cd %sourcepath%
+  %zipPath% x %ITKFNAME%.gz
+  %zipPath% x %ITKFNAME%
+::  del %ITKFNAME%
+::  del %ITKFNAME%.gz
+:SKIPDOWNLOADITK
+  
+if %EEDdownloadWXWINDOWS%==FALSE GOTO SKIPDOWNLOADWXWINDOWS
+::  %wgetPath% "http://downloads.sourceforge.net/project/wxwindows/%WXVERSION%/%WXFNAME%?r=http%3A%2F%2Fwww.wxwidgets.org%2Fdownloads%2F%23latest_dev&ts=1357255370&use_mirror=ufpr"
+  %wgetPath% --no-check-certificate  "%urlCreatisSource%/%WXFNAME%"
+  echo -----------------------------------
+  echo -----------wxWidgets---------------
+  echo -----------------------------------
+  echo ----------Extracting---------------
+  cd %sourcepath%
+  %zipPath% x %sourcepath%\%WXFNAME% -owxWidgets_%WXVERSION%
+::  del %sourcepath%\%WXFNAME%
+:SKIPDOWNLOADWXWINDOWS
+
+if %EEDdownloadBOOST%==FALSE GOTO SKIPDOWNLOADBOOST
+:: %wgetPath% "http://downloads.sourceforge.net/project/boost/boost/1.49.0/%BOOSTFNAME%?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fboost%2Ffiles%2Fboost%2F1.49.0%2F&ts=1357255694&use_mirror=hivelocity"
+::  %wgetPath% "http://downloads.sourceforge.net/project/boost/boost/1.64.0/boost_1_64_0.7z?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fboost%2Ffiles%2Fboost%2F1.64.0%2Fboost_1_64_0.7z%2Fdownload&ts=1360058777&use_mirror=ignum"
+  %wgetPath% --no-check-certificate  "%urlCreatisSource%/%BOOSTFNAME%"
+  echo -----------------------------------
+  echo ------------Boost------------------
+  echo -----------------------------------
+  cd %sourcepath%
+  %zipPath% x %sourcepath%\%BOOSTFNAME%
+::  del %sourcepath%\%BOOSTFNAME%
+:SKIPDOWNLOADBOOST
+
+if %EEDdownloadXERCES%==FALSE GOTO SKIPDOWNLOADXERCES
+  %wgetPath% "http://mirror.ibcp.fr/pub/apache//xerces/c/3/sources/%XERCESFNAME%"
+::  %wgetPath% --no-check-certificate "https://archive.apache.org/dist/xerces/c/3/sources/%XERCESFNAME%"
+  echo -----------------------------------
+  echo -------------XERCES----------------
+  echo -----------------------------------
+  cd %sourcepath%
+  %zipPath% x %XERCESFNAME%
+::  del %XERCESFNAME%
+:SKIPDOWNLOADXERCES
+
+if %EEDdownloadVTK%==FALSE GOTO SKIPDOWNLOADVTK
+::  %wgetPath% --no-check-certificate "http://www.vtk.org/files/release/8.1/%VTKFNAME%"
+  %wgetPath% --no-check-certificate "%urlCreatisSource%/%VTKFNAME%"
+  echo -----------------------------------
+  echo -------------VTK-------------------
+  echo -----------------------------------
+  cd %sourcepath%
+  %zipPath% x %sourcepath%\%VTKFNAME%
+::  del %sourcepath%\%VTKFNAME%
+:SKIPDOWNLOADVTK
+  
+if %EEDdownloadGDCM%==FALSE GOTO SKIPDOWNLOADGDCM
+  %wgetPath% --no-check-certificate "%urlCreatisSource%/%GDCMFNAME%"
+  echo -----------------------------------
+  echo ------------GDCM ------------------
+  echo -----------------------------------
+  cd %sourcepath%
+  %zipPath% x %GDCMFNAME%
+::  del %GDCMFNAME%
+::  del %GDCMFNAME%
+:SKIPDOWNLOADGDCM
+  
+if %EEDdownloadTTH%==FALSE GOTO SKIPDOWNLOADTTH
+  %wgetPath% "http://hutchinson.belmont.ma.us/tth/tth-noncom/%TTHFNAME%"
+  echo -----------------------------------
+  echo --------------TTH------------------
+  echo -----------------------------------
+  cd %sourcepath%
+  %zipPath% x %TTHFNAME%
+::  del %TTHFNAME%
+:SKIPDOWNLOADTTH
+
+if %EEDdownloadSQLite%==FALSE GOTO SKIPDOWNLOADSQLITE
+  %wgetPath% --no-check-certificate "%urlCreatisSource%/%SQLITEFNAME%"
+  echo ------------------------------------------------
+  echo --------------SQLite (creatis)------------------
+  echo ------------------------------------------------
+  cd %sourcepath%
+  %zipPath% x %SQLITEFNAME%
+::  del %SQLITEFNAME%
+:SKIPDOWNLOADSQLITE
+
+
+echo -----------------------------------
+echo --------Renaming Folders-----------
+echo -----------------------------------
+cd %sourcepath%
+rename qt-everywhere-opensource-src-4.8.2 qt
+rename wxWidgets_%WXVERSION% wxWidgets
+rename boost_1_64_0 boost
+rename InsightToolkit-4.12.1 itk
+rename VTK-8.1.1 vtk
+rename gdcm13_2018_05_28_vtk8 gdcm13
+rename tth_exe tth
+rename xerces-c-3.2.1 xerces
+rename sqlite_v3.6.23.1 sqlite
+
+echo -----End of Download Libraries-----
+echo -----------------------------------
+echo -----------------------------------
+
+exit /B
\ No newline at end of file
diff --git a/Install_mingw64/Install_ThirdParty/scripts/install_thirdparty_all.bat b/Install_mingw64/Install_ThirdParty/scripts/install_thirdparty_all.bat
new file mode 100644 (file)
index 0000000..17b4444
--- /dev/null
@@ -0,0 +1,360 @@
+@echo off
+echo -----------------------------------
+echo ------Installing Libraries---------
+echo -----------------------------------
+
+echo -----------------------------------
+echo ---Setting Environment Variables---
+echo -----------------------------------
+
+set cmakeBin=C:\Users\davila\Creatools\For_mingw64\DeveloperTools\cmake-3.11.2-win64-x64\bin\cmake.exe
+
+set thirdpartyGeneration=%1
+set buildType=%2
+::The following line is to force x86 or x64 compilation
+::set x86Comp=%3
+
+set installpath=%thirdpartyGeneration%\tpi
+set binpath=%thirdpartyGeneration%\tpb
+set sourcepath=%thirdpartyGeneration%\tps
+
+if %PROCESSOR_ARCHITECTURE%==x86  (
+  set ProgramFilesPath_x86=%ProgramFiles%
+  echo "Architecture found = x86"
+) else (
+  set "ProgramFilesPath_x64=%ProgramFiles%"
+  set "ProgramFilesPath_x86=%ProgramFiles(x86)%"
+  echo "Architecture found = x64"
+)
+
+::set vcvarsall="%ProgramFilesPath_x86%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
+::if not exist %vcvarsall% set vcvarsall="%ProgramFilesPath_x64%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
+::if not exist %vcvarsall% (
+::  echo ERROR!!! Visual Studio has not been found in the system
+::  exit
+::)
+
+set qt=qt
+set jom=jom
+set wxWidgets=wxWidgets
+set boost=boost
+set xercesc=xerces
+set itk=itk
+set gdcm=gdcm13
+set vtk=vtk
+set sqlite=sqlite
+
+set QTDIR=%sourcepath%\%qt%
+set JOMDIR=%sourcepath%\%jom%
+set WXDIR=%sourcepath%\%wxWidgets%
+set BOOSTDIR=%sourcepath%\%boost%
+set XERCESDIR=%sourcepath%\%xercesc%
+set ITKSRCDIR=%sourcepath%\%itk%
+set VTKSRCDIR=%sourcepath%\%VTK%
+set GDCMSRCDIR=%sourcepath%\%gdcm%
+set SQLITESRCDIR=%sourcepath%\%sqlite%
+set LogFolder=%thirdpartyGeneration%\installLog
+
+echo -----------------------------------
+echo Environment variables Configuration
+echo -----------------------------------
+echo ThirdpartyGeneration=%thirdpartyGeneration%
+echo BuildType=%buildType%
+::echo Visual Studio=%vcvarsall%
+echo InstallPath=%installpath%
+echo BinPath=%binpath%
+echo SourcePath=%sourcepath%
+echo QT=%qt%
+echo WX=%wxWidgets%
+echo BOOST=%boost%
+echo Xercesc=%xercesc%
+echo ITK=%itk%
+echo GDCM=%gdcm%
+echo VTK=%vtk%
+echo QTDIR=%QTDIR%
+echo WKDIR=%WXDIR%
+echo BOOSTDIR=%BOOSTDIR%
+echo XERCESDIR=%XERCESDIR%
+echo ITKSRCDIR=%ITKSRCDIR%
+echo VTKSRCDIR=%VTKSRCDIR%
+echo GDCMDIR=%GDCMSRCDIR%
+echo JOMDIR=%JOMDIR%
+echo SQLITEDIR=%SQLITESRCDIR%
+
+echo -----------------------------------
+echo ---End Setting Global Variables----
+echo -----------------------------------
+
+
+::if %x86Comp%==ON (
+::     set addressmodel=32
+::     call %vcvarsall%
+::     echo "Compilation forced x86"
+::) else (
+::     set addressmodel=64
+::     if %PROCESSOR_ARCHITECTURE%==x86 (
+::             call %vcvarsall%
+::     ) else (
+::             call %vcvarsall% amd64
+::     )
+::)
+
+if %EEDinstallQT%==FALSE GOTO SKIPINSTALLQT
+echo -----------------------------------
+echo --------Qt Installation------------
+echo -----------------------------------
+cd %QTDIR%
+set QMAKESPEC=win32-msvc2010
+echo y | configure -%buildType% -opensource -shared -qt-sql-sqlite -phonon -phonon-backend -platform win32-msvc2010 -mp >> %LogFolder%\qtInstall.log 2>&1
+%JOMDIR%\jom.exe -j %NUMBER_OF_PROCESSORS% >> %LogFolder%\qtInstall.log 2>&1
+cd C:\
+:SKIPINSTALLQT
+
+
+if %EEDinstallWXWIDGETS%==FALSE GOTO SKIPINSTALLWXWIDGETS
+echo -----------------------------------
+echo -----wxWidgets Installation--------
+echo -----------------------------------
+cd  %binpath%
+mkdir %wxWidgets%Bin
+cd %wxWidgets%Bin
+
+
+::cd %WXDIR%\build\msw
+::if %x86Comp%==ON (
+::     nmake -f makefile.vc BUILD=%buildType% UNICODE=0 SHARED=1 USE_OPENGL=1 >> %LogFolder%\wxInstall.log 2>&1
+::) else (
+::     if %PROCESSOR_ARCHITECTURE%==x86 (
+::             nmake -f makefile.vc BUILD=%buildType% UNICODE=0 SHARED=1 USE_OPENGL=1 >> %LogFolder%\wxInstall.log 2>&1
+::     ) else (
+::             nmake -f makefile.vc TARGET_CPU=AMD64 BUILD=%buildType% UNICODE=0 SHARED=1 USE_OPENGL=1 >> %LogFolder%\wxInstall.log 2>&1
+::     )
+::)
+::cd C:\
+
+%cmakeBin% -G"MinGW Makefiles" -H%sourcepath%\%wxWidgets% -B%binpath%\%wxWidgets%Bin                                   >> %LogFolder%\wxWidgetsInstall.log 2>&1
+%cmakeBin% -D CMAKE_BUILD_TYPE:STRING=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%wxWidgets%\ CMakeCache.txt >> %LogFolder%\wxWidgetsInstall.log 2>&1
+::cmake -D BUILD_SHARED_LIBS:BOOL=ON -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF CMakeCache.txt                 >> %LogFolder%\wxWidgetsInstall.log 2>&1
+::cmake -D VTK_Group_Views:BOOL=ON CMakeCache.txt                                                                        >> %LogFolder%\wxWidgetsInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS%                                                                              >> %LogFolder%\wxWidgetsInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS% install                                                                      >> %LogFolder%\wxWidgetsInstall.log 2>&1
+
+
+:SKIPINSTALLWXWIDGETS
+
+
+if %EEDinstallBOOST%==FALSE GOTO SKIPINSTALLBOOST
+echo -----------------------------------
+echo ------Boost Installation-----------
+echo -----------------------------------
+
+:: documentation:   https://gist.github.com/sim642/29caef3cc8afaa273ce6
+
+mkdir %binpath%\%boost%Bin 
+mkdir %binpath%\%boost%Bin\boost-build
+mkdir %binpath%\%boost%Bin\build
+:: mkdir %binpath%\%boost%Bin\boost
+mkdir %installpath%\%boost%
+
+cd %sourcepath%\%boost%\tools\build
+call bootstrap.bat gcc                                                     >> %LogFolder%\boostInstall.log 2>&1
+b2 install --prefix="%binpath%\%boost%Bin\boost-build"                     >> %LogFolder%\boostInstall.log 2>&1
+set PATH=%PATH%;%binpath%\%boost%Bin\boost-build\bin
+echo %PATH%   >> %LogFolder%\boostInstall.log 2>&1
+cd %sourcepath%\%boost%\
+
+:: --with-system --with-signals
+b2 --build-dir=%binpath%\%boost%Bin\build --prefix=%installpath%\%boost% toolset=gcc variant=%buildType% link=shared runtime-link=shared -j %NUMBER_OF_PROCESSORS% install      >> %LogFolder%\boostInstall.log 2>&1 
+
+
+:: cd %sourcepath%\%boost%
+:: call bootstrap.bat >> %LogFolder%\boostInstall.log 2>&1
+:: REM bjam.exe -j %NUMBER_OF_PROCESSORS% --address-model=%addressmodel% --prefix=%installpath%\%boost% --build-dir=%binpath%\%boost%Bin toolset=msvc-10.0 variant=%buildType% link=shared runtime-link=shared install >> %LogFolder%\boostInstall.log 2>&1
+:: REM bjam.exe -j %NUMBER_OF_PROCESSORS% --address-model=%addressmodel% --prefix=%installpath%\%boost% --build-dir=%binpath%\%boost%Bin toolset=msvc-10.0 variant=%buildType% link=shared runtime-link=shared install >> %LogFolder%\boostInstall.log 2>&1
+:: bjam.exe -j %NUMBER_OF_PROCESSORS% address-model=%addressmodel% --prefix=%installpath%\%boost% --build-dir=%binpath%\%boost%Bin toolset=msvc-10.0 variant=%buildType% link=shared runtime-link=shared install >> %LogFolder%\boostInstall.log 2>&1
+:: bjam.exe -j %NUMBER_OF_PROCESSORS% address-model=%addressmodel% --prefix=%installpath%\%boost% --build-dir=%binpath%\%boost%Bin toolset=msvc-10.0 variant=%buildType% link=shared runtime-link=shared install >> %LogFolder%\boostInstall.log 2>&1
+:: ::if %x86Comp%==ON (
+:: ::  echo -install_thirdparty_all-EED1a 
+:: ::  bjam.exe -j %NUMBER_OF_PROCESSORS% --prefix=%installpath%\%boost% --toolset=msvc-10.0 --build-type=complete --build-dir=%binpath%\%boost%Bin --link=shared --runtime-link=shared install >> %LogFolder%\boostInstall.log 2>&1
+:: ::  echo -install_thirdparty_all-EED1b
+:: ::) else (
+:: ::  if %PROCESSOR_ARCHITECTURE%==x86 (
+:: ::          echo -install_thirdparty_all-EED2a
+:: ::          bjam.exe -j %NUMBER_OF_PROCESSORS% --prefix=%installpath%\%boost% --toolset=msvc-10.0 --build-type=complete --build-dir=%binpath%\%boost%Bin --link=shared --runtime-link=shared install >> %LogFolder%\boostInstall.log 2>&1
+:: ::          echo -install_thirdparty_all-EED2b
+:: ::  ) else (
+:: ::          echo -install_thirdparty_all-EED3a
+:: ::          bjam.exe -j %NUMBER_OF_PROCESSORS% --address-model=64 --prefix=%installpath%\%boost% --build-dir=%binpath%\%boost%Bin toolset=msvc-10.0 variant=%buildType% link=shared runtime-link=shared install >> %LogFolder%\boostInstall.log 2>&1
+:: ::          echo -install_thirdparty_all-EED3b
+:: ::          bjam.exe -j %NUMBER_OF_PROCESSORS% --address-model=64 --prefix=%installpath%\%boost% --build-dir=%binpath%\%boost%Bin toolset=msvc-10.0 variant=%buildType% link=shared runtime-link=shared install >> %LogFolder%\boostInstall.log 2>&1
+:: ::          echo -install_thirdparty_all-EED3c
+:: ::  )
+:: ::)
+:: cd C:\
+
+:SKIPINSTALLBOOST
+
+
+if %EEEDinstallVTK%==FALSE GOTO SKIPINSTALLVTK
+echo -----------------------------------
+echo -------VTK Installation------------
+echo -----------------------------------
+cd  %binpath%
+mkdir %vtk%Bin
+cd %vtk%Bin
+
+::if %x86Comp%==ON (
+::     cmake -G"Visual Studio 10"  -H%sourcepath%\%vtk% -B%binpath%\%vtk%Bin >> %LogFolder%\vtkInstall.log 2>&1
+::) else (
+::     if %PROCESSOR_ARCHITECTURE%==x86 (
+::             cmake -G"Visual Studio 10"  -H%sourcepath%\%vtk% -B%binpath%\%vtk%Bin >> %LogFolder%\vtkInstall.log 2>&1
+::     ) else (
+::             cmake -G"Visual Studio 10 Win64"  -H%sourcepath%\%vtk% -B%binpath%\%vtk%Bin >> %LogFolder%\vtkInstall.log 2>&1
+::     )
+::)
+::cmake -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%vtk%\ CMakeCache.txt >> %LogFolder%\vtkInstall.log 2>&1
+::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 >> %LogFolder%\vtkInstall.log 2>&1
+::cmake CMakeCache.txt >> %LogFolder%\vtkInstall.log 2>&1
+::FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /target:ALL_BUILD /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\vtkInstall.log 2>&1
+::msbuild /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% INSTALL.vcxproj >> %LogFolder%\vtkInstall.log 2>&1
+::cd c:\
+
+%cmakeBin% -G"MinGW Makefiles" -H%sourcepath%\%vtk% -B%binpath%\%vtk%Bin                                           >> %LogFolder%\VTKInstall.log 2>&1
+%cmakeBin% -D CMAKE_BUILD_TYPE:STRING=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%vtk%\ CMakeCache.txt >> %LogFolder%\VTKInstall.log 2>&1
+%cmakeBin% -D BUILD_SHARED_LIBS:BOOL=ON -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF CMakeCache.txt        >> %LogFolder%\VTKInstall.log 2>&1
+%cmakeBin% -D VTK_Group_Views:BOOL=ON CMakeCache.txt                                                               >> %LogFolder%\VTKInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS%                                                                          >> %LogFolder%\VTKInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS% install                                                                  >> %LogFolder%\VTKInstall.log 2>&1
+       
+
+
+:SKIPINSTALLVTK
+
+
+if %EEDinstallGDCM%==FALSE GOTO SKIPINSTALLGDCM
+echo -----------------------------------
+echo -------GDCM Installation-----------
+echo -----------------------------------
+cd  %binpath%
+mkdir %gdcm%Bin
+cd %gdcm%Bin
+::if %x86Comp%==ON (
+::     cmake -G"Visual Studio 10"  -H%sourcepath%\%gdcm% -B%binpath%\%gdcm%Bin >> %LogFolder%\GDCMInstall.log 2>&1
+::) else (
+::     if %PROCESSOR_ARCHITECTURE%==x86 (
+::             cmake -G"Visual Studio 10"  -H%sourcepath%\%gdcm% -B%binpath%\%gdcm%Bin >> %LogFolder%\GDCMInstall.log 2>&1
+::     ) else (
+::             cmake -G"Visual Studio 10 Win64"  -H%sourcepath%\%gdcm% -B%binpath%\%gdcm%Bin >> %LogFolder%\GDCMInstall.log 2>&1
+::     )
+::)
+::cmake -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%gdcm%\ CMakeCache.txt >> %LogFolder%\GDCMInstall.log 2>&1
+::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 >> %LogFolder%\GDCMInstall.log 2>&1
+::cmake CMakeCache.txt >> %LogFolder%\GDCMInstall.log 2>&1
+::FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\GDCMInstall.log 2>&1
+::msbuild INSTALL.vcxproj /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\GDCMInstall.log 2>&1
+::cd c:\
+%cmakeBin% -G"MinGW Makefiles" -H%sourcepath%\%gdcm% -B%binpath%\%gdcm%Bin                                                                   >> %LogFolder%\GDCMInstall.log 2>&1
+%cmakeBin% -D CMAKE_BUILD_TYPE:STRING=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%gdcm%\ CMakeCache.txt                           >> %LogFolder%\GDCMInstall.log 2>&1
+%cmakeBin% -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 >> %LogFolder%\GDCMInstall.log 2>&1
+%cmakeBin% -D BUILD_SHARED_LIBS:BOOL=ON CMakeCache.txt                                                                                       >> %LogFolder%\GDCMInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS%                                                                                                    >> %LogFolder%\GDCMInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS% install                                                                                            >> %LogFolder%\GDCMInstall.log 2>&1
+:SKIPINSTALLGDCM
+
+
+if %EEDinstallITK%==FALSE GOTO SKIPINSTALLITK
+echo -----------------------------------
+echo -------ITK Installation------------
+echo -----------------------------------
+cd  %binpath%
+mkdir %itk%Bin
+cd %itk%Bin
+::if %x86Comp%==ON (
+::     cmake -G"Visual Studio 10" -H%sourcepath%\%itk% -B%binpath%\%itk%Bin >> %LogFolder%\ITKInstall.log 2>&1
+::) else (
+::     if %PROCESSOR_ARCHITECTURE%==x86 (
+::             cmake -G"Visual Studio 10" -H%sourcepath%\%itk% -B%binpath%\%itk%Bin >> %LogFolder%\ITKInstall.log 2>&1
+::     ) else (
+::             cmake -G"Visual Studio 10 Win64" -H%sourcepath%\%itk% -B%binpath%\%itk%Bin >> %LogFolder%\ITKInstall.log 2>&1
+::     )
+::)
+
+%cmakeBin% -G"MinGW Makefiles" -H%sourcepath%\%itk% -B%binpath%\%itk%Bin                                           >> %LogFolder%\ITKInstall.log 2>&1
+%cmakeBin% -D CMAKE_BUILD_TYPE:STRING=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%itk%\ CMakeCache.txt >> %LogFolder%\ITKInstall.log 2>&1
+%cmakeBin% -D BUILD_SHARED_LIBS:BOOL=ON -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF CMakeCache.txt        >> %LogFolder%\ITKInstall.log 2>&1
+%cmakeBin% -D ITKV3_COMPATIBILITY:BOOL=ON -D Module_ITKReview::BOOL=ON CMakeCache.txt                              >> %LogFolder%\ITKInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS%                                                                          >> %LogFolder%\ITKInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS% install                                                                  >> %LogFolder%\ITKInstall.log 2>&1
+       
+::cmake -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%itk%\ CMakeCache.txt >> %LogFolder%\ITKInstall.log 2>&1
+::cmake -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF -D BUILD_SHARED_LIBS:BOOL=ON -D ITK_USE_REVIEW:BOOL=ON CMakeCache.txt >> %LogFolder%\ITKInstall.log 2>&1
+::cmake CMakeCache.txt >> %LogFolder%\ITKInstall.log 2>&1
+::FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\ITKInstall.log 2>&1
+::msbuild INSTALL.vcxproj /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\ITKInstall.log 2>&1
+::cd c:\
+
+:SKIPINSTALLITK
+
+
+if %EEDinstallXERCES%==FALSE GOTO SKIPINSTALLXERCES
+echo -----------------------------------
+echo ------XERCES Installation----------
+echo -----------------------------------
+::cd  %sourcepath%\%xercesc%\projects\Win32\VC10\xerces-all
+::FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\XERCESInstall.log 2>&1
+::FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\XERCESInstall.log 2>&1
+::msbuild INSTALL.vcxproj /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\XERCESInstall.log 2>&1
+::cd c:\
+
+%cmakeBin% -G"MinGW Makefiles" -H%sourcepath%\%xercesc% -B%binpath%\%xercesc%Bin                                       >> %LogFolder%\wercesInstall.log 2>&1
+%cmakeBin% -D CMAKE_BUILD_TYPE:STRING=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%xercesc%\ CMakeCache.txt >> %LogFolder%\wercesInstall.log 2>&1
+::%cmakeBin% -D BUILD_SHARED_LIBS:BOOL=ON -D BUILD_EXAMPLES:BOOL=OFF -D BUILD_TESTING:BOOL=OFF CMakeCache.txt          >> %LogFolder%\wercesInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS%                                                                              >> %LogFolder%\wercesInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS% install                                                                      >> %LogFolder%\wercesInstall.log 2>&1
+
+
+:SKIPINSTALLXERCES
+
+
+
+echo ----------------------------------------
+echo -------- SQLite Installation------------
+echo ----------------------------------------
+
+if %EEDinstallSQLite%==FALSE GOTO SKIPINSTALLSQLite
+echo -----------------------------------
+echo -------SQLite Installation------------
+echo -----------------------------------
+cd  %binpath%
+mkdir %SQLite%Bin
+cd %SQLite%Bin
+::if %x86Comp%==ON (
+::     cmake -G"Visual Studio 10"  -H%sourcepath%\%SQLite% -B%binpath%\%SQLite%Bin >> %LogFolder%\SQLiteInstall.log 2>&1
+::) else (
+::     if %PROCESSOR_ARCHITECTURE%==x86 (
+::             cmake -G"Visual Studio 10"  -H%sourcepath%\%SQLite% -B%binpath%\%SQLite%Bin >> %LogFolder%\SQLiteInstall.log 2>&1
+::     ) else (
+::             cmake -G"Visual Studio 10 Win64"  -H%sourcepath%\%SQLite% -B%binpath%\%SQLite%Bin >> %LogFolder%\SQLiteInstall.log 2>&1
+::     )
+::)
+::cmake -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%SQLite%\ CMakeCache.txt >> %LogFolder%\SQLiteInstall.log 2>&1
+::cmake CMakeCache.txt >> %LogFolder%\SQLiteInstall.log 2>&1
+::FOR /R %%a IN (*.sln) DO msbuild %%a /m:%NUMBER_OF_PROCESSORS% /target:ALL_BUILD /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% >> %LogFolder%\SQLiteInstall.log 2>&1
+::msbuild /m:%NUMBER_OF_PROCESSORS% /p:UseEnv=true;BuildInParallel=true;Configuration=%buildType% INSTALL.vcxproj >> %LogFolder%\SQLiteInstall.log 2>&1
+::cd c:\
+
+%cmakeBin% -G"MinGW Makefiles" -H%sourcepath%\%SQLite% -B%binpath%\%SQLite%Bin                                      >> %LogFolder%\SQLiteInstall.log 2>&1
+%cmakeBin% -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\%SQLite%\ CMakeCache.txt    >> %LogFolder%\SQLiteInstall.log 2>&1
+%cmakeBin% CMakeCache.txt                                                                                           >> %LogFolder%\SQLiteInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS%                                                                                                    >> %LogFolder%\GDCMInstall.log 2>&1
+mingw32-make.exe -j%NUMBER_OF_PROCESSORS% install                                                                                            >> %LogFolder%\GDCMInstall.log 2>&1
+
+:SKIPINSTALLSQLite
+
+
+
+echo -----------------------------------
+echo ---End of Installing Libraries-----
+echo -----------------------------------
+
+exit
\ No newline at end of file
diff --git a/Install_mingw64/Install_ThirdParty/scripts/makeAll.bat b/Install_mingw64/Install_ThirdParty/scripts/makeAll.bat
new file mode 100644 (file)
index 0000000..9a39b18
--- /dev/null
@@ -0,0 +1,65 @@
+
+
+echo thirdpartyGeneration=%thirdpartyGeneration%
+echo buildType=%buildType%
+echo wxStable=%wxStable%
+
+echo -----------------------------------
+echo ---End Setting Global Variables----
+echo -----------------------------------
+
+echo -----------------------------------
+echo -------Calling Scripts-------------
+echo -----------------------------------
+
+echo starting time
+time /t
+date /T
+
+set scripts=%cd%\scripts
+set LogFolder=%thirdpartyGeneration%\installLog
+
+
+if %EEDclean%==FALSE GOTO SKIPCLEAN
+cd %scripts%
+echo cleaning All
+call cleanAll.bat %thirdpartyGeneration%
+:SKIPCLEAN
+
+
+if %EEDdownload%==FALSE GOTO SKIPDOWNLOAD
+cd %scripts%
+echo Calling download_ThirdPartySW.bat
+call download_ThirdPartySW.bat %thirdpartyGeneration% %buildType% %wxStable% >> %LogFolder%\downloadSources.log 2>&1
+:SKIPDOWNLOAD
+
+
+if %EEDinstall%==FALSE GOTO SKIPINSTALL
+cd %scripts%
+echo Calling install_thirdparty.bat
+start /B /wait install_thirdparty_all.bat %thirdpartyGeneration% %buildType% %forcex86%
+:SKIPINSTALL
+
+if %EEDinstallerDLL%==FALSE GOTO SKIPINSTALLERDLL
+echo Calling generateThirdPartydllsExe.bat
+cd %scripts%
+start /B /wait generateThirdPartydllsExe.bat %thirdpartyGeneration% %buildType% %forcex86%
+:SKIPINSTALLERDLL
+
+
+if %EEDinstallerLibraries%==FALSE GOTO SKIPINSTALLERLIBRARIES
+echo Calling generateThirdPartyLibExe.bat
+cd %scripts%
+start /B /wait generateThirdPartyLibExe.bat %thirdpartyGeneration% %buildType% %forcex86%
+:SKIPINSTALLERLIBRARIES
+
+
+cd..
+
+echo -----------------------------------
+echo -------End of the Script-----------
+echo -----------------------------------
+
+echo ending time
+time /t
+date /T
diff --git a/Install_mingw64/Install_ThirdParty/scripts/tpl_variables.bat b/Install_mingw64/Install_ThirdParty/scripts/tpl_variables.bat
new file mode 100644 (file)
index 0000000..f3107f0
--- /dev/null
@@ -0,0 +1,29 @@
+set  EEDclean=TRUE
+set  EEDcleanSOURCES=FALSE
+set  EEDcleanBIN=TRUE
+set  EEDcleanINSTALL=TRUE
+set  EEDcleanLOGS=TRUE
+
+set  EEDdownload=TRUE
+set  EEDdownloadQT=FALSE
+set  EEDdownloadITK=FALSE
+set  EEDdownloadWXWINDOWS=FALSE
+set  EEDdownloadBOOST=FALSE
+set  EEDdownloadXERCES=FALSE
+set  EEDdownloadVTK=FALSE
+set  EEDdownloadGDCM=FALSE
+set  EEDdownloadTTH=FALSE
+set  EEDdownloadSQLite=FALSE
+
+set  EEDinstall=TRUE
+set  EEDinstallQT=FALSE
+set  EEDinstallWXWIDGETS=TRUE
+set  EEDinstallBOOST=TRUE
+set  EEEDinstallVTK=TRUE
+set  EEDinstallGDCM=TRUE
+set  EEDinstallITK=TRUE
+set  EEDinstallXERCES=TRUE
+set  EEDinstallSQLite=TRUE
+
+set  EEDinstallerDLL=FALSE
+set  EEDinstallerLibraries=TRUE
diff --git a/Install_mingw64/Readme_EED.txt b/Install_mingw64/Readme_EED.txt
new file mode 100644 (file)
index 0000000..1760ac9
--- /dev/null
@@ -0,0 +1,39 @@
+=============================  Third Part Library  ==========================
+
+
+1. Install: 
+       - mingw-64  V7.3  Version x86_64  
+       - wget
+       - 7z
+       - cmake 2.8.12 >=
+        - git ????? como donde instalarlo
+   
+2. Clone creaToolsTools 
+     -Cambiar la branch
+     -En creaToolsTools\Install_mingw64\Install_ThirdParty
+        -Ajuster le path en install_generate_thirdparty-x64Release.bat
+     -En creaToolsTools\Install_mingw64\Install_ThirdParty\scripts\install_thirdparty_all.bat
+        -Ajuster el path de cmake.exe
+     -En creaToolsTools\Install_mingw64\Install_ThirdParty\scripts\download_thirdPartySW.bat
+        -Ajuster el path de wget
+        -Ajuster el path de 7z
+     -En creaToolsTools\Install_mingw64\Install_ThirdParty\scripts\tpl_variables.bat
+        - Verificar que es TRUE y FALSE
+
+3. Compile Third Party Library  (tpl)
+     install-All.bat
+4. Compila Creatools
+
+::Nota, correr todo para bajar los fuentes, el ( unzip 7z ) no lo enuentra en la segunda corrida cuando se quite la 
+opcion de clean y download se renombran los source automatidacmente  (OJO con wxWindgets, hay que hacerlo a mano)
+
+
+=============================  Creatools  ==========================
+
+1. creatools.bat 
+  Configurar el directorio de salida
+  
+2. scripts/gitcall.bat
+   configurar bien la variable, que depende donde esta instalado git
+   set bash=C:\Program Files\Git\bin\bash.exe
+