]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
Fix some remaining issue about ParaView 5.9 integration - Switch CAS source to archive
authorQuentin Cozette <quentin.cozette@cea.fr>
Thu, 25 Mar 2021 19:34:55 +0000 (20:34 +0100)
committerQuentin Cozette <quentin.cozette@cea.fr>
Thu, 25 Mar 2021 19:34:55 +0000 (20:34 +0100)
applications/SALOME-master-native.pyconf
products/CAS.pyconf
products/ParaView.pyconf
products/compil_scripts/ParaView-5.9.0.sh
products/compil_scripts/netgen_5_3_1.sh

index 1421702ad06658905f3fb73672034c70e5841d2a..541e3b6370a93dc098fd0ff3fa14180c7127c107 100644 (file)
@@ -178,12 +178,7 @@ APPLICATION :
 __overwrite__ :
 [
    {
-      # ParaView 5.9 CMake procedure requires Qt 5.12 as minimum version.
-      # Unfortunately, DB10 native one is 5.11. Let's force it as the new minimum one, as it should
-      # be compliant too (add it everywhere to avoid duplicate overwrites).
-      'PRODUCTS.ParaView.version_5_9_0.patches' : ['paraview.0003-ParaViewClient.patch',
-                                                   'paraview-0012-LATA_64BITS_IDS.patch',
-                                                   'paraview-5.9_qt-minimum-version.patch']
+      #
       'PRODUCTS.PARAVISADDONS.default.patches' : ['paraview-5.9_PARAVISADDONS.patch']
    }
    {
@@ -194,12 +189,26 @@ __overwrite__ :
       'APPLICATION.products.opencv' : '3.2.0'
    }
    {
-      # At least on DB10 (UB20 uses the same path...), ParaView fails to find xmlpatterns executable
-      # ParaViewClient.cmake try to find it from Qt5_DIR, going back from it in filesystem (hardcoded).
+      #
+      __condition__ : "VARS.dist in ['UB20.04', 'CO8', 'FD32']"
+      'PRODUCTS.ParaView.version_5_9_0.patches' : ['paraview.0003-ParaViewClient.patch',
+                                                   'paraview.0005-ParaView_find_cgns.patch',
+                                                   'paraview-0012-LATA_64BITS_IDS.patch',
+                                                   'ParaView-5.9.0-CATALYST_cmake.patch']
+   }
+   {
+      # On DB10, ParaView fails to find xmlpatterns executable : ParaViewClient.cmake try to find it
+      # from Qt5_DIR, going back from it in filesystem (hardcoded).
       # The standard patch is also needed to be able to build PARAVIS (same kind of issue).
-      __condition__ : "VARS.dist in ['DB10', 'UB20.04']"
-      'PRODUCTS.ParaView.version_5_8_0.patches' : ['paraview.0003-ParaViewClient.patch',
-                                                   'paraview.0003-ParaViewClient_native.patch']
+      # What is more, ParaView 5.9 CMake procedure requires Qt 5.12 as minimum version (5.11 here).
+      # As this version is compliant too, let's force it as the new minimum needed version.
+      __condition__ : "VARS.dist in ['DB10']"
+      'PRODUCTS.ParaView.version_5_9_0.patches' : ['paraview.0003-ParaViewClient.patch',
+                                                   'paraview.0005-ParaView_find_cgns.patch',
+                                                   'paraview-0012-LATA_64BITS_IDS.patch',
+                                                   'paraview-5.9_qt-minimum-version.patch',
+                                                   'paraview.0003-ParaViewClient_native.patch',
+                                                   'ParaView-5.9.0-CATALYST_cmake.patch']
    }
    {
       # CentOS 8 repositories don't include sphinxintl package which must be installed through pip.
@@ -207,5 +216,6 @@ __overwrite__ :
       __condition__ : "VARS.dist in ['CO8']"
       'APPLICATION.products.sphinxintl' : '0.9.10'
       'PRODUCTS.sphinxintl.default.properties.pip' : "no"
+      'APPLICATION.products.cmake' : '3.12.1'
    }
 ]
index 8966a13551c102769ae7c492d1f24dd8faa51443..3c18835153819149739ace7cb25925e1432421cc 100755 (executable)
@@ -42,7 +42,8 @@ version_V7_5_0 :
     name : "CAS"
     build_source : "cmake"
     cmake_options : "-DUSE_TCL=OFF -DBUILD_MODULE_Draw=OFF -DUSE_FREETYPE=ON -D3RDPARTY_FREETYPE_DIR=$FREETYPEDIR -DUSE_GL2PS=OFF -DUSE_FREEIMAGE=ON -D3RDPARTY_FREEIMAGE_DIR=$FREEIMAGEDIR"
-    get_source : "git"
+#    get_source : "git"
+    get_source : "archive"
     git_info:
     {
         repo : "http://git.dev.opencascade.org/repos/occt.git"
@@ -80,7 +81,12 @@ version_V7_5_0_win :
     name : "CAS"
     build_source : "script"
     compil_script :  "CAS_7.5.bat"
-    get_source : "git"
+#    get_source : "git"
+    get_source : "archive"
+    archive_info :
+    {
+        archive_name : "CAS-CR750-SALOME-PATCH.tar.gz"
+    }
     git_info:
     {
         repo : "http://git.dev.opencascade.org/repos/occt.git"
index 975acef1262e557d2fff758fb96d83c5d44737cb..93ec6a097cadbe68c4146d39c7371fb5ad9494d6 100755 (executable)
@@ -40,7 +40,8 @@ version_5_9_0 :
                'paraview.0005-ParaView_find_cgns.patch',
                'paraview.0006-ParaView_find_libxml2.patch',
                'paraview.0007-ParaView_find_freetype.patch',
-               'paraview-0012-LATA_64BITS_IDS.patch'
+               'paraview-0012-LATA_64BITS_IDS.patch',
+               'ParaView-5.9.0-CATALYST_cmake.patch'
               ]
 }
 
@@ -53,7 +54,8 @@ version_5_9_0_int32 :
                'paraview.0004-ParaView_hdf5.patch',
                'paraview.0005-ParaView_find_cgns.patch',
                'paraview.0006-ParaView_find_libxml2.patch',
-               'paraview.0007-ParaView_find_freetype.patch'
+               'paraview.0007-ParaView_find_freetype.patch',
+               'ParaView-5.9.0-CATALYST_cmake.patch'
               ]
 }
 
@@ -80,7 +82,8 @@ version_5_9_0_win :
                'paraview.0006-ParaView_find_libxml2.patch',
                'paraview.0007-ParaView_find_freetype.patch',
                'paraview.0008-ParaView_find_zlib.patch',
-               'paraview-0012-LATA_64BITS_IDS.patch'
+               'paraview-0012-LATA_64BITS_IDS.patch',
+               'ParaView-5.9.0-CATALYST_cmake.patch'
               ]
 }
 
@@ -106,7 +109,8 @@ version_5_9_0_win_int32 :
                'paraview.0005-ParaView_find_cgns.patch',
                'paraview.0006-ParaView_find_libxml2.patch',
                'paraview.0007-ParaView_find_freetype.patch',
-               'paraview.0008-ParaView_find_zlib.patch'
+               'paraview.0008-ParaView_find_zlib.patch',
+               'ParaView-5.9.0-CATALYST_cmake.patch'
               ]
 }
 
@@ -120,7 +124,8 @@ version_5_9_0_MPI :
                'paraview.0006-ParaView_find_libxml2.patch',
                'paraview.0007-ParaView_find_freetype.patch',
                'paraview.0012-VTKM_MPI.patch',
-               'paraview-0012-LATA_64BITS_IDS.patch'
+               'paraview-0012-LATA_64BITS_IDS.patch',
+               'ParaView-5.9.0-CATALYST_cmake.patch'
               ]
 }
 
@@ -133,7 +138,8 @@ version_5_9_0_MPI_int32 :
                'paraview.0005-ParaView_find_cgns.patch',
                'paraview.0006-ParaView_find_libxml2.patch',
                'paraview.0007-ParaView_find_freetype.patch',
-               'paraview.0012-VTKM_MPI.patch'
+               'paraview.0012-VTKM_MPI.patch',
+               'ParaView-5.9.0-CATALYST_cmake.patch'
               ]
 }
 
index 509e3e60dd8ddd1bd2a3755e8bc01062e7415376..477b53643c73360a6518a819e0fff55ee43571d9 100755 (executable)
@@ -29,8 +29,8 @@ CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON"
 
 ### OpenGL settings
 CMAKE_OPTIONS="${CMAKE_OPTIONS} -DOpenGL_GL_PREFERENCE:STRING=LEGACY"
-CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPARAVIEW_USE_CATALYST:BOOL=OFF"
-#CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCATALYST_BUILD_STUB_IMPLEMENTATION:BOOL=ON"
+CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPARAVIEW_USE_CATALYST:BOOL=ON"
+CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCATALYST_BUILD_STUB_IMPLEMENTATION:BOOL=ON"
 ### spns #20550 - Headless mode
 if [ -n "$PARAVIEW_HEADLESS_MODE" ]
 then
index 824af2e440cb6675e582cbead6a0f232f7af028d..45c30b06a035b07dec34f622e919453c4c6391d8 100755 (executable)
@@ -63,7 +63,7 @@ OLEVEL="-O2"
 
 if [ "${TCLHOME}" != '/usr' ]
 then
-    TCK_TK_OPTIONS="--with-tcl=${TCL_LIB_DIR} --with-tk=${TCLHOME}/lib --with-tclinclude=${TCLHOME}/include"
+    TCL_TK_OPTIONS="--with-tcl=${TCLHOME}/lib --with-tk=${TCLHOME}/lib --with-tclinclude=${TCLHOME}/include"
 fi
 echo ./configure --prefix=${PRODUCT_INSTALL} \
     --with-occ=${CASROOT} \