+
+set thirdpartyGenerationBase=E:\creatis\CreaTools_minwg64\C5\tpl\
+
+set cmakeBin=E:\creatis\CreaTools_minwg64\For_mingw64\DeveloperTools\cmake-3.11.2-win64-x64\bin\cmake.exe
+
+set wgetPath="E:\creatis\CreaTools_minwg64\For_mingw64\DeveloperTools\wget-1.19.4-win32\wget.exe"
+
+set zipPath="C:\Program Files\7-Zip\7z.exe"
+::set zipPath="peazip -ext2here "
+
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
+pause
\ No newline at end of file
echo ---Setting Environment Variables---
echo -----------------------------------
-set thirdpartyGeneration=C:\Users\davila\Creatools\C5\tpl\x64-R
+set thirdpartyGeneration=%thirdpartyGenerationBase%\x64-R
set buildType=release
::Set the following line ON if you want to force x86 compilation
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% (
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 GDCMFNAME=gdcm13_2018_05_28_vtk8.zip
set TTHFNAME=tth_exe.zip
set SQLITEFNAME=sqlite_v3.6.23.1.zip
-
set JOMFNAME=jom.zip
+set DLFCNFNAME=dlfcn-win32-2018-07.7z
echo -----------------------------------
:SKIPDOWNLOADSQLITE
+if %EEDdownloadDLFCN%==FALSE GOTO SKIPDOWNLOADDLFCN
+ %wgetPath% --no-check-certificate "%urlCreatisSource%/%DLFCNFNAME%"
+:: git clone https://github.com/dlfcn-win32/dlfcn-win32.git
+ echo ------------------------------------------------
+ echo --------------DLFCN (creatis)------------------
+ echo ------------------------------------------------
+ cd %sourcepath%
+ %zipPath% x %DLFCNFNAME%
+:: del %DLFCNFNAME%
+:SKIPDOWNLOADDLFCN
+
+
+
+
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 boost_1_63_0 boost
rename InsightToolkit-4.12.1 itk
rename VTK-8.1.1 vtk
rename gdcm13_2018_05_28_vtk8 gdcm13
echo Calling install_thirdparty_dlls_cmake.bat
call install_thirdparty_dlls_cmake.bat %thirdpartyGeneration% %buildType% %x86Comp% >> %LogFolder%\generateThirdpartydllsExe.log 2>&1
-::exit
\ No newline at end of file
+exit /B
\ No newline at end of file
set gdcm=gdcm13
set vtk=vtk
set sqlite=sqlite
+set dlfcn=dlfcn-win32
set QTDIR=%sourcepath%\%qt%
set JOMDIR=%sourcepath%\%jom%
set VTKSRCDIR=%sourcepath%\%VTK%
set GDCMSRCDIR=%sourcepath%\%gdcm%
set SQLITESRCDIR=%sourcepath%\%sqlite%
+set DLFCNSRCDIR=%sourcepath%\%dlfcn%
set LogFolder=%thirdpartyGeneration%\installLog
echo -----------------------------------
echo GDCMDIR=%GDCMSRCDIR%
echo JOMDIR=%JOMDIR%
echo SQLITEDIR=%SQLITESRCDIR%
+echo DLFCNSRCDIR=%DLFCNSRCDIR%
echo -----------------------------------
echo ---End Setting Global Variables----
+if %EEDinstallDLFCN%==FALSE GOTO SKIPINSTALLDLFCN
+echo -----------------------------------
+echo -------SKIPINSTALLDLFCN Installation------------
+echo -----------------------------------
+cd %binpath%
+mkdir %DLFCN%Bin
+cd %DLFCN%Bin
+
+%cmakeBin% -G"MinGW Makefiles" -H%sourcepath%\%DLFCN% -B%binpath%\%DLFCN%Bin >> %LogFolder%\SQLiteInstall.log 2>&1
+%cmakeBin% -D USE_DEBUG_LIB:BOOL=%buildType% -D CMAKE_INSTALL_PREFIX:PATH=%installpath%\ 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
+
+:SKIPINSTALLDLFCN
+
+::boost
+move /Y %installpath%\lib\*.dll %installpath%\bin
+::wxWidgets
+move /Y %installpath%\lib\gcc_dll\*.dll %installpath%\bin
+
echo -----------------------------------
echo ---End of Installing Libraries-----
echo -----------------------------------
-exit
\ No newline at end of file
+exit /B
\ No newline at end of file
-set cmakeBin=C:\Users\davila\Creatools\For_mingw64\DeveloperTools\cmake-3.11.2-win64-x64\bin\cmake.exe
-
-set EEDclean=FALSE
+set EEDclean=TRUE
set EEDcleanSOURCES=FALSE
set EEDcleanBIN=TRUE
set EEDcleanINSTALL=TRUE
set EEDcleanLOGS=TRUE
-set EEDdownload=FALSE
+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 EEDdownloadITK=TRUE
+set EEDdownloadWXWINDOWS=TRUE
+set EEDdownloadBOOST=TRUE
+set EEDdownloadXERCES=TRUE
+set EEDdownloadVTK=TRUE
+set EEDdownloadGDCM=TRUE
+set EEDdownloadTTH=TRUE
+set EEDdownloadSQLite=TRUE
+set EEDdownloadDLFCN=TRUE
set EEDinstall=TRUE
set EEDinstallQT=FALSE
-set EEDinstallWXWIDGETS=FALSE
+set EEDinstallWXWIDGETS=TRUE
set EEDinstallBOOST=TRUE
-set EEEDinstallVTK=FALSE
-set EEDinstallGDCM=FALSE
-set EEDinstallITK=FALSE
-set EEDinstallXERCES=FALSE
-set EEDinstallSQLite=FALSE
+set EEEDinstallVTK=TRUE
+set EEDinstallGDCM=TRUE
+set EEDinstallITK=TRUE
+set EEDinstallXERCES=TRUE
+set EEDinstallSQLite=TRUE
+set EEDinstallDLFCN=TRUE
-set EEDinstallerDLL=FALSE
+set EEDinstallerDLL=TRUE
set EEDinstallerLibraries=FALSE
============================= Third Part Library ==========================
-
1. Install:
- mingw-64 V7.3 Version x86_64
- wget
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\install_All.bat ajustar el path de:
+ cmakeBin
+ thirdpartyGenerationBase
+ wget
+ zipPath
-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
-Instalar basic-miktex-2.9.6753-x64.exe
-plink: configurar en creaToolsTools\Install_mingw64\Install_CreaTools/downloadSources.bat