From: Nabil Ghodbane Date: Thu, 1 Apr 2021 09:53:49 +0000 (+0200) Subject: SALOME 9.7.0 starting from a consistent master X-Git-Tag: V9_7_0~63^2~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1c39dcd3637a934036964d95f63f1174e4da30e3;p=tools%2Fsat_salome.git SALOME 9.7.0 starting from a consistent master --- diff --git a/applications/ParaView-5.9.0.pyconf b/applications/ParaView-5.9.0.pyconf index e07915f..50491f1 100644 --- a/applications/ParaView-5.9.0.pyconf +++ b/applications/ParaView-5.9.0.pyconf @@ -45,7 +45,6 @@ APPLICATION : embree : '3.12.2' freeimage : '3.16.0' freetype : '2.9.1' - glfw : 'native' graphviz : '2.38.0' hdf5 : '1.10.3' idna : '2.7' diff --git a/applications/SALOME-master-MPI.pyconf b/applications/SALOME-master-MPI.pyconf index aa0764c..133bdc6 100644 --- a/applications/SALOME-master-MPI.pyconf +++ b/applications/SALOME-master-MPI.pyconf @@ -18,6 +18,7 @@ APPLICATION : CONFIGURATION_ROOT_DIR : $workdir + $VARS.sep + "SOURCES" + $VARS.sep + "CONFIGURATION" RESTRICTED_ROOT_DIR : $workdir + $VARS.sep + "SOURCES" + $VARS.sep + "RESTRICTED" SALOME_USE_64BIT_IDS : '1' + VTK_SMP_IMPLEMENTATION_TYPE : OpenMP # OpenMP # choose among: sequential / OpenMP / TBB switches } launch : {PYTHONIOENCODING:"UTF_8", SALOME_MODULES_ORDER:"SHAPER:SHAPERSTUDY:GEOM:SMESH"} SALOME_trace : "local" # local/file:.../with_logger @@ -31,7 +32,7 @@ APPLICATION : boost : '1.58.0' CAS : {tag: 'CR750-SALOME-PATCH', section: 'version_V7_5_0'} certifi : '2018.8.24' - cgns : {tag : '3.3.1', hpc : 'yes'} + cgns : {tag : '4.1.1', hpc : 'yes'} chardet : '3.0.4' click : '6.7' cmake : '3.12.1' @@ -42,16 +43,15 @@ APPLICATION : docutils : '0.12' doxygen : '1.8.14' eigen : '3.3.4' - embree : '3.3.0' + embree : '3.12.2' freeimage : '3.16.0' freetype : '2.9.1' gmsh : '4.1.4' graphviz : '2.38.0' hdf5 : {tag : '1.10.3', hpc : 'yes'} - homard_bin : '11.12_hdf51103med410' idna : '2.7' imagesize : '1.0.0' - ispc : '1.9.2' + ispc : '1.15.0' Jinja2 : '2.7.3' kiwisolver : '1.0.1' lapack : '3.8.0' @@ -72,29 +72,31 @@ APPLICATION : opencv : '3.2.0' openmpi : '3.1.6' openssl : "native" -# openturns: '1.16' - ospray : '1.8.4' + openturns: '1.16' + openVKL: '0.11.0' + ospray : '2.4.0' packaging : '17.1' - ParaView : {tag : '5.8.0', hpc : 'yes', section: 'version_5_8_0_MPI'} + ParaView : {tag : '5.9.0', hpc : 'yes', section: 'version_5_9_0_MPI'} petsc : '3.14.0' Pillow : '7.1.1' planegcs : '0.18-3cb6890' psutil : '5.7.2' Pygments : '2.0.2' pyparsing : '2.0.3' - PyQt : '5.9' - PyQtChart : '5.9' + PyQt : '5.15.3' + #PyQtChart : '5.9' pyreadline : '2.0' Python : '3.6.5' pytz : '2015.7' - qt : '5.9.1' + qt : '5.12.10' qwt : '6.1.2' requests : '2.19.1' + rkCommon : '1.5.1' root: '6.22.02' scipy : '0.19.1' scotch : '6.0.4' setuptools : '38.4.0' - sip : '4.19.3' + sip : '5.5.0' six : '1.10.0' snowballstemmer : '1.2.1' Sphinx : '1.7.6' @@ -107,7 +109,7 @@ APPLICATION : tcl : '8.6.0' tk : '8.6.0' urllib3 : '1.23' -# URANIE : '4.5.0' + URANIE : '4.5.0' # SALOME MODULES : 'CONFIGURATION' 'SALOME' @@ -176,9 +178,8 @@ APPLICATION : } __overwrite__ : [ - { - # - __condition__ : "VARS.dist in ['UB20.04']" - 'PRODUCTS.qt.version_5_9_1.patches' : ['qt-5.9.1-UB20-FD32-socketcanbackend.patch'] - } + { + # + 'PRODUCTS.PARAVISADDONS.default.patches' : ['paraview-5.9_PARAVISADDONS.patch'] + } ] diff --git a/applications/SALOME-master-native.pyconf b/applications/SALOME-master-native.pyconf index e536c8a..aeb0021 100644 --- a/applications/SALOME-master-native.pyconf +++ b/applications/SALOME-master-native.pyconf @@ -18,6 +18,7 @@ APPLICATION : CONFIGURATION_ROOT_DIR : $workdir + $VARS.sep + "SOURCES" + $VARS.sep + "CONFIGURATION" RESTRICTED_ROOT_DIR : $workdir + $VARS.sep + "SOURCES" + $VARS.sep + "RESTRICTED" SALOME_USE_64BIT_IDS : '1' + VTK_SMP_IMPLEMENTATION_TYPE : 'OpenMP' # OpenMP # choose among: sequential / OpenMP / TBB switches } launch : {PYTHONIOENCODING:"UTF_8"} # alternative is to encode every accentued string with .encode('utf-8') SALOME_trace : "local" # local/file:.../with_logger @@ -31,7 +32,9 @@ APPLICATION : boost : 'native' CAS : {tag: 'CR750-SALOME-PATCH', section: 'version_V7_5_0'} certifi : 'native' - cgns : 'native' + # Standalone native cgns works well. Unfortunately, it's directly linked to native hdf which uses a higher version than us. + # Rollback to embedded version to avoid versions mismatch between both of them (see imp_1538_cgns_export_import.py) + cgns : '4.1.1' chardet : 'native' click : 'native' cmake : 'native' @@ -42,7 +45,7 @@ APPLICATION : docutils : 'native' doxygen : 'native' eigen : 'native' - embree : '3.3.0' + embree : '3.12.2' freeimage : 'native' freetype : 'native' gl2ps : 'native' @@ -54,7 +57,7 @@ APPLICATION : idna : 'native' imagesize : 'native' # 'native' not exists (only available on Fedora platform) - ispc : '1.9.2' + ispc : '1.15.0' Jinja2 : 'native' kiwisolver : 'native' lapack : 'native' @@ -69,18 +72,19 @@ APPLICATION : netgen : '5.3.1_with_CAS_7.2' nlopt : '2.4.2' numpy : 'native' - omniORB : '4.2.2' - omniORBpy : '4.2.2' + omniORB : '4.2.3' + omniORBpy : '4.2.3' opencv : 'native' + openVKL : '0.11.0' openturns: '1.16' - ospray : '1.8.4' + ospray : '2.4.0' packaging : 'native' - ParaView : '5.8.0' + ParaView : '5.9.0' petsc : '3.14.0' Pillow : 'native' # 'native' not exists : freeCAD part but not delivered with it from package handler planegcs : '0.18-3cb6890' - pockets : 'native' + psutil : 'native' Pygments : 'native' pyparsing : 'native' PyQt : 'native' @@ -90,6 +94,7 @@ APPLICATION : qt : 'native' qwt : 'native' requests : 'native' + rkCommon : '1.5.1' root: '6.22.02' scipy : 'native' scotch : 'native' @@ -98,7 +103,6 @@ APPLICATION : six : 'native' snowballstemmer : 'native' Sphinx : 'native' - sphinxcontrib_napoleon : 'native' sphinxcontrib_websupport : 'native' sphinxintl: 'native' sphinx_rtd_theme : 'native' @@ -136,8 +140,8 @@ APPLICATION : 'PARAVIS' 'JOBMANAGER' 'YACS' - 'SOLVERLAB' 'YACSGEN' + 'SOLVERLAB' 'DOCUMENTATION' 'SAMPLES' 'COMPONENT' @@ -176,13 +180,47 @@ APPLICATION : single_install_dir : "yes" } } -#__overwrite__ : -#[ -# { -# # Overwrite dedicated to older distributions for a further native use -# # (Some system packages are missing for now on CentOS 8) -# __condition__ : "VARS.dist in ['FD32', 'DB10']" -# 'APPLICATION.products.omniORB' : 'native' -# 'APPLICATION.products.omniORBpy' : 'native' -# } -#] +__overwrite__ : +[ + { + # + 'PRODUCTS.PARAVISADDONS.default.patches' : ['paraview-5.9_PARAVISADDONS.patch'] + } + { + # Although recent adaptations of GEOM CMake procedure to be compliant with openCV 4.X, some + # deeper investigations need to be done in its sources. Use embedded openCV product where + # native one is 4.X. + __condition__ : "VARS.dist in ['FD32', 'UB20.04']" + 'APPLICATION.products.opencv' : '3.2.0' + } + { + # + __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). + # 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. + # To avoid its missing (system_info pyconf key doesn't handle this use case), we embed it. + __condition__ : "VARS.dist in ['CO8']" + 'APPLICATION.products.sphinxintl' : '0.9.10' + 'PRODUCTS.sphinxintl.default.properties.pip' : "no" + 'APPLICATION.products.cmake' : '3.12.1' + } +] diff --git a/applications/SALOME-master-windows.pyconf b/applications/SALOME-master-windows.pyconf index 24ff245..5f97f66 100644 --- a/applications/SALOME-master-windows.pyconf +++ b/applications/SALOME-master-windows.pyconf @@ -35,7 +35,7 @@ APPLICATION : boost : '1.67.0' CAS : {tag: 'CR750-SALOME-PATCH', section: 'version_V7_5_0_win'} certifi : '2019.6.16' - cgns : '3.3.1' + cgns : '4.1.1' chardet : '3.0.4' click : '7.0' cmake : '3.12.1' @@ -52,10 +52,10 @@ APPLICATION : f2c : '1.0.0' freeimage : '3.18.0' freetype : '2.9.1' -# gmsh : '4.1.4' + #gmsh : '4.1.4' graphviz : '2.44.1' hdf5 : '1.10.3' -# homard_bin : '11.12' + #homard_bin : '11.12' idna : '2.8' imagesize : '1.1.0' ispc : '1.10.0' @@ -79,10 +79,11 @@ APPLICATION : omniORB : '4.2.3' omniORBpy : '4.2.3' opencv : '3.2.0' -# openturns: '1.16' - ospray : '1.8.4' + openVKL: '0.11.0' + openturns: '1.16' + ospray : '2.4.0' packaging : '19.0' - ParaView : '5.8.0' + ParaView : '5.9.0' perl : '5.28.1.1' Pillow : '7.1.1' planegcs : '0.18-3cb6890' @@ -90,15 +91,15 @@ APPLICATION : pthreads : '2.9.1' Pygments : '2.4.2' pyparsing : '2.4.0' - PyQt : '5.9' - PyQtChart : '5.9' + PyQt : '5.15.3' +# PyQtChart : '5.9' pyreadline : '2.1' Python : '3.6.5' pytz : '2019.1' - qt : '5.9.1' + qt : '5.12.10' qwt : '6.1.2' requests : '2.22.0' - root: '6.22.06' + rkCommon : '1.5.1' ruby : '2.5.5-1' scipy : '1.4.1' setuptools : '41.0.1' @@ -120,7 +121,6 @@ APPLICATION : tbb : '2019_U8_win' tcltk : '8.6.9' urllib3 : '1.25.3' -# URANIE : '4.5.0' zlib : '1.2.5' # SALOME MODULES : @@ -188,6 +188,10 @@ APPLICATION : __overwrite__ : [ + { + # + 'PRODUCTS.PARAVISADDONS.default.patches' : ['paraview-5.9_PARAVISADDONS.patch'] + } { __condition__ : "APPLICATION.debug == 'yes'" 'APPLICATION.products.numpy' : '1.16.4-win-dbg' diff --git a/applications/SALOME-master.pyconf b/applications/SALOME-master.pyconf index bcefa7c..17b94d4 100644 --- a/applications/SALOME-master.pyconf +++ b/applications/SALOME-master.pyconf @@ -18,7 +18,7 @@ APPLICATION : CONFIGURATION_ROOT_DIR : $workdir + $VARS.sep + "SOURCES" + $VARS.sep + "CONFIGURATION" RESTRICTED_ROOT_DIR : $workdir + $VARS.sep + "SOURCES" + $VARS.sep + "RESTRICTED" SALOME_USE_64BIT_IDS : '1' - VTK_SMP_IMPLEMENTATION_TYPE : sequential # OpenMP # choose among: sequential / OpenMP / TBB switches + VTK_SMP_IMPLEMENTATION_TYPE : OpenMP # OpenMP # choose among: sequential / OpenMP / TBB switches } launch : {PYTHONIOENCODING:"UTF_8", SALOME_MODULES_ORDER:"SHAPER:SHAPERSTUDY:GEOM:SMESH"} SALOME_trace : "local" # local/file:.../with_logger @@ -32,7 +32,7 @@ APPLICATION : boost : '1.58.0' CAS : {tag: 'CR750-SALOME-PATCH', section: 'version_V7_5_0'} certifi : '2018.8.24' - cgns : '3.3.1' + cgns : '4.1.1' chardet : '3.0.4' click : '6.7' cmake : '3.12.1' @@ -43,16 +43,15 @@ APPLICATION : docutils : '0.12' doxygen : '1.8.14' eigen : '3.3.4' - embree : '3.3.0' + embree : '3.12.2' freeimage : '3.16.0' freetype : '2.9.1' gmsh : '4.1.4' graphviz : '2.38.0' hdf5 : '1.10.3' - homard_bin : '11.12_hdf51103med410' idna : '2.7' imagesize : '1.0.0' - ispc : '1.9.2' + ispc : '1.15.0' Jinja2 : '2.7.3' kiwisolver : '1.0.1' lapack : '3.8.0' @@ -71,29 +70,31 @@ APPLICATION : omniORBpy : '4.2.2' opencv : '3.2.0' openssl : "native" -# openturns: '1.16' - ospray : '1.8.4' + openturns: '1.16' + openVKL: '0.11.0' + ospray : '2.4.0' packaging : '17.1' - ParaView : '5.8.0' + ParaView : '5.9.0' petsc : '3.14.0' Pillow : '7.1.1' planegcs : '0.18-3cb6890' psutil : '5.7.2' Pygments : '2.0.2' pyparsing : '2.0.3' - PyQt : '5.9' - PyQtChart : '5.9' + PyQt : '5.15.3' + #PyQtChart : '5.9' pyreadline : '2.0' Python : '3.6.5' pytz : '2015.7' - qt : '5.9.1' + qt : '5.12.10' qwt : '6.1.2' requests : '2.19.1' + rkCommon : '1.5.1' root: '6.22.02' scipy : '0.19.1' scotch : '6.0.4' setuptools : '38.4.0' - sip : '4.19.3' + sip : '5.5.0' six : '1.10.0' snowballstemmer : '1.2.1' Sphinx : '1.7.6' @@ -102,11 +103,11 @@ APPLICATION : sphinxintl: '0.9.10' StaticMeshPlugin : '5.8.0' swig : '3.0.12' - tbb : 'native' + tbb : '2019_U8' tcl : '8.6.0' tk : '8.6.0' urllib3 : '1.23' -# URANIE : '4.5.0' + URANIE : '4.5.0' # SALOME MODULES : 'CONFIGURATION' 'SALOME' @@ -176,86 +177,7 @@ APPLICATION : __overwrite__ : [ { - # GTK compilation issue - __condition__ : "VARS.dist in ['CO6']" - 'APPLICATION.products.opencv' : '2.4.13.5' - 'APPLICATION.products.tbb' : '4.4' - 'APPLICATION.products.llvm' : '3.9.1-clang' - 'APPLICATION.products.mesa' : '13.0.6' - 'PRODUCTS.embree.default.patches' : ['embree-3.5.2-centos6.patch'] - } - - { - # tbb as a mandatory native product since SMESH with tbb, not installed on DB8 (temporary) - __condition__ : "VARS.dist in ['DB08']" - 'APPLICATION.products.tbb' : '4.4' - } - - { - # - __condition__ : "VARS.dist in ['FD26']" - 'APPLICATION.products.tbb' : '2017-7' - 'APPLICATION.products.embree' : '3.5.2' - } - - { - # - __condition__ : "VARS.dist in ['UB20.04']" - 'PRODUCTS.qt.version_5_9_1.patches' : ['qt-5.9.1-UB20-FD32-socketcanbackend.patch'] - } - - { - # Build Fedora 30 with less permissive compilation flags (see spns #18962) - __condition__ : "VARS.dist in ['FD30']" - 'PRODUCTS.LIBBATCH.default.cmake_options' : "-DLIBBATCH_DEBUG_WARNINGS=ON -DSWIG_EXECUTABLE=${SWIG_ROOT_DIR}/bin/swig" - 'PRODUCTS.CONFIGURATION.default.patches' : ['CONFIGURATION-SALOME-DEBUG-WARNINGS.patch'] - } - - { - __condition__ : "VARS.dist in ['FD32']" - 'APPLICATION.products.scipy' : '1.5.2' # gcc https://github.com/scipy/scipy/issues/11611 - either patch numpy to include -fallow-argument-mismatch or move to that version - # see https://bugs.gentoo.org/708730 - 'PRODUCTS.llvm.version_8_0_1_clang.patches' : ['llvm-8.0.1-clang-FD32.patch'] - 'PRODUCTS.qt.version_5_9_1.patches' : ['qt-5.9.1-UB20-FD32-socketcanbackend.patch', 'qt-5.9.1-mapbox-FD32.patch'] - 'PRODUCTS.mesa.version_19_0_8.patches' : ['mesa-19.0.8-debug_symbol.patch'] - } - - { - __condition__ : "VARS.dist in ['CO7']" - 'APPLICATION.products.tbb' : '2019_U8' - } - - { - __condition__ : "VARS.dist in ['CO7'] and APPLICATION.environ.build.VTK_SMP_IMPLEMENTATION_TYPE == 'OpenMP'" - 'PRODUCTS.ParaView.version_5_8_0.patches' : ['paraview.0003-ParaViewClient.patch', - 'paraview.0004-ParaView_hdf5.patch', - 'paraview.0005-ParaView_find_cgns.patch', - 'paraview.0006-ParaView_find_libxml2.patch', - 'paraview.0007-ParaView_find_freetype.patch', - 'paraview.0009-ParaView_volume_mapper.patch', - 'paraview.0011-vtkSMPSelection.patch', - 'pv_coincident.patch', - 'paraview-0012-LATA_64BITS_IDS.patch' - ] - } - - { - __condition__ : "VARS.dist in ['CO7'] and APPLICATION.environ.build.VTK_SMP_IMPLEMENTATION_TYPE == 'TBB'" - 'APPLICATION.products.tbb' : '2019_U8' - } - - { - # Adapt Paraview CMake files to be compliant with recent distributions - __condition__ : "VARS.dist in ['FD30', 'FD32', 'CO8']" - 'PRODUCTS.ParaView.version_5_8_0.patches' : ['paraview.0004-ParaView_hdf5.patch', - 'paraview.0005-ParaView_find_cgns.patch', - 'paraview.0006-ParaView_find_libxml2.patch', - 'paraview.0007-ParaView_find_freetype.patch', - 'paraview.0009-ParaView_volume_mapper.patch', - 'paraview.0010-ParaViewClient.patch', - 'paraview.0010-ParaView_find_python.patch', - 'pv_coincident.patch', - 'paraview-0012-LATA_64BITS_IDS.patch' - ] + # + 'PRODUCTS.PARAVISADDONS.default.patches' : ['paraview-5.9_PARAVISADDONS.patch'] } ] diff --git a/products/KERNEL.pyconf b/products/KERNEL.pyconf index ee76090..5f93e72 100644 --- a/products/KERNEL.pyconf +++ b/products/KERNEL.pyconf @@ -29,7 +29,8 @@ default : "setuptools", "Pygments", "pytz", - "LIBBATCH" + "LIBBATCH", + "psutil" ] build_depend : ["cmake", "swig", "doxygen", "cppunit"] source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name @@ -61,7 +62,8 @@ default_win : "Pygments", "pytz", "LIBBATCH", - "graphviz" + "graphviz", + "psutil" ] build_depend : ["cmake", "swig", "doxygen", "cppunit"] } @@ -86,7 +88,8 @@ default_MPI : "pytz", "cppunit", "openmpi", - "LIBBATCH" + "LIBBATCH", + "psutil" ] } diff --git a/products/PyQt.pyconf b/products/PyQt.pyconf index 02e2933..bf1179f 100644 --- a/products/PyQt.pyconf +++ b/products/PyQt.pyconf @@ -9,7 +9,7 @@ default : rpm : ["python3-qt5"] rpm_dev : ["python3-qt5-devel"] apt : ["python3-pyqt5"] - apt_dev : ["pyqt5-dev"] + apt_dev : ["pyqt5-dev", "pyqt5-dev-tools"] } environ : { @@ -27,6 +27,18 @@ default : } } +version_5_15_3 : +{ + compil_script : "PyQt-5.15" + $VARS.scriptExtension +} + +version_5_12_3 : +{ + name : "PyQt" + compil_script : "PyQt-5.12" + $VARS.scriptExtension +} + + version_5_11_3 : { compil_script : "PyQt-5.11" + $VARS.scriptExtension diff --git a/products/boost.pyconf b/products/boost.pyconf index 8019ee2..b98aa62 100644 --- a/products/boost.pyconf +++ b/products/boost.pyconf @@ -8,12 +8,8 @@ default : { rpm : ["boost"] rpm_dev : ["boost-devel"] - apt : ["libboost-regex", "libboost-thread" , "libboost-serialization", - "libboost-chrono", "libboost-filesystem", "libboost-system", - "libboost-date-time", "libboost-graph"] - apt_dev : ["libboost-regex-dev", "libboost-thread-dev", "libboost-serialization-dev", - "libboost-chrono-dev", "libboost-filesystem-dev", "libboost-system-dev", - "libboost-date-time-dev", "libboost-graph-dev"] + apt : [] + apt_dev : ["libboost-all-dev"] } environ : { diff --git a/products/cgns.pyconf b/products/cgns.pyconf index 1cc0112..63b3dfd 100644 --- a/products/cgns.pyconf +++ b/products/cgns.pyconf @@ -8,7 +8,7 @@ default : { rpm : ["cgnslib"] rpm_dev : ["cgnslib-devel"] - apt : ["libcgns3"] + apt : [] apt_dev : ["libcgns-dev"] } environ : diff --git a/products/compil_scripts/ParaView-5.8.0.sh b/products/compil_scripts/ParaView-5.8.0.sh index d42292e..61a5db6 100755 --- a/products/compil_scripts/ParaView-5.8.0.sh +++ b/products/compil_scripts/ParaView-5.8.0.sh @@ -55,7 +55,7 @@ then fi ### Ray-tracing settings -if [ -n "$OSPRAY_ROOT_DIR" ] +if [ -n "$OSPRAY_ROOT_DIR" ] then CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPARAVIEW_ENABLE_RAYTRACING:BOOL=ON" CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_ENABLE_OSPRAY:BOOL=ON" @@ -102,11 +102,8 @@ CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_BUILD_QT_DESIGNER_PLUGIN:BOOL=OFF" ### Python settings CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPARAVIEW_USE_PYTHON:BOOL=ON" CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_WRAP_PYTHON:BOOL=ON" -if [ "${PYTHON_ROOT_DIR}" == "/usr" ] +if [ "${PYTHON_ROOT_DIR}" != "/usr" ] then - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPython3_INCLUDE_DIR:STRING=${PYTHON_ROOT_DIR}/include/python${PYTHON_VERSION}m" - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPython3_LIBRARY:STRING=${PYTHON_ROOT_DIR}/lib64/libpython${PYTHON_VERSION}m.so" -else CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPython3_INCLUDE_DIR:STRING=${PYTHON_ROOT_DIR}/include/python${PYTHON_VERSION}" CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPython3_LIBRARY:STRING=${PYTHON_ROOT_DIR}/lib/libpython${PYTHON_VERSION}.so" fi @@ -163,11 +160,9 @@ CMAKE_OPTIONS="${CMAKE_OPTIONS} -DHDF5_ROOT:PATH=${HDF5_ROOT_DIR}" ### CGNS CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_MODULE_USE_EXTERNAL_ParaView_cgns:BOOL=ON" -CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCGNS_INCLUDE_DIR:PATH=${CGNS_ROOT_DIR}/include" -if [ "$CGNS_ROOT_DIR" == "/usr" ] +if [ "$CGNS_ROOT_DIR" != "/usr" ] then - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCGNS_LIBRARY:PATH=${CGNS_ROOT_DIR}/lib64/libcgns.so" -else + CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCGNS_INCLUDE_DIR:PATH=${CGNS_ROOT_DIR}/include" CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCGNS_LIBRARY:PATH=${CGNS_ROOT_DIR}/lib/libcgns.so" fi CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_MODULE_ENABLE_ParaView_cgns:INTERNAL=YES" @@ -186,23 +181,21 @@ CMAKE_OPTIONS="${CMAKE_OPTIONS} -DBoost_NO_SYSTEM_PATHS:BOOL=ON" CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_MODULE_USE_EXTERNAL_VTK_gl2ps:BOOL=OFF" ### libxml2 settings -if [ -n "$LIBXML2_ROOT_DIR" ] +if [ -n "$LIBXML2_ROOT_DIR" ] then # with a native libxml2, do not use these options CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_MODULE_USE_EXTERNAL_VTK_libxml2:BOOL=ON" - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DLIBXML2_INCLUDE_DIR:STRING=${LIBXML2_ROOT_DIR}/include/libxml2" - if [ "${LIBXML2_ROOT_DIR}" == "/usr" ] + if [ "${LIBXML2_ROOT_DIR}" != "/usr" ] then - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DLIBXML2_LIBRARIES:STRING=${LIBXML2_ROOT_DIR}/lib64/libxml2.so" - else + CMAKE_OPTIONS="${CMAKE_OPTIONS} -DLIBXML2_INCLUDE_DIR:STRING=${LIBXML2_ROOT_DIR}/include/libxml2" CMAKE_OPTIONS="${CMAKE_OPTIONS} -DLIBXML2_LIBRARIES:STRING=${LIBXML2_ROOT_DIR}/lib/libxml2.so" + CMAKE_OPTIONS="${CMAKE_OPTIONS} -DLIBXML2_XMLLINT_EXECUTABLE=${LIBXML2_ROOT_DIR}/bin/xmllint" fi - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DLIBXML2_XMLLINT_EXECUTABLE=${LIBXML2_ROOT_DIR}/bin/xmllint" fi ### freetype settings CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_MODULE_USE_EXTERNAL_VTK_freetype:BOOL=ON" -if [ -n "$FREETYPE_ROOT_DIR" ] +if [ -n "$FREETYPE_ROOT_DIR" ] then # with a native freetype, do not use these options CMAKE_OPTIONS="${CMAKE_OPTIONS} -DFREETYPE_INCLUDE_DIRS:STRING=${FREETYPE_ROOT_DIR}/include/freetype2" @@ -259,4 +252,3 @@ fi echo echo "########## END" - diff --git a/products/compil_scripts/ParaView-5.9.0.sh b/products/compil_scripts/ParaView-5.9.0.sh index 079f278..ffdf5a9 100755 --- a/products/compil_scripts/ParaView-5.9.0.sh +++ b/products/compil_scripts/ParaView-5.9.0.sh @@ -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=OFF" +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 @@ -56,7 +56,7 @@ then fi ### Ray-tracing settings -if [ -n "$OSPRAY_ROOT_DIR" ] +if [ -n "$OSPRAY_ROOT_DIR" ] then CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPARAVIEW_ENABLE_RAYTRACING:BOOL=ON" CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_ENABLE_OSPRAY:BOOL=ON" @@ -103,11 +103,8 @@ CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_BUILD_QT_DESIGNER_PLUGIN:BOOL=OFF" ### Python settings CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPARAVIEW_USE_PYTHON:BOOL=ON" CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_WRAP_PYTHON:BOOL=ON" -if [ "${PYTHON_ROOT_DIR}" == "/usr" ] +if [ "${PYTHON_ROOT_DIR}" != "/usr" ] then - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPython3_INCLUDE_DIR:STRING=${PYTHON_ROOT_DIR}/include/python${PYTHON_VERSION}m" - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPython3_LIBRARY:STRING=${PYTHON_ROOT_DIR}/lib64/libpython${PYTHON_VERSION}m.so" -else CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPython3_INCLUDE_DIR:STRING=${PYTHON_ROOT_DIR}/include/python${PYTHON_VERSION}" CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPython3_LIBRARY:STRING=${PYTHON_ROOT_DIR}/lib/libpython${PYTHON_VERSION}.so" fi @@ -164,11 +161,9 @@ CMAKE_OPTIONS="${CMAKE_OPTIONS} -DHDF5_ROOT:PATH=${HDF5_ROOT_DIR}" ### CGNS CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_MODULE_USE_EXTERNAL_ParaView_cgns:BOOL=ON" -CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCGNS_INCLUDE_DIR:PATH=${CGNS_ROOT_DIR}/include" -if [ "$CGNS_ROOT_DIR" == "/usr" ] +if [ "$CGNS_ROOT_DIR" != "/usr" ] then - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCGNS_LIBRARY:PATH=${CGNS_ROOT_DIR}/lib64/libcgns.so" -else + CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCGNS_INCLUDE_DIR:PATH=${CGNS_ROOT_DIR}/include" CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCGNS_LIBRARY:PATH=${CGNS_ROOT_DIR}/lib/libcgns.so" fi CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_MODULE_ENABLE_ParaView_cgns:INTERNAL=YES" @@ -187,23 +182,21 @@ CMAKE_OPTIONS="${CMAKE_OPTIONS} -DBoost_NO_SYSTEM_PATHS:BOOL=ON" CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_MODULE_USE_EXTERNAL_VTK_gl2ps:BOOL=OFF" ### libxml2 settings -if [ -n "$LIBXML2_ROOT_DIR" ] +if [ -n "$LIBXML2_ROOT_DIR" ] then # with a native libxml2, do not use these options CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_MODULE_USE_EXTERNAL_VTK_libxml2:BOOL=ON" - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DLIBXML2_INCLUDE_DIR:STRING=${LIBXML2_ROOT_DIR}/include/libxml2" - if [ "${LIBXML2_ROOT_DIR}" == "/usr" ] + if [ "${LIBXML2_ROOT_DIR}" != "/usr" ] then - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DLIBXML2_LIBRARIES:STRING=${LIBXML2_ROOT_DIR}/lib64/libxml2.so" - else + CMAKE_OPTIONS="${CMAKE_OPTIONS} -DLIBXML2_INCLUDE_DIR:STRING=${LIBXML2_ROOT_DIR}/include/libxml2" CMAKE_OPTIONS="${CMAKE_OPTIONS} -DLIBXML2_LIBRARIES:STRING=${LIBXML2_ROOT_DIR}/lib/libxml2.so" + CMAKE_OPTIONS="${CMAKE_OPTIONS} -DLIBXML2_XMLLINT_EXECUTABLE=${LIBXML2_ROOT_DIR}/bin/xmllint" fi - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DLIBXML2_XMLLINT_EXECUTABLE=${LIBXML2_ROOT_DIR}/bin/xmllint" fi ### freetype settings CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_MODULE_USE_EXTERNAL_VTK_freetype:BOOL=ON" -if [ -n "$FREETYPE_ROOT_DIR" ] +if [ -n "$FREETYPE_ROOT_DIR" ] then # with a native freetype, do not use these options CMAKE_OPTIONS="${CMAKE_OPTIONS} -DFREETYPE_INCLUDE_DIRS:STRING=${FREETYPE_ROOT_DIR}/include/freetype2" @@ -260,4 +253,3 @@ fi echo echo "########## END" - diff --git a/products/compil_scripts/ParaView.sh b/products/compil_scripts/ParaView.sh index 452cbf0..81c2382 100755 --- a/products/compil_scripts/ParaView.sh +++ b/products/compil_scripts/ParaView.sh @@ -103,11 +103,8 @@ CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_BUILD_QT_DESIGNER_PLUGIN:BOOL=OFF" ### Python settings CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPARAVIEW_USE_PYTHON:BOOL=ON" CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_WRAP_PYTHON:BOOL=ON" -if [ "${PYTHON_ROOT_DIR}" == "/usr" ] +if [ "${PYTHON_ROOT_DIR}" != "/usr" ] then - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPython3_INCLUDE_DIR:STRING=${PYTHON_ROOT_DIR}/include/python${PYTHON_VERSION}m" - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPython3_LIBRARY:STRING=${PYTHON_ROOT_DIR}/lib64/libpython${PYTHON_VERSION}m.so" -else CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPython3_INCLUDE_DIR:STRING=${PYTHON_ROOT_DIR}/include/python${PYTHON_VERSION}" CMAKE_OPTIONS="${CMAKE_OPTIONS} -DPython3_LIBRARY:STRING=${PYTHON_ROOT_DIR}/lib/libpython${PYTHON_VERSION}.so" fi @@ -164,11 +161,9 @@ CMAKE_OPTIONS="${CMAKE_OPTIONS} -DHDF5_ROOT:PATH=${HDF5_ROOT_DIR}" ### CGNS CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_MODULE_USE_EXTERNAL_ParaView_cgns:BOOL=ON" -CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCGNS_INCLUDE_DIR:PATH=${CGNS_ROOT_DIR}/include" -if [ "$CGNS_ROOT_DIR" == "/usr" ] +if [ "$CGNS_ROOT_DIR" != "/usr" ] then - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCGNS_LIBRARY:PATH=${CGNS_ROOT_DIR}/lib64/libcgns.so" -else + CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCGNS_INCLUDE_DIR:PATH=${CGNS_ROOT_DIR}/include" CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCGNS_LIBRARY:PATH=${CGNS_ROOT_DIR}/lib/libcgns.so" fi CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_MODULE_ENABLE_ParaView_cgns:INTERNAL=YES" @@ -187,23 +182,21 @@ CMAKE_OPTIONS="${CMAKE_OPTIONS} -DBoost_NO_SYSTEM_PATHS:BOOL=ON" CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_MODULE_USE_EXTERNAL_VTK_gl2ps:BOOL=OFF" ### libxml2 settings -if [ -n "$LIBXML2_ROOT_DIR" ] +if [ -n "$LIBXML2_ROOT_DIR" ] then # with a native libxml2, do not use these options CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_MODULE_USE_EXTERNAL_VTK_libxml2:BOOL=ON" - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DLIBXML2_INCLUDE_DIR:STRING=${LIBXML2_ROOT_DIR}/include/libxml2" - if [ "${LIBXML2_ROOT_DIR}" == "/usr" ] + if [ "${LIBXML2_ROOT_DIR}" != "/usr" ] then - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DLIBXML2_LIBRARIES:STRING=${LIBXML2_ROOT_DIR}/lib64/libxml2.so" - else + CMAKE_OPTIONS="${CMAKE_OPTIONS} -DLIBXML2_INCLUDE_DIR:STRING=${LIBXML2_ROOT_DIR}/include/libxml2" CMAKE_OPTIONS="${CMAKE_OPTIONS} -DLIBXML2_LIBRARIES:STRING=${LIBXML2_ROOT_DIR}/lib/libxml2.so" + CMAKE_OPTIONS="${CMAKE_OPTIONS} -DLIBXML2_XMLLINT_EXECUTABLE=${LIBXML2_ROOT_DIR}/bin/xmllint" fi - CMAKE_OPTIONS="${CMAKE_OPTIONS} -DLIBXML2_XMLLINT_EXECUTABLE=${LIBXML2_ROOT_DIR}/bin/xmllint" fi ### freetype settings CMAKE_OPTIONS="${CMAKE_OPTIONS} -DVTK_MODULE_USE_EXTERNAL_VTK_freetype:BOOL=ON" -if [ -n "$FREETYPE_ROOT_DIR" ] +if [ -n "$FREETYPE_ROOT_DIR" ] then # with a native freetype, do not use these options CMAKE_OPTIONS="${CMAKE_OPTIONS} -DFREETYPE_INCLUDE_DIRS:STRING=${FREETYPE_ROOT_DIR}/include/freetype2" diff --git a/products/compil_scripts/PyQt-5.12.sh b/products/compil_scripts/PyQt-5.12.sh new file mode 100755 index 0000000..9bb699b --- /dev/null +++ b/products/compil_scripts/PyQt-5.12.sh @@ -0,0 +1,83 @@ +#!/bin/bash + +echo "##########################################################################" +echo "PyQt" $VERSION +echo "##########################################################################" + + + +python_name=python$PYTHON_VERSION + +# OP 01/08/2017 Artifact 8859 : test compilation PyQt 5.9 +# On fait tout dans les sources +#CURRENT_DIR=`pwd` +cd $SOURCE_DIR +if [ $? -ne 0 ] +then + echo "ERROR on $SOURCE_DIR access" + exit 1 +fi + + +echo +echo "*** configure.py --confirm-license --no-designer-plugin --verbose --bindir=${PRODUCT_INSTALL}/bin --destdir=${PRODUCT_INSTALL}/lib/$python_name/site-packages --sipdir=${SIP_ROOT_DIR} --disable=QtNetwork --disable=QtWebSockets" +$PYTHONBIN ./configure.py --confirm-license --no-designer-plugin --verbose \ + --bindir=${PRODUCT_INSTALL}/bin \ + --destdir=${PRODUCT_INSTALL}/lib/$python_name/site-packages \ + --sipdir=${SIP_ROOT_DIR}/sip \ + --disable=QtNetwork --disable=QtWebSockets 2>&1 + +if [ $? -ne 0 ] +then + echo "ERROR on configure" +# OP 01/08/2017 Artifact 8859 : test compilation PyQt 5.9 +# On fait tout dans les sources +# exit 1 +# cd $CURRENT_DIR + exit 2 +fi + +echo +echo "*** make" $MAKE_OPTIONS +make $MAKE_OPTIONS +if [ $? -ne 0 ] +then + echo "ERROR on make" +# OP 01/08/2017 Artifact 8859 : test compilation PyQt 5.9 +# On fait tout dans les sources +# exit 2 +# cd $CURRENT_DIR + exit 3 +fi + +echo +echo "*** make install" +make install +if [ $? -ne 0 ] +then + echo "ERROR on make install" +# OP 01/08/2017 Artifact 8859 : test compilation PyQt 5.9 +# On fait tout dans les sources +# exit 3 +# cd $CURRENT_DIR + exit 4 +fi + +# OP 01/08/2017 Artifact 8859 : test compilation PyQt 5.9 +# Ajout du make clean +echo +echo "*** make clean" +make clean +if [ $? -ne 0 ] +then + echo "ERROR on make clean" +# cd $CURRENT_DIR + exit 5 +fi + + +echo +echo "########## END" + +exit 0 + diff --git a/products/compil_scripts/PyQt-5.15.sh b/products/compil_scripts/PyQt-5.15.sh new file mode 100755 index 0000000..ecf6c3f --- /dev/null +++ b/products/compil_scripts/PyQt-5.15.sh @@ -0,0 +1,92 @@ +#!/bin/bash + +echo "##########################################################################" +echo "PyQt" $VERSION +echo "##########################################################################" + + + +python_name=python$PYTHON_VERSION + +# OP 01/08/2017 Artifact 8859 : test compilation PyQt 5.9 +# On fait tout dans les sources +#CURRENT_DIR=`pwd` +cd $SOURCE_DIR +if [ $? -ne 0 ] +then + echo "ERROR on $SOURCE_DIR access" + exit 1 +fi + + +echo +echo "*** configure.py --confirm-license --no-designer-plugin --verbose --bindir=${PRODUCT_INSTALL}/bin --destdir=${PRODUCT_INSTALL}/lib/$python_name/site-packages --sipdir=${SIP_ROOT_DIR} --disable=QtNetwork --disable=QtWebSockets" +$PYTHONBIN ./configure.py --confirm-license --no-designer-plugin --verbose \ + --bindir=${PRODUCT_INSTALL}/bin \ + --destdir=${PRODUCT_INSTALL}/lib/$python_name/site-packages \ + --sipdir=${SIP_ROOT_DIR} \ + --disable=QtNetwork --disable=QtWebSockets 2>&1 +# --disable=QtNetwork --disable=QtWebSockets --disable=QtWebKit --disable=QtWebKitWidgets --disable=QAxContainer --disable=QtMacExtras --disable=QtWinExtras --disable=QtX11Extras --disable=Enginio 2>&1 + +if [ $? -ne 0 ] +then + echo "ERROR on configure" +# OP 01/08/2017 Artifact 8859 : test compilation PyQt 5.9 +# On fait tout dans les sources +# exit 1 +# cd $CURRENT_DIR + exit 2 +fi + +echo +echo "*** make" $MAKE_OPTIONS +make $MAKE_OPTIONS +if [ $? -ne 0 ] +then + echo "ERROR on make" +# OP 01/08/2017 Artifact 8859 : test compilation PyQt 5.9 +# On fait tout dans les sources +# exit 2 +# cd $CURRENT_DIR + exit 3 +fi + +echo +echo "*** make install" +make install +if [ $? -ne 0 ] +then + echo "ERROR on make install" +# OP 01/08/2017 Artifact 8859 : test compilation PyQt 5.9 +# On fait tout dans les sources +# exit 3 +# cd $CURRENT_DIR + exit 4 +fi + +# OP 01/08/2017 Artifact 8859 : test compilation PyQt 5.9 +# Ajout du make clean +echo +echo "*** make clean" +make clean +if [ $? -ne 0 ] +then + echo "ERROR on make clean" +# cd $CURRENT_DIR + exit 5 +fi + +# Issue with GUI - TO BE FIXED +if [ -n "$SIP_ROOT_DIR" ] +then + cp -r $SIP_ROOT_DIR $PRODUCT_INSTALL +else + echo "FATAL: Please set SIP_ROOT_DIR environment variable" + exit 6 +fi + +echo +echo "########## END" + +exit 0 + diff --git a/products/compil_scripts/netgen_5_3_1.sh b/products/compil_scripts/netgen_5_3_1.sh index dd148ae..45c30b0 100755 --- a/products/compil_scripts/netgen_5_3_1.sh +++ b/products/compil_scripts/netgen_5_3_1.sh @@ -61,27 +61,21 @@ echo "*** configure" BFLAG="-m64" OLEVEL="-O2" -if [ "${TCLHOME}" == '/usr' ] +if [ "${TCLHOME}" != '/usr' ] then - TCL_LIB_DIR=${TCLHOME}/lib64 -else - TCL_LIB_DIR=${TCLHOME}/lib + TCL_TK_OPTIONS="--with-tcl=${TCLHOME}/lib --with-tk=${TCLHOME}/lib --with-tclinclude=${TCLHOME}/include" fi echo ./configure --prefix=${PRODUCT_INSTALL} \ --with-occ=${CASROOT} \ - --with-tcl=${TCL_LIB_DIR} \ - --with-tk=${TCL_LIB_DIR} \ --disable-openmp \ - --with-tclinclude=${TCLHOME}/include \ + ${TCL_TK_OPTIONS} \ CXXFLAGS="-I${CASROOT}/include/opencascade ${OLEVEL} ${BFLAG} -std=c++0x" ./configure --prefix=${PRODUCT_INSTALL} \ --with-occ=${CASROOT} \ - --with-tcl=${TCL_LIB_DIR} \ - --with-tk=${TCL_LIB_DIR} \ --disable-openmp \ - --with-tclinclude=${TCLHOME}/include \ + ${TCL_TK_OPTIONS} \ CXXFLAGS="-I${CASROOT}/include/opencascade ${OLEVEL} ${BFLAG} -std=c++0x" #-std=gnu++11" #-std=c++11 -std=c++0x" - + if [ $? -ne 0 ] then echo "error on configure" diff --git a/products/compil_scripts/qt-5.12.10.sh b/products/compil_scripts/qt-5.12.10.sh index e83d672..8f5773b 100755 --- a/products/compil_scripts/qt-5.12.10.sh +++ b/products/compil_scripts/qt-5.12.10.sh @@ -22,12 +22,12 @@ rm -rf $BUILD_DIR && mkdir -p $BUILD_DIR && cd $BUILD_DIR # For -qt-harfbuzz option, see spns #9694 echo -echo "*** $SOURCE_DIR/configure -prefix $PRODUCT_INSTALL $BUILD_TYPE -opensource -nomake tests -nomake examples -no-rpath -verbose -no-separate-debug-info -confirm-license -qt-libpng -qt-xcb -no-eglfs -dbus-runtime -skip qtwebengine -skip wayland -skip qtgamepad -system-freetype -qt-harfbuzz -no-openssl -no-glib" +echo "*** $SOURCE_DIR/configure -prefix $PRODUCT_INSTALL $BUILD_TYPE -opensource -nomake tests -nomake examples -no-rpath -verbose -no-separate-debug-info -confirm-license -qt-libpng -qt-xcb -no-eglfs -dbus-runtime -skip qtwebengine -skip wayland -skip qtgamepad -system-freetype -qt-harfbuzz -no-openssl -no-glib -no-jasper" $SOURCE_DIR/configure -prefix $PRODUCT_INSTALL $BUILD_TYPE -opensource -nomake tests -nomake examples -no-rpath \ -verbose -no-separate-debug-info -confirm-license -qt-libpng -qt-xcb -no-eglfs -dbus-runtime -skip qtwebengine \ -skip wayland -skip qtgamepad -system-freetype -qt-harfbuzz \ - -no-openssl -no-glib + -no-openssl -no-glib -no-jasper if [ $? -ne 0 ] then diff --git a/products/compil_scripts/sip-5.5.0.sh b/products/compil_scripts/sip-5.5.0.sh new file mode 100755 index 0000000..6a0d878 --- /dev/null +++ b/products/compil_scripts/sip-5.5.0.sh @@ -0,0 +1,62 @@ +#!/bin/bash + +echo "##########################################################################" +echo SIP + PyQt5_sip $VERSION +echo "##########################################################################" + + +echo "*** build in SOURCE directory" +cd $SOURCE_DIR/sip-5.5.0 + +# we don't install in python directory -> modify environment as described in INSTALL file +mkdir -p $PRODUCT_INSTALL/lib/python${PYTHON_VERSION:0:3}/site-packages +export PATH=$(pwd)/bin:$PATH +export PYTHONPATH=$(pwd):$PYTHONPATH +export PYTHONPATH=${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION:0:3}/site-packages:$PYTHONPATH + +echo +echo "*** build with $PYTHONBIN" +$PYTHONBIN setup.py build +if [ $? -ne 0 ] +then + echo "ERROR on build" + exit 2 +fi + +echo +echo "*** install with $PYTHONBIN" +$PYTHONBIN setup.py install --prefix=$PRODUCT_INSTALL +if [ $? -ne 0 ] +then + echo "ERROR on install" + exit 3 +fi + +cd $SOURCE_DIR/PyQt5_sip-12.8.1 + +echo +echo "*** build with $PYTHONBIN" +$PYTHONBIN setup.py build +if [ $? -ne 0 ] +then + echo "ERROR on build" + exit 2 +fi + +echo +echo "*** install with $PYTHONBIN" +$PYTHONBIN setup.py install --prefix=$PRODUCT_INSTALL +if [ $? -ne 0 ] +then + echo "ERROR on install" + exit 3 +fi + +mkdir $PRODUCT_INSTALL/include +cp *.h $PRODUCT_INSTALL/include + +cd $PRODUCT_INSTALL/bin +ln -sf sip5 sip + +echo +echo "########## END" diff --git a/products/cppunit.pyconf b/products/cppunit.pyconf index 29e9583..557629e 100644 --- a/products/cppunit.pyconf +++ b/products/cppunit.pyconf @@ -8,7 +8,7 @@ default : { rpm : ["cppunit"] rpm_dev : ["cppunit-devel"] - apt : ["libcppunit"] + apt : [] apt_dev : ["libcppunit-dev"] } environ : diff --git a/products/env_scripts/qt.py b/products/env_scripts/qt.py index 8d42bb3..55abd20 100644 --- a/products/env_scripts/qt.py +++ b/products/env_scripts/qt.py @@ -23,14 +23,21 @@ def set_env(env, prereq_dir, version): env.prepend('LD_LIBRARY_PATH', os.path.join(prereq_dir, 'lib')) def set_nativ_env(env): + + # Adapt Qt libraries dir according to the current distribution (generic -> Ubuntu) + if any(distribution in platform.platform() for distribution in ["debian", "generic"]) : + qt_lib_dir='/usr/lib/x86_64-linux-gnu' + else : + qt_lib_dir='/usr/lib64' + env.set('QT5_ROOT_DIR', '/usr') - env.set('Qt5Core_DIR', '/usr/lib64/cmake/Qt5Core') - env.set('Qt5Gui_DIR', '/usr/lib64/cmake/Qt5Gui') - env.set('Qt5Widgets_DIR', '/usr/lib64/cmake/Qt5Widgets') - env.set('Qt5Network_DIR', '/usr/lib64/cmake/Qt5Network') - env.set('Qt5Xml_DIR', '/usr/lib64/cmake/Qt5Xml') - env.set('Qt5OpenGL_DIR', '/usr/lib64/cmake/Qt5OpenGL') - env.set('Qt5PrintSupport_DIR', '/usr/lib64/cmake/Qt5PrintSupport') - env.set('Qt5Help_DIR', '/usr/lib64/cmake/Qt5Help') - env.set('Qt5Test_DIR', '/usr/lib64/cmake/Qt5Test') - env.set('Qt5X11Extras_DIR', '/usr/lib64/cmake/Qt5X11Extras') + env.set('Qt5Core_DIR', os.path.join(qt_lib_dir, 'cmake/Qt5Core')) + env.set('Qt5Gui_DIR', os.path.join(qt_lib_dir, 'cmake/Qt5Gui')) + env.set('Qt5Widgets_DIR', os.path.join(qt_lib_dir, 'cmake/Qt5Widgets')) + env.set('Qt5Network_DIR', os.path.join(qt_lib_dir, 'cmake/Qt5Network')) + env.set('Qt5Xml_DIR', os.path.join(qt_lib_dir, 'cmake/Qt5Xml')) + env.set('Qt5OpenGL_DIR', os.path.join(qt_lib_dir, 'cmake/Qt5OpenGL')) + env.set('Qt5PrintSupport_DIR', os.path.join(qt_lib_dir, 'cmake/Qt5PrintSupport')) + env.set('Qt5Help_DIR', os.path.join(qt_lib_dir, 'cmake/Qt5Help')) + env.set('Qt5Test_DIR', os.path.join(qt_lib_dir, 'cmake/Qt5Test')) + env.set('Qt5X11Extras_DIR', os.path.join(qt_lib_dir, 'cmake/Qt5X11Extras')) diff --git a/products/freeimage.pyconf b/products/freeimage.pyconf index 5f993e6..d5e5671 100644 --- a/products/freeimage.pyconf +++ b/products/freeimage.pyconf @@ -8,7 +8,7 @@ default : { rpm : ["freeimage"] rpm_dev : ["freeimage-devel"] - apt : ["libfreeimage"] + apt : ["libfreeimage3"] apt_dev : ["libfreeimage-dev"] } patches : [] diff --git a/products/freetype.pyconf b/products/freetype.pyconf index a245ca4..32109e4 100755 --- a/products/freetype.pyconf +++ b/products/freetype.pyconf @@ -8,7 +8,7 @@ default : { rpm : ["freetype"] rpm_dev : ["freetype-devel"] - apt : ["libfreetype"] + apt : ["libfreetype6"] apt_dev : ["libfreetype6-dev"] } environ : diff --git a/products/openVKL.pyconf b/products/openVKL.pyconf index 1dc31ca..c797092 100644 --- a/products/openVKL.pyconf +++ b/products/openVKL.pyconf @@ -2,13 +2,13 @@ default : { name : "openVKL" build_source : "cmake" - cmake_options : "-DBUILD_TESTING=OFF -DCMAKE_INSTALL_LIBDIR=lib" + cmake_options : "-DBUILD_TESTING=OFF -DCMAKE_INSTALL_LIBDIR=lib -DBUILD_EXAMPLES=OFF" get_source : "archive" environ : { env_script : $name + ".py" } - depend : ['Python', 'tbb','glfw', 'ispc', 'rkCommon', 'embree'] + depend : ['Python', 'tbb', 'ispc', 'rkCommon', 'embree'] build_depend : ['cmake'] source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name diff --git a/products/opencv.pyconf b/products/opencv.pyconf index 898abb6..12e7304 100644 --- a/products/opencv.pyconf +++ b/products/opencv.pyconf @@ -8,7 +8,7 @@ default : { rpm : ["opencv"] rpm_dev : ["opencv-devel"] - apt : ["libopencv"] + apt : ["python3-opencv"] apt_dev : ["libopencv-dev"] } environ : diff --git a/products/patches/ParaView-5.9.0-CATALYST_cmake.patch b/products/patches/ParaView-5.9.0-CATALYST_cmake.patch index 9a69ae0..7f79c1f 100644 --- a/products/patches/ParaView-5.9.0-CATALYST_cmake.patch +++ b/products/patches/ParaView-5.9.0-CATALYST_cmake.patch @@ -1,5 +1,18 @@ ---- ParaView_ref/ThirdParty/catalyst/vtkcatalyst/catalyst/CMakeLists.txt 2021-02-12 16:35:40.957930618 +0100 -+++ ParaView/ThirdParty/catalyst/vtkcatalyst/catalyst/CMakeLists.txt 2021-02-12 16:35:50.500219714 +0100 +diff -Naur ParaView-5.9.0_ref/ThirdParty/catalyst/vtkcatalyst/catalyst/cmake/catalyst-config.cmake.in ParaView-5.9.0/ThirdParty/catalyst/vtkcatalyst/catalyst/cmake/catalyst-config.cmake.in +--- ParaView-5.9.0_ref/ThirdParty/catalyst/vtkcatalyst/catalyst/cmake/catalyst-config.cmake.in 2021-02-04 15:22:02.000000000 +0100 ++++ ParaView-5.9.0/ThirdParty/catalyst/vtkcatalyst/catalyst/cmake/catalyst-config.cmake.in 2021-03-01 15:51:58.110940810 +0100 +@@ -1,6 +1,6 @@ + # Catalyst Package config file. + cmake_policy(PUSH) +-cmake_policy(VERSION 3.13) ++cmake_policy(VERSION 3.12) + + set(CATALYST_VERSION "@CATALYST_VERSION@") + set(CATALYST_ABI_VERSION "@CATALYST_ABI_VERSION@") + +diff -Naur ParaView-5.9.0_ref/ThirdParty/catalyst/vtkcatalyst/catalyst/CMakeLists.txt ParaView-5.9.0/ThirdParty/catalyst/vtkcatalyst/catalyst/CMakeLists.txt +--- ParaView-5.9.0_ref/ThirdParty/catalyst/vtkcatalyst/catalyst/CMakeLists.txt 2021-02-04 15:22:02.000000000 +0100 ++++ ParaView-5.9.0/ThirdParty/catalyst/vtkcatalyst/catalyst/CMakeLists.txt 2021-03-01 15:56:02.640910857 +0100 @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.13...3.16 FATAL_ERROR) +cmake_minimum_required(VERSION 3.12...3.16 FATAL_ERROR) diff --git a/products/patches/paraview-5.9_PARAVISADDONS.patch b/products/patches/paraview-5.9_PARAVISADDONS.patch new file mode 100644 index 0000000..3c72bc7 --- /dev/null +++ b/products/patches/paraview-5.9_PARAVISADDONS.patch @@ -0,0 +1,66 @@ +diff --git a/src/ElectromagnetismRotation/plugin/ElectromagnetismRotationIO/vtkElectromagnetismRotation.cxx b/src/ElectromagnetismRotation/plugin/ElectromagnetismRotationIO/vtkElectromagnetismRotation.cxx +index dfe3af6..8107cb6 100644 +--- a/src/ElectromagnetismRotation/plugin/ElectromagnetismRotationIO/vtkElectromagnetismRotation.cxx ++++ b/src/ElectromagnetismRotation/plugin/ElectromagnetismRotationIO/vtkElectromagnetismRotation.cxx +@@ -26,7 +26,7 @@ + #include "VTKMEDTraits.hxx" + + #include "vtkAdjacentVertexIterator.h" +-#include "vtkDataArrayTemplate.h" ++#include "vtkAOSDataArrayTemplate.h" + #include "vtkIntArray.h" + #include "vtkLongArray.h" + #ifdef WIN32 +@@ -210,7 +210,7 @@ vtkDataSet *FilterFamilies(vtkThreshold *thres, + vtkDataSet *input, const std::set& idsToKeep, bool insideOut, const char *arrNameOfFamilyField, + const char *associationForThreshold, bool& catchAll, bool& catchSmth) + { +- const int VTK_DATA_ARRAY_DELETE=vtkDataArrayTemplate::VTK_DATA_ARRAY_DELETE; ++ const int VTK_DATA_ARRAY_DELETE=vtkAOSDataArrayTemplate::VTK_DATA_ARRAY_DELETE; + const char ZE_SELECTION_ARR_NAME[]="@@ZeSelection@@"; + vtkDataSet *output(input->NewInstance()); + output->ShallowCopy(input); +diff --git a/src/ExtractThreeD/plugin/ExtractThreeDModule/vtkExtractThreeD.cxx b/src/ExtractThreeD/plugin/ExtractThreeDModule/vtkExtractThreeD.cxx +index 208c6f3..5043cbc 100644 +--- a/src/ExtractThreeD/plugin/ExtractThreeDModule/vtkExtractThreeD.cxx ++++ b/src/ExtractThreeD/plugin/ExtractThreeDModule/vtkExtractThreeD.cxx +@@ -30,7 +30,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include +@@ -156,7 +156,7 @@ int vtkExtractThreeD::RequestInformation(vtkInformation *request, vtkInformation + + vtkDataSet *FilterFamilies(vtkDataSet *input, const std::vector &idsToKeep) + { +- const int VTK_DATA_ARRAY_DELETE = vtkDataArrayTemplate::VTK_DATA_ARRAY_DELETE; ++ const int VTK_DATA_ARRAY_DELETE = vtkAOSDataArrayTemplate::VTK_DATA_ARRAY_DELETE; + const char ZE_SELECTION_ARR_NAME[] = "@@ZeSelection@@"; + vtkDataSet *output(input->NewInstance()); + output->ShallowCopy(input); +diff --git a/src/ZJFilter/plugin/ZJFilterModule/vtkZJFilter.cxx b/src/ZJFilter/plugin/ZJFilterModule/vtkZJFilter.cxx +index 803049e..e257e58 100644 +--- a/src/ZJFilter/plugin/ZJFilterModule/vtkZJFilter.cxx ++++ b/src/ZJFilter/plugin/ZJFilterModule/vtkZJFilter.cxx +@@ -29,7 +29,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include +@@ -363,7 +363,7 @@ vtkDataSet* FilterFamilies(vtkZJFilter* zeBoss, vtkDataSet* input, const std::se + bool catchAll, catchSmth; + vtkNew thres; + thres->AddObserver(vtkCommand::ProgressEvent, zeBoss->InternalProgressObserver); +- constexpr int VTK_DATA_ARRAY_DELETE = vtkDataArrayTemplate::VTK_DATA_ARRAY_DELETE; ++ constexpr int VTK_DATA_ARRAY_DELETE = vtkAOSDataArrayTemplate::VTK_DATA_ARRAY_DELETE; + constexpr char ZE_SELECTION_ARR_NAME[] = "@@ZeSelection@@"; + constexpr char arrNameOfFamilyField[] = "FamilyIdCell"; + constexpr char associationForThreshold[] = "vtkDataObject::FIELD_ASSOCIATION_CELLS"; diff --git a/products/patches/paraview-5.9_qt-minimum-version.patch b/products/patches/paraview-5.9_qt-minimum-version.patch new file mode 100644 index 0000000..c91f2b6 --- /dev/null +++ b/products/patches/paraview-5.9_qt-minimum-version.patch @@ -0,0 +1,11 @@ +--- ParaView/Qt/Core/CMakeLists.txt 2021-02-04 15:22:02.000000000 +0100 ++++ ParaView_new/Qt/Core/CMakeLists.txt 2021-03-24 19:07:19.332728213 +0100 +@@ -165,7 +165,7 @@ + vtk_module_find_package( + PACKAGE Qt5 + COMPONENTS ${qt_components} +- VERSION 5.12 ++ VERSION 5.11 + FORWARD_VERSION_REQ MINOR) + + set(CMAKE_AUTOMOC 1) diff --git a/products/patches/paraview.0003-ParaViewClient_native.patch b/products/patches/paraview.0003-ParaViewClient_native.patch new file mode 100644 index 0000000..74d8333 --- /dev/null +++ b/products/patches/paraview.0003-ParaViewClient_native.patch @@ -0,0 +1,10 @@ +--- ParaView/CMake/ParaViewClient.cmake 2020-12-21 19:28:36.023465845 +0100 ++++ ParaView.new/CMake/ParaViewClient.cmake 2020-12-21 19:30:17.073254132 +0100 +@@ -516,6 +516,7 @@ + NAMES xmlpatterns-qt5 xmlpatterns + HINTS "${Qt5_DIR}/../../../bin" + "${Qt5_DIR}/../../../libexec/qt5/bin" ++ "${Qt5_DIR}/../../qt5/bin" + NO_CMAKE_PATH + DOC "Path to xmlpatterns") + mark_as_advanced(qt_xmlpatterns_executable) diff --git a/products/qt.pyconf b/products/qt.pyconf index db2e9b9..2ec6676 100644 --- a/products/qt.pyconf +++ b/products/qt.pyconf @@ -8,8 +8,8 @@ default: { rpm : [] rpm_dev : ["qt5-devel"] - apt : ["build-essential"] - apt_dev : ["libgl1-mesa-dev"] + apt : [] + apt_dev : ["qttools5-dev", "libqt5svg5-dev", "libqt5x11extras5-dev", "qtxmlpatterns5-dev-tools"] } environ : { @@ -32,6 +32,12 @@ default_win: check_install : [] } +version_5_15_2 : +{ + compil_script : "qt-5.15.2.sh" + depend : ["freetype", 'llvm'] +} + version_5_12_10 : { compil_script : "qt-5.12.10.sh" diff --git a/products/qwt.pyconf b/products/qwt.pyconf index 036c221..8e1538f 100644 --- a/products/qwt.pyconf +++ b/products/qwt.pyconf @@ -8,7 +8,7 @@ default : { rpm : ["qwt-qt5"] rpm_dev : ["qwt-qt5-devel"] - apt : ["libqwt-qt5"] + apt : ["libqwt-qt5-6"] apt_dev : ["libqwt-qt5-dev"] } environ : diff --git a/products/scotch.pyconf b/products/scotch.pyconf index ce6a726..837fcac 100644 --- a/products/scotch.pyconf +++ b/products/scotch.pyconf @@ -8,7 +8,7 @@ default : { rpm : ["scotch"] rpm_dev : ["scotch-devel"] - apt : ["libscotch"] + apt : [] apt_dev : ["libscotch-dev"] } environ : diff --git a/products/sip.pyconf b/products/sip.pyconf index 2787423..3a32bd0 100644 --- a/products/sip.pyconf +++ b/products/sip.pyconf @@ -27,9 +27,12 @@ default : version_5_5_0 : { - properties: - { - incremental : "yes" - pip : "yes" - } -} \ No newline at end of file + compil_script : 'sip-5.5.0.sh' + archive_info : {archive_name : "sip-5.5.0-PyQt5_sip-12.8.1.tar.gz"} +} + +version_4_19_24 : +{ + compil_script : 'sip.sh' +# archive_info : {archive_name : "sip-4.19.24_PyQt5-12.8.1.tar.gz"} +} diff --git a/products/snowballstemmer.pyconf b/products/snowballstemmer.pyconf index 13b7d96..eebcc58 100644 --- a/products/snowballstemmer.pyconf +++ b/products/snowballstemmer.pyconf @@ -8,7 +8,7 @@ default : { rpm : ["python3-snowballstemmer"] rpm_dev : [] - apt : ["python3-snowballstemmer"] + apt : ["python3-stemmer"] apt_dev : [] } environ : diff --git a/products/sphinxintl.pyconf b/products/sphinxintl.pyconf index 7932453..eb41010 100644 --- a/products/sphinxintl.pyconf +++ b/products/sphinxintl.pyconf @@ -4,6 +4,13 @@ default : build_source : "script" compil_script : 'pip_install' + $VARS.scriptExtension get_source : "archive" + system_info : + { + rpm : ["python3-sphinx-intl"] + rpm_dev : [] + apt : ["sphinx-intl"] + apt_dev : [] + } environ : { env_script : "sphinxintl.py" diff --git a/products/tbb.pyconf b/products/tbb.pyconf index f72e1a1..f9cf2b5 100644 --- a/products/tbb.pyconf +++ b/products/tbb.pyconf @@ -8,7 +8,7 @@ default : { rpm : ["tbb"] rpm_dev : ["tbb-devel"] - apt : ["libtbb"] + apt : ["libtbb2"] apt_dev : ["libtbb-dev"] } environ :