]> Creatis software - creaToolsTools.git/commitdiff
#3200creaToolsToolsFeatureNewNormalbranch mingw64
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Fri, 20 Jul 2018 15:23:30 +0000 (17:23 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Fri, 20 Jul 2018 15:23:30 +0000 (17:23 +0200)
Install_mingw64/Install_ThirdParty/install-All.bat
Install_mingw64/Install_ThirdParty/install_generate_thirdparty-x64Release.bat
Install_mingw64/Install_ThirdParty/scripts/download_ThirdPartySW.bat
Install_mingw64/Install_ThirdParty/scripts/generateThirdPartydllsExe.bat
Install_mingw64/Install_ThirdParty/scripts/install_thirdparty_all.bat
Install_mingw64/Install_ThirdParty/scripts/tpl_variables.bat
Install_mingw64/Readme_EED.txt

index 8740543372ba813e8a29b6f1b90f7e7d604cdd0b..4050de955b7474ef9715b3edbcd6ca83bd570795 100644 (file)
@@ -1,6 +1,16 @@
+
+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
index 9efae7fa27eebf06b21cd9d3c7999e042651104b..6e5f918093ef4b0a61f7160baa416fed14b5c86a 100644 (file)
@@ -6,7 +6,7 @@ echo -----------------------------------
 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
index 6cd3fcfc2a003cc1ccc9e4c1ae62240cf3c286d3..cf724941c01cc7ea9159cf47de2bdb384285b0e3 100644 (file)
@@ -22,10 +22,7 @@ if %PROCESSOR_ARCHITECTURE%==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% (
@@ -53,8 +50,6 @@ 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
@@ -76,8 +71,8 @@ set VTKFNAME=VTK-8.1.1-Patch.7z
 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 -----------------------------------
@@ -208,13 +203,27 @@ if %EEDdownloadSQLite%==FALSE GOTO SKIPDOWNLOADSQLITE
 :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
index 7f5ab6e19530a13405d3244b0f420edcbab11b09..6e06bce8c1ca4fcabebff37edce92f8e5c1249a4 100644 (file)
@@ -12,4 +12,4 @@ set LogFolder=%thirdpartyGeneration%\installLog
 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
index 4493e80d2749653a6ac9d7f1453250016c385bff..2808f96cb2be518846e084842853548c7048228b 100644 (file)
@@ -41,6 +41,7 @@ set itk=itk
 set gdcm=gdcm13
 set vtk=vtk
 set sqlite=sqlite
+set dlfcn=dlfcn-win32
 
 set QTDIR=%sourcepath%\%qt%
 set JOMDIR=%sourcepath%\%jom%
@@ -51,6 +52,7 @@ set ITKSRCDIR=%sourcepath%\%itk%
 set VTKSRCDIR=%sourcepath%\%VTK%
 set GDCMSRCDIR=%sourcepath%\%gdcm%
 set SQLITESRCDIR=%sourcepath%\%sqlite%
+set DLFCNSRCDIR=%sourcepath%\%dlfcn%
 set LogFolder=%thirdpartyGeneration%\installLog
 
 echo -----------------------------------
@@ -78,6 +80,7 @@ echo VTKSRCDIR=%VTKSRCDIR%
 echo GDCMDIR=%GDCMSRCDIR%
 echo JOMDIR=%JOMDIR%
 echo SQLITEDIR=%SQLITESRCDIR%
+echo DLFCNSRCDIR=%DLFCNSRCDIR%
 
 echo -----------------------------------
 echo ---End Setting Global Variables----
@@ -353,8 +356,29 @@ mingw32-make.exe -j%NUMBER_OF_PROCESSORS% install
 
 
 
+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
index d471907bb89ed761d3061d651357cd5d23e2dd47..ca599b65a41b83591b3b5fec41937f1e36df2d66 100644 (file)
@@ -1,32 +1,32 @@
 
-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
index 9fac0d9412392a6fd48bcfad84a246415e513d09..5f5bd44b61405d3e3594dd0a584f2e28e6d27f3d 100644 (file)
@@ -1,6 +1,5 @@
 =============================  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