From: Nabil Ghodbane Date: Wed, 5 Apr 2023 08:18:24 +0000 (+0200) Subject: support Paraview 5.11.1 release X-Git-Tag: V9_11_0~74 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bd90768f24e053dd4c995db8e34a58459b018ff4;p=tools%2Fsat_salome.git support Paraview 5.11.1 release --- diff --git a/products/ParaView.pyconf b/products/ParaView.pyconf index c6479d6..5b3df89 100755 --- a/products/ParaView.pyconf +++ b/products/ParaView.pyconf @@ -30,6 +30,195 @@ default : } } +version_5_11_1 : +{ + compil_script : 'ParaView-5.11.1.sh' + archive_info : {archive_name : "ParaView-5.11.1.tar.gz"} + patches : [ + ] + depend : [ + 'Python', + 'hdf5', + 'qt', + 'PyQt', + 'sip', + 'boost', + 'libxml2', + 'freetype', + 'matplotlib', + 'cgns', + 'Pygments' + ] + opt_depend : ['ospray','tbb', 'openturns', 'gdal', 'netcdf', 'catalyst'] +} + +version_5_11_1_int32 : +{ + compil_script : 'ParaView-5.11.1.sh' + archive_info : {archive_name : "ParaView-5.11.1.tar.gz"} + # two other LATA patches already included in archive + patches : [] + depend : [ + 'Python', + 'hdf5', + 'qt', + 'PyQt', + 'sip', + 'boost', + 'libxml2', + 'freetype', + 'matplotlib', + 'cgns', + 'Pygments' + ] + opt_depend : ['ospray','tbb', 'openturns', 'gdal', 'netcdf', 'catalyst'] +} + +version_5_11_1_win : +{ + compil_script : 'ParaView-5.11.1.bat' + archive_info : {archive_name : "ParaView-5.11.1.tar.gz"} + depend : [ + 'Python', + 'hdf5', + 'qt', + 'boost', + 'libxml2', + 'freetype', + 'cgns', + 'Pygments', + 'pthreads', + 'zlib' + ] + opt_depend : ['openmpi', 'ospray','tbb', 'openturns', 'rkCommon', 'matplotlib'] + patches : [] +} + +version_5_11_1_win_dbg : +{ + compil_script : 'ParaView-5.11.1.bat' + archive_info : {archive_name : "ParaView-5.11.1.tar.gz"} + depend : [ + 'Python', + 'hdf5', + 'qt', + 'boost', + 'libxml2', + 'freetype', + 'cgns', + 'Pygments', + 'pthreads', + 'zlib' + ] + opt_depend : ['openmpi', 'ospray','tbb', 'openturns', 'rkCommon', 'matplotlib'] + patches : [] +} + +version_5_11_1_MPI : +{ + compil_script : 'ParaView-5.11.1.sh' + archive_info : {archive_name : "ParaView-5.11.1.tar.gz"} + patches : [] + depend : [ + 'Python', + 'hdf5', + 'qt', + 'PyQt', + 'sip', + 'boost', + 'libxml2', + 'freetype', + 'matplotlib', + 'cgns', + 'Pygments' + ] + opt_depend : ['openmpi', 'ospray','tbb', 'openturns', 'gdal', 'netcdf', 'catalyst'] +} + +version_5_11_1_MPI_LATA_64BITS_IDS : +{ + compil_script : 'ParaView-5.11.1.sh' + archive_info : {archive_name : "ParaView-5.11.1.tar.gz"} + patches : [] + depend : [ + 'Python', + 'hdf5', + 'qt', + 'PyQt', + 'sip', + 'boost', + 'libxml2', + 'freetype', + 'matplotlib', + 'cgns', + 'Pygments' + ] + opt_depend : ['openmpi', 'ospray','tbb', 'openturns', 'gdal', 'netcdf', 'catalyst'] +} + +version_5_11_1_MPI_DB10 : +{ + compil_script : 'ParaView-5.11.1.sh' + archive_info : {archive_name : "ParaView-5.11.1.tar.gz"} + patches : [] + depend : [ + 'Python', + 'hdf5', + 'qt', + 'PyQt', + 'sip', + 'boost', + 'libxml2', + 'freetype', + 'matplotlib', + 'cgns', + 'Pygments' + ] + opt_depend : ['openmpi', 'ospray','tbb', 'openturns', 'gdal', 'netcdf', 'catalyst'] +} + +version_5_11_1_MPI_CO8 : +{ + compil_script : 'ParaView-5.11.1.sh' + archive_info : {archive_name : "ParaView-5.11.1.tar.gz"} + patches : [] + depend : [ + 'Python', + 'hdf5', + 'qt', + 'PyQt', + 'sip', + 'boost', + 'libxml2', + 'freetype', + 'matplotlib', + 'cgns', + 'Pygments' + ] + opt_depend : ['openmpi', 'ospray','tbb', 'openturns', 'gdal', 'netcdf', 'catalyst'] +} + +version_5_11_1_MPI_FD37 : +{ + compil_script : 'ParaView-5.11.1.sh' + archive_info : {archive_name : "ParaView-5.11.1.tar.gz"} + patches : [] + depend : [ + 'Python', + 'hdf5', + 'qt', + 'PyQt', + 'sip', + 'boost', + 'libxml2', + 'freetype', + 'matplotlib', + 'cgns', + 'Pygments' + ] + opt_depend : ['openmpi', 'ospray','tbb', 'openturns', 'gdal', 'netcdf', 'catalyst'] +} + version_5_11_0 : { compil_script : 'ParaView-5.11.0.sh' diff --git a/products/compil_scripts/ParaView-5.11.1.bat b/products/compil_scripts/ParaView-5.11.1.bat new file mode 100644 index 0000000..59ee853 --- /dev/null +++ b/products/compil_scripts/ParaView-5.11.1.bat @@ -0,0 +1,256 @@ +@echo off + +echo ########################################################################## +echo ParaView %VERSION% %PYTHON_VERSION% %PYTHON_VERSION:.=% +echo ########################################################################## + +IF NOT DEFINED SAT_DEBUG ( + SET SAT_DEBUG=0 +) + +if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL% +REM clean BUILD directory +if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR% +mkdir %BUILD_DIR% + +SET PRODUCT_BUILD_TYPE=Release +if %SAT_DEBUG% == 1 ( + set PRODUCT_BUILD_TYPE=Debug +) + +set PVLIBVERSION=5.11 + +set python_name=python%PYTHON_VERSION% + +set CMAKE_OPTIONS= +REM common compiler and install settings +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_PREFIX:STRING=%PRODUCT_INSTALL:\=/% +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_VERBOSE_MAKEFILE=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_BUILD_TYPE:STRING=%PRODUCT_BUILD_TYPE% + +REM common ParaView settings +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_BUILD_SHARED_LIBS:BOOL=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_LIBDIR:STRING=lib +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBUILD_TESTING:BOOL=OFF +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON + +REM OpenGL settings +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DOpenGL_GL_PREFERENCE:STRING=LEGACY + +REM Ray-tracing settings +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_ENABLE_RAYTRACING:BOOL=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_ENABLE_OSPRAY:BOOL=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -Dospray_DIR:PATH=%OSPRAY_ROOT_DIR:\=/%/lib/cmake/ospray-2.4.0 +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -Dembree_DIR:PATH=%EMBREE_ROOT_DIR:\=/%/lib/cmake/embree-3.12.2 + +REM Paraview general settings +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_PYTHON_FULL_THREADSAFE:BOOL=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_PYTHON_VERSION:STRING=3 + +REM VTK general settings + +REM Use 64 bits IDS on request +if DEFINED SALOME_USE_64BIT_IDS ( + set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_USE_64BIT_IDS:BOOL=ON +) else ( + set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_USE_64BIT_IDS:BOOL=OFF +) + +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_INSTALL_LIBRARY_DIR=lib/paraview-%PVLIBVERSION% +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_INSTALL_ARCHIVE_DIR=lib/paraview-%PVLIBVERSION% +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_PYTHON_SITE_PACKAGES_SUFFIX=site-packages +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTKm_INSTALL_LIB_DIR=lib/paraview-%PVLIBVERSION% + +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_REPORT_OPENGL_ERRORS:BOOL=OFF + +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_MODULE_ENABLE_VTK_RenderingLOD:INTERNAL=YES +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_MODULE_ENABLE_VTK_FiltersCore:INTERNAL=YES +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_MODULE_ENABLE_VTK_CommonCore:INTERNAL=YES +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_MODULE_ENABLE_VTK_IOCore:INTERNAL=YES +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_MODULE_ENABLE_VTK_IOEnSight:INTERNAL=YES +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_MODULE_ENABLE_VTK_IOInfovis:INTERNAL=YES + +REM TBB settings +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -Dtbb_DIR:PATH=%TBB_ROOT_DIR:\=/% + +REM Qt settings +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_USE_QT:BOOL=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_BUILD_QT_DESIGNER_PLUGIN:BOOL=OFF + +REM Python settings +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_USE_PYTHON:BOOL=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_WRAP_PYTHON:BOOL=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPython3_EXECUTABLE:FILEPATH=%PYTHON_ROOT_DIR:\=/%/python3.exe +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPython3_INCLUDE_DIR:FILEPATH=%PYTHON_ROOT_DIR:\=/%/include +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPython3_LIBRAY_DIRS=%PYTHON_ROOT_DIR:\=/%/libs +if %SAT_DEBUG% == 0 ( + set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPython3_LIBRARY:FILEPATH=%PYTHON_ROOT_DIR:\=/%/libs/python%PYTHON_VERSION:.=%.lib +) else ( + set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPython3_LIBRARY:FILEPATH=%PYTHON_ROOT_DIR:\=/%/libs/python%PYTHON_VERSION:.=%_d.lib +) +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_PYTHON_FULL_THREADSAFE:BOOL=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_NO_PYTHON_THREADS:BOOL=OFF +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_PYTHON_VERSION:STRING=3 +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_WINDOWS_PYTHON_DEBUGGABLE:BOOL=OFF + +REM Java settings +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_WRAP_JAVA:BOOL=OFF + +REM MPI settings +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_USE_MPI:BOOL=OFF + +REM HDF5 settings +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_MODULE_USE_EXTERNAL_VTK_hdf5:BOOL=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DHDF5_DIR:PATH=%HDF5_ROOT_DIR:\=/%/cmake/hdf5 +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DHDF5_INCLUDE_DIRS:PATH=%HDF5_ROOT_DIR:\=/%/include +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DHDF5_USE_STATIC_LIBRARIES:BOOL=OFF + +REM CGNS +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_MODULE_USE_EXTERNAL_ParaView_cgns:BOOL=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCGNS_INCLUDE_DIR:PATH=%CGNS_ROOT_DIR:\=/%/include +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCGNS_LIBRARY:STRING=%CGNS_ROOT_DIR:\=/%/lib/cgnsdll.lib +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_MODULE_ENABLE_ParaView_cgns:INTERNAL=YES +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_MODULE_ENABLE_ParaView_VTKExtensionsCGNSReader:INTERNAL=YES +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_MODULE_ENABLE_ParaView_VTKExtensionsCGNSWriter:INTERNAL=YES + +REM VisIt Database bridge settings +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_ENABLE_VISITBRIDGE:BOOL=ON + +REM Boost settings +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBOOST_ROOT:PATH=%BOOST_ROOT_DIR:\=/% +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBoost_ADDITIONAL_VERSIONS="%BOOST_VERSION% %BOOST_VERSION_MajorMinor%" +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBOOST_INCLUDEDIR=%Boost_INCLUDE_DIR:\=/% +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBoost_INCLUDE_DIR=%Boost_INCLUDE_DIR:\=/% +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBoost_NO_BOOST_CMAKE:BOOL=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBoost_NO_SYSTEM_PATHS:BOOL=ON + +REM libxml2 settings +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_MODULE_USE_EXTERNAL_VTK_libxml2:BOOL=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DLIBXML2_INCLUDE_DIR:STRING=%LIBXML2_ROOT_DIR:\=/%/include +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DLIBXML2_LIBRARIES:STRING=%LIBXML2_ROOT_DIR:\=/%/lib/libxml2.lib +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DLIBXML2_XMLLINT_EXECUTABLE=%LIBXML2_ROOT_DIR:\=/%/bin/xmllint.exe + +REM gl2ps settings +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_MODULE_USE_EXTERNAL_VTK_gl2ps:BOOL=OFF + +REM freetype settings +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_MODULE_USE_EXTERNAL_VTK_freetype:BOOL=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DFREETYPE_INCLUDE_DIRS:PATH=%FREETYPE_ROOT_DIR:\=/%/include +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DFREETYPE_INCLUDE_DIR_freetype2:PATH=%FREETYPE_ROOT_DIR:\=/%/include/freetype2 +if %SAT_DEBUG% == 0 ( + set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DFREETYPE_LIBRARY:STRING=%FREETYPE_ROOT_DIR:\=/%/lib/freetype.lib +) else ( + set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DFREETYPE_LIBRARY:STRING=%FREETYPE_ROOT_DIR:\=/%/lib/freetyped.lib +) +REM ZLIB settings +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_MODULE_USE_EXTERNAL_VTK_zlib:BOOL=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DZLIB_INCLUDE_DIR:STRING=%ZLIB_ROOT_DIR:\=/%/include +if %SAT_DEBUG% == 0 ( + set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DZLIB_LIBRARY:STRING=%ZLIB_ROOT_DIR:\=/%/lib/zlib.lib +) else ( + set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DZLIB_LIBRARY:STRING=%ZLIB_ROOT_DIR:\=/%/lib/zlibd.lib +) + +REM Extra options (switch off non-used Paraview plug-ins) +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGINS_DEFAULT:BOOL=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_ENABLE_Moments:BOOL=OFF +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_ENABLE_SLACTools:BOOL=OFF +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_ENABLE_SierraPlotTools:BOOL=OFF +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_ENABLE_PacMan:BOOL=OFF +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_ENABLE_pvblot:BOOL=OFF + +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_USE_CATALYST:BOOL=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCATALYST_BUILD_STUB_IMPLEMENTATION:BOOL=ON + +REM https://gitlab.kitware.com/paraview/paraview/-/issues/21594 +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_ENABLE_NodeEditor=OFF + +REM allow additional plugins +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DVTK_ALL_NEW_OBJECT_FACTORY:BOOL=ON + +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_AcceleratedAlgorithms=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_AnalyzeNIfTIReaderWriter=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_ArrowGlyph=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_BagPlotViewsAndFilters=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_Datamine=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_DigitalRockPhysics=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_EmbossingRepresentations=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_ExplicitStructuredGrid=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_FlipBookPlugin=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_GMVReader=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_GenericIOReader=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_GeodesicMeasurement=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_GeographicalMap=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_HyperTreeGridADR=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_LANLX3DReader=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_LagrangianParticleTracker=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_LegacyExodusReader=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_Moments=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_MooseXfemClip=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_NonOrthogonalSource=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_PanoramicProjectionView=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_ParametricSurfaces=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_SLACTools=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_SaveStateAndScreenshot=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_StreamLinesRepresentation=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_StreamingParticles=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_SurfaceLIC=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_ThickenLayeredCells=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPARAVIEW_PLUGIN_AUTOLOAD_VTKmFilters=ON + +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_GENERATOR="Visual Studio 15 2017 Win64" +cd %BUILD_DIR% +echo. +echo INFO: running command: %CMAKE_ROOT%\bin\cmake %CMAKE_OPTIONS% %SOURCE_DIR% + +%CMAKE_ROOT%\bin\cmake %CMAKE_OPTIONS% %SOURCE_DIR% +if NOT %ERRORLEVEL% == 0 ( + echo "ERROR on cmake" + exit 1 +) + +echo. +echo -------------------------------------------------------------------------- +echo *** msbuild %MAKE_OPTIONS% ALL_BUILD.vcxproj /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64 +echo -------------------------------------------------------------------------- + +msbuild %MAKE_OPTIONS% ALL_BUILD.vcxproj /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64 +if NOT %ERRORLEVEL% == 0 ( + echo ERROR on msbuild ALL_BUILD.vcxproj + exit 2 +) + +echo. +echo -------------------------------------------------------------------------- +echo *** msbuild %MAKE_OPTIONS% INSTALL.vcxproj /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64 +echo -------------------------------------------------------------------------- + +msbuild %MAKE_OPTIONS% INSTALL.vcxproj /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64 +if NOT %ERRORLEVEL% == 0 ( + echo ERROR on msbuild INSTALL.vcxproj + exit 3 +) + +REM in order to fullfill some prerequistes by GUI! +cd %PRODUCT_INSTALL%\bin +mkdir Lib +MOVE /Y site-packages Lib\site-packages + +REM move +set MSBUILDDISABLENODEREUSE=1 + +REM In debug mode, we need to rename all .pyd to _d.pyd... don't ask why. Seems like a known bug in OmniORB. +if %SAT_DEBUG% == 1 ( + cd %PRODUCT_INSTALL%\bin\Lib\site-packages + powershell -Command "Get-ChildItem -File -Recurse *.pyd| ForEach-Object {if ((!$_.Name.EndsWith('_d.pyd'))) { $_ | Copy-Item -Destination {$_.Name -replace '.pyd','_d.pyd'}}}" +) + +echo. +echo -------------------------------------------------------------------------- +echo *** Post processing +echo -------------------------------------------------------------------------- +echo. + +echo +echo "########## END" + diff --git a/products/compil_scripts/ParaView-5.11.1.sh b/products/compil_scripts/ParaView-5.11.1.sh new file mode 100755 index 0000000..6407a6f --- /dev/null +++ b/products/compil_scripts/ParaView-5.11.1.sh @@ -0,0 +1,364 @@ +#!/bin/bash + +echo "##########################################################################" +echo "ParaView" $VERSION +echo "##########################################################################" + + +PVLIBVERSION=`echo ${VERSION} | awk -F. '{printf("%d.%d",$1,$2)}'` + +CMAKE_OPTIONS="" + +### common compiler and install settings +CMAKE_OPTIONS+=" -DCMAKE_INSTALL_PREFIX:STRING=${PRODUCT_INSTALL}" +CMAKE_OPTIONS+=" -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON" +if [ -n "$SAT_DEBUG" ]; then + CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE:STRING=Debug" +else + CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE:STRING=Release" +fi +CMAKE_OPTIONS+=" -DCMAKE_CXX_FLAGS:STRING=-m64" +CMAKE_OPTIONS+=" -DCMAKE_C_FLAGS:STRING=-m64" + +### common ParaView settings +CMAKE_OPTIONS+=" -DPARAVIEW_BUILD_SHARED_LIBS:BOOL=ON" +CMAKE_OPTIONS+=" -DCMAKE_INSTALL_LIBDIR:STRING=lib" +CMAKE_OPTIONS+=" -DBUILD_TESTING:BOOL=OFF" +CMAKE_OPTIONS+=" -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON" + +### OpenGL settings +CMAKE_OPTIONS+=" -DOpenGL_GL_PREFERENCE:STRING=LEGACY" + +echo "INFO: setting CATALYST" +CMAKE_OPTIONS+=" -DCATALYST_BUILD_STUB_IMPLEMENTATION:BOOL=ON" + +if [ "${CATALYST_ROOT_DIR}" != "" ]; then + echo "INFO: setting CATALYST advanced options" + CMAKE_OPTIONS+=" -DPARAVIEW_BUILD_PLUGIN_CatalystScriptGeneratorPlugin=ON" + CMAKE_OPTIONS+=" -DPARAVIEW_AUTOLOAD_PLUGIN_CatalystScriptGeneratorPlugin=ON" + CMAKE_OPTIONS+=" -DPARAVIEW_BUILD_CATALYST_ADAPTORS=ON" + CMAKE_OPTIONS+=" -DUSE_CATALYST:BOOL=ON" + CMAKE_OPTIONS+=" -DPARAVIEW_ENABLE_CATALYST=ON" + CMAKE_OPTIONS+=" -Dcatalyst_DIR=${CATALYST_ROOT_DIR}/lib/cmake/catalyst-2.0" +else + echo "INFO: CATALYST OPTIONS NOT SET!" +fi + +### spns #20550 - Headless mode +if [ "$PARAVIEW_HEADLESS_MODE" == "1" ]; then + EGL_FOUND=false + LINUX_DISTRIBUTION="$DIST_NAME$DIST_VERSION" + case $LINUX_DISTRIBUTION in + CO*|FD*) + if [ -f /usr/include/EGL/egl.h ] && [ -f /usr/lib64/libEGL.so ] && [ -f /usr/lib64/libOpenGL.so ] + then + EGL_FOUND=true + fi + ;; + *) + ;; + esac + if [ $EGL_FOUND == "true" ]; then + echo "WARNING: Building with headless mode support..." + CMAKE_OPTIONS+=" -DVTK_OPENGL_HAS_EGL:BOOL=ON" + else + echo "FATAL: Headless mode cannot be set on node $LINUX_DISTRIBUTION! Please expand the PARAVIEW_HEADLESS_MODE section in script: $0" + exit 1 + fi +fi + +### Ray-tracing settings +if [ -n "$OSPRAY_ROOT_DIR" ]; then + CMAKE_OPTIONS+=" -DPARAVIEW_ENABLE_RAYTRACING:BOOL=ON" + CMAKE_OPTIONS+=" -DVTK_ENABLE_OSPRAY:BOOL=ON" + CMAKE_OPTIONS+=" -Dospray_DIR:PATH=${OSPRAY_ROOT_DIR}/lib/cmake/ospray-${OSPRAY_VERSION}" + CMAKE_OPTIONS+=" -Dembree_DIR:PATH=${EMBREE_ROOT_DIR}/lib/cmake/embree-${EMBREE_VERSION}" +else + echo "WARNING: Paraview will be built without OSPRAY support!" + CMAKE_OPTIONS+=" -DPARAVIEW_ENABLE_RAYTRACING:BOOL=OFF" + CMAKE_OPTIONS+=" -DPARAVIEW_ENABLE_OSPRAY:BOOL=OFF" +fi + +### VTK general settings +if [ "$SALOME_USE_64BIT_IDS" == "1" ]; then + echo "WARNING: user requested VTK 64 bits encoding..." + CMAKE_OPTIONS+=" -DVTK_USE_64BIT_IDS:BOOL=ON" +else + CMAKE_OPTIONS+=" -DVTK_USE_64BIT_IDS:BOOL=OFF" +fi +CMAKE_OPTIONS+=" -DVTK_PYTHON_SITE_PACKAGES_SUFFIX=site-packages" +CMAKE_OPTIONS+=" -DVTKm_INSTALL_LIB_DIR=lib/paraview-${PVLIBVERSION}" + +CMAKE_OPTIONS+=" -DVTK_REPORT_OPENGL_ERRORS:BOOL=OFF" + +CMAKE_OPTIONS+=" -DVTK_MODULE_ENABLE_VTK_RenderingLOD:INTERNAL=YES" +CMAKE_OPTIONS+=" -DVTK_MODULE_ENABLE_VTK_FiltersCore:INTERNAL=YES" +CMAKE_OPTIONS+=" -DVTK_MODULE_ENABLE_VTK_CommonCore:INTERNAL=YES" +CMAKE_OPTIONS+=" -DVTK_MODULE_ENABLE_VTK_IOCore:INTERNAL=YES" +CMAKE_OPTIONS+=" -DVTK_MODULE_ENABLE_VTK_IOEnSight:INTERNAL=YES" +CMAKE_OPTIONS+=" -DVTK_MODULE_ENABLE_VTK_IOInfovis:INTERNAL=YES" + +### TBB settings (in case of a system installation, TBB will be detected automatically) +if [ -n "$TBB_ROOT_DIR" ] +then + CMAKE_OPTIONS+=" -DTBB_ROOT:PATH=${TBB_ROOT_DIR}" +fi + +### Qt settings +CMAKE_OPTIONS+=" -DPARAVIEW_USE_QT:BOOL=ON" +CMAKE_OPTIONS+=" -DVTK_BUILD_QT_DESIGNER_PLUGIN:BOOL=OFF" + +### Python settings +CMAKE_OPTIONS+=" -DPARAVIEW_USE_PYTHON:BOOL=ON" +CMAKE_OPTIONS+=" -DVTK_WRAP_PYTHON:BOOL=ON" +if [ "${SAT_Python_IS_NATIVE}" != "1" ] +then + CMAKE_OPTIONS+=" -DPython3_INCLUDE_DIR:STRING=${PYTHON_ROOT_DIR}/include/python${PYTHON_VERSION}" + CMAKE_OPTIONS+=" -DPython3_LIBRARY:STRING=${PYTHON_ROOT_DIR}/lib/libpython${PYTHON_VERSION}.so" + CMAKE_OPTIONS+=" -DPython3_EXECUTABLE=${PYTHON_ROOT_DIR}/bin/python${PYTHON_VERSION}" +fi +CMAKE_OPTIONS+=" -DVTK_PYTHON_FULL_THREADSAFE:BOOL=ON" +CMAKE_OPTIONS+=" -DVTK_NO_PYTHON_THREADS:BOOL=OFF" +CMAKE_OPTIONS+=" -DVTK_PYTHON_VERSION:STRING=3" + +### Java settings +CMAKE_OPTIONS+=" -DVTK_WRAP_JAVA:BOOL=OFF" + +### MPI settings +if [ -n "$SAT_HPC" ] +then + CMAKE_OPTIONS+=" -DPARAVIEW_USE_MPI:BOOL=ON" + if [ -n "$MPI_ROOT_DIR" ]; then + # On CentOS, Fedora, hdf5-openmpi-devel system package installs HDF5 headers in the openmpi include directory + # This screws up ParaView at runtime since xdmf2 is built with the wrong HDF5 files + # Attempts to fix at Xdmf2 CMakeLists file did not help to resolve this issue + # tried include_directories(BEFORE "${HDF_INCLUDE_DIRS}") + if [ "${SAT_openmpi_IS_NATIVE}" == "1" ] && [ -f "${MPI_INCLUDE_DIR}/hdf5.h" ] && [ "$SAT_hdf5_IS_NATIVE" != "1" ]; then + echo "WARNING: openMPI is system based and hdf5-openmpi-devel is installed on your node (${MPI_INCLUDE_DIR}/hdf5.h detected...)" + else + CMAKE_OPTIONS+=" -DCMAKE_CXX_COMPILER:STRING=${MPI_CXX_COMPILER}" + CMAKE_OPTIONS+=" -DCMAKE_C_COMPILER:STRING=${MPI_C_COMPILER}" + fi + fi + CMAKE_OPTIONS+=" -DVTK_SMP_IMPLEMENTATION_TYPE=OpenMP -DVTKm_ENABLE_OPENMP=ON" + CMAKE_OPTIONS+=" -DVTK_MODULE_ENABLE_VTK_FiltersParallelMPI=YES" + CMAKE_OPTIONS+=" -DVTK_MODULE_ENABLE_VTK_ParallelMPI=YES" + CMAKE_OPTIONS+=" -DMPI_C_FOUND=${MPI_C_FOUND}" +elif [ -n "$VTK_SMP_IMPLEMENTATION_TYPE" ] +then + echo "WARNING: VTK_SMP_IMPLEMENTATION_TYPE environment variable was found...." + CMAKE_OPTIONS+=" -DPARAVIEW_USE_MPI:BOOL=OFF" + CMAKE_OPTIONS+=" -DCMAKE_CXX_COMPILER:STRING=`which g++`" + CMAKE_OPTIONS+=" -DCMAKE_C_COMPILER:STRING=`which gcc`" + if [[ $VTK_SMP_IMPLEMENTATION_TYPE = "sequential" ]] + then + echo "WARNING: sequential approach will be used..." + CMAKE_OPTIONS+=" -DPARAVIEW_USE_MPI:BOOL=OFF" + CMAKE_OPTIONS+=" -DCMAKE_CXX_COMPILER:STRING=`which g++`" + CMAKE_OPTIONS+=" -DCMAKE_C_COMPILER:STRING=`which gcc`" + elif [[ $VTK_SMP_IMPLEMENTATION_TYPE = "TBB" ]] + then + echo "WARNING: VTK_SMP_IMPLEMENTATION_TYPE was set to: TBB..." + CMAKE_OPTIONS+=" -DVTK_SMP_IMPLEMENTATION_TYPE=TBB -DVTKm_ENABLE_TBB:BOOL=ON" + elif [[ $VTK_SMP_IMPLEMENTATION_TYPE = "OpenMP" ]] + then + echo "WARNING: VTK_SMP_IMPLEMENTATION_TYPE was set to: OpenMP..." + CMAKE_OPTIONS+=" -DVTK_SMP_IMPLEMENTATION_TYPE=OpenMP -DVTKm_ENABLE_OPENMP:BOOL=ON" + else + echo "ERROR: Unknown ${VTK_SMP_IMPLEMENTATION_TYPE} option.... aborting!" + exit 1 + fi +else + echo "WARNING: MPI will not be supported!" + CMAKE_OPTIONS+=" -DPARAVIEW_USE_MPI:BOOL=OFF" + CMAKE_OPTIONS+=" -DCMAKE_CXX_COMPILER:STRING=`which g++`" + CMAKE_OPTIONS+=" -DCMAKE_C_COMPILER:STRING=`which gcc`" +fi + +### HDF5 settings +CMAKE_OPTIONS+=" -DVTK_MODULE_USE_EXTERNAL_VTK_hdf5:BOOL=ON" +CMAKE_OPTIONS+=" -DHDF5_DIR:PATH=${HDF5_ROOT_DIR}/share/cmake/hdf5" +CMAKE_OPTIONS+=" -DHDF5_USE_STATIC_LIBRARIES:BOOL=OFF" +CMAKE_OPTIONS+=" -DHDF5_ROOT:PATH=${HDF5_ROOT_DIR}" +CMAKE_OPTIONS+=" -DHDF5_hdf5_LIBRARY_RELEASE=${HDF5_ROOT_DIR}/lib" +CMAKE_OPTIONS+=" -DHDF5_hdf5_hl_LIBRARY_RELEASE=${HDF5_ROOT_DIR}/lib/libhdf5_hl.so" +CMAKE_OPTIONS+=" -DHDF5_hdf5_CXX_LIBRARY_RELEASE=${HDF5_ROOT_DIR}/lib/libhdf5_cpp.so" +CMAKE_OPTIONS+=" -DHDF5_HL_LIBRARY=${HDF5_ROOT_DIR}/lib/libhdf5_hl.so" +CMAKE_OPTIONS+=" -DHDF5_C_INCLUDE_DIR=${HDF5_ROOT_DIR}/include" +CMAKE_OPTIONS+=" -DHDF5_HL_LIBRARY=${HDF5_ROOT_DIR}/lib/libhdf5_hl.so" +CMAKE_OPTIONS+=" -DHDF5_C_LIBRARY=${HDF5_ROOT_DIR}/lib/libhdf5.so" +CMAKE_OPTIONS+=" -DHDF5_INCLUDE_DIRS=${HDF5_ROOT_DIR}/include" +CMAKE_OPTIONS+=" -DHDF5_IS_PARALLEL=OFF" + +### CGNS +CMAKE_OPTIONS+=" -DVTK_MODULE_USE_EXTERNAL_ParaView_cgns:BOOL=ON" +if [ -n "$CGNS_ROOT_DIR" ] && [ "${SAT_cgns_IS_NATIVE}" != "1" ]; then + CMAKE_OPTIONS+=" -DCGNS_INCLUDE_DIR:PATH=${CGNS_ROOT_DIR}/include" + CMAKE_OPTIONS+=" -DCGNS_LIBRARY:PATH=${CGNS_ROOT_DIR}/lib/libcgns.so" +fi +CMAKE_OPTIONS+=" -DVTK_MODULE_ENABLE_ParaView_cgns:INTERNAL=YES" +CMAKE_OPTIONS+=" -DVTK_MODULE_ENABLE_ParaView_VTKExtensionsCGNSReader:INTERNAL=YES" +CMAKE_OPTIONS+=" -DVTK_MODULE_ENABLE_ParaView_VTKExtensionsCGNSWriter:INTERNAL=YES" + +### VisIt Database bridge settings +CMAKE_OPTIONS+=" -DPARAVIEW_ENABLE_VISITBRIDGE:BOOL=ON" + +### Boost settings +CMAKE_OPTIONS+=" -DBOOST_ROOT:PATH=${BOOST_ROOT_DIR}" +CMAKE_OPTIONS+=" -DBoost_NO_BOOST_CMAKE:BOOL=ON" +CMAKE_OPTIONS+=" -DBoost_NO_SYSTEM_PATHS:BOOL=ON" + +### gl2ps settings +CMAKE_OPTIONS+=" -DVTK_MODULE_USE_EXTERNAL_VTK_gl2ps:BOOL=OFF" + +### libxml2 settings +if [ -n "$LIBXML2_ROOT_DIR" ] +then + # with a native libxml2, do not use these options + CMAKE_OPTIONS+=" -DVTK_MODULE_USE_EXTERNAL_VTK_libxml2:BOOL=ON" + if [ "${SAT_libxml2_IS_NATIVE}" != "1" ] + then + CMAKE_OPTIONS+=" -DLIBXML2_INCLUDE_DIR:STRING=${LIBXML2_ROOT_DIR}/include/libxml2" + CMAKE_OPTIONS+=" -DLIBXML2_LIBRARIES:STRING=${LIBXML2_ROOT_DIR}/lib/libxml2.so" + CMAKE_OPTIONS+=" -DLIBXML2_XMLLINT_EXECUTABLE=${LIBXML2_ROOT_DIR}/bin/xmllint" + fi +fi + +### freetype settings +CMAKE_OPTIONS+=" -DVTK_MODULE_USE_EXTERNAL_VTK_freetype:BOOL=ON" +if [ -n "$FREETYPE_ROOT_DIR" ] +then + # with a native freetype, do not use these options + CMAKE_OPTIONS+=" -DFREETYPE_INCLUDE_DIRS:STRING=${FREETYPE_ROOT_DIR}/include/freetype2" + CMAKE_OPTIONS+=" -DFREETYPE_LIBRARY:STRING=${FREETYPE_ROOT_DIR}/lib/libfreetype.so" +fi + +### Extra options +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGINS_DEFAULT:BOOL=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_ENABLE_Moments:BOOL=OFF" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_ENABLE_SLACTools:BOOL=OFF" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_ENABLE_PacMan:BOOL=OFF" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_ENABLE_pvblot:BOOL=OFF" + +# allow additional plugins +CMAKE_OPTIONS+=" -DVTK_ALL_NEW_OBJECT_FACTORY:BOOL=ON" + +# Openturns: +if [ -n "$OT_VERSION" ]; then + function version_ge() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" == "$1"; } + if version_ge $OT_VERSION "1.17" ; then + echo "INFO: Adding OpenTURNS version ${OT_VERSION} support..." + CMAKE_OPTIONS+=" -DPARAVIEW_ENABLE_OPENTURNS=ON" + CMAKE_OPTIONS+=" -DOpenTURNS_DIR=$OT_ROOT_DIR/lib/cmake/openturns" + else + echo "WARNING: OpenTURNS ${OT_VERSION} is not supported with current ParaView build..." + fi +else + echo "WARNING: No OpenTURNS environment variable is found..." +fi + +# GDAL see bos #26944 +if [ -n "$GDAL_ROOT_DIR" ]; then + echo "INFO: switching ON GDAL" + CMAKE_OPTIONS+=" -DPARAVIEW_ENABLE_GDAL:BOOL=ON" + if [ "${SAT_gdal_IS_NATIVE}" != "1" ]; then + CMAKE_OPTIONS+=" -DGDAL_ROOT_DIR=$GDAL_ROOT_DIR" + CMAKE_OPTIONS+=" -DGDAL_LIBRARY=$GDAL_ROOT_DIR/lib/libgdal.so" + CMAKE_OPTIONS+=" -DGDAL_INCLUDE_DIR=$GDAL_ROOT_DIR/include" + fi + CMAKE_OPTIONS+=" -DPARAVIEW_GENERATE_PROXY_DOCUMENTATION:BOOL=ON" + CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_ENABLE_GeographicalMap:BOOL=ON" +fi + +# NETCDF see bos #26944 +if [ -n "$NETCDF_ROOT_DIR" ]; then + echo "INFO: switching ON NETCDF" + CMAKE_OPTIONS+=" -DVTK_MODULE_USE_EXTERNAL_VTK_netcdf:BOOL=ON" + if [ "${SAT_netcdf_IS_NATIVE}" != "1" ]; then + CMAKE_OPTIONS+=" -DNETCDF_ROOT_DIR=$NETCDF_ROOT_DIR" + CMAKE_OPTIONS+=" -Dnetcdf_DIR=$NETCDF_ROOT_DIR/lib/cmake/netCDF" + fi + CMAKE_OPTIONS+=" -DVTK_MODULE_ENABLE_VTK_FiltersParallelGeometry=YES" +fi + +# https://gitlab.kitware.com/paraview/paraview/-/issues/21594 +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_ENABLE_NodeEditor=OFF" + +# https://codev-tuleap.cea.fr/plugins/tracker/?aid=32848 +echo "WARNING: activating plugins autoload options!" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_AcceleratedAlgorithms=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_AnalyzeNIfTIReaderWriter=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_ArrowGlyph=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_BagPlotViewsAndFilters=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_Datamine=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_DigitalRockPhysics=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_EmbossingRepresentations=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_ExplicitStructuredGrid=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_FlipBookPlugin=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_GMVReader=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_GenericIOReader=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_GeodesicMeasurement=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_GeographicalMap=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_HyperTreeGridADR=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_LANLX3DReader=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_LagrangianParticleTracker=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_LegacyExodusReader=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_Moments=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_MooseXfemClip=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_NonOrthogonalSource=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_PanoramicProjectionView=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_ParametricSurfaces=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_SLACTools=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_SaveStateAndScreenshot=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_StreamLinesRepresentation=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_StreamingParticles=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_SurfaceLIC=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_ThickenLayeredCells=ON" +CMAKE_OPTIONS+=" -DPARAVIEW_PLUGIN_AUTOLOAD_VTKmFilters=ON" + +# ALAMOS build uses PDF export feature. +if [ "${SALOME_APPLICATION_NAME}" == "ALAMOS" ]; then + echo "WARNING: Assumming application is ALAMOS, switching on PDF export..." + CMAKE_OPTIONS+=" -DVTK_MODULE_ENABLE_VTK_PythonContext2D=YES" + CMAKE_OPTIONS+=" -DVTK_MODULE_ENABLE_VTK_IOExportPDF=YES" +fi + +echo +echo "*** cmake" ${CMAKE_OPTIONS} +cmake ${CMAKE_OPTIONS} $SOURCE_DIR +if [ $? -ne 0 ] +then + echo "ERROR on cmake" + exit 1 +fi + +# SPN #18779 +MEMTOTAL=$(cat /proc/meminfo | grep MemTotal | awk ' {print $2}') +MEMTHRESHOLD=15000000 +if [ "$MEMTOTAL" -lt "$MEMTHRESHOLD" ] || [ -n "$SAT_PARAVIEW_FORCE_MAKE_J1" ]; then + echo "WARNING: ParaView build requires large memory for VTKm compilation step..." + echo "WARNING: ParaView build requires large memory for VTKm compilation step..." + echo "WARNING: Available RAM is smaller than 16GB... using -j 1" + MAKE_OPTIONS="-j 1 " +fi + +echo +echo "*** make" $MAKE_OPTIONS +make $MAKE_OPTIONS +if [ $? -ne 0 ] +then + echo "ERROR on make" + exit 2 +fi + +echo +echo "*** make install" +make install +if [ $? -ne 0 ] +then + echo "ERROR on make install" + exit 3 +fi + +echo +echo "########## END"