From: Nabil Ghodbane Date: Wed, 24 Apr 2024 12:15:06 +0000 (+0200) Subject: bos #41564 use PERSALYS v16.0.1 X-Git-Tag: V9_13_0rc2~57 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ea95a7f571d22d33ec942e0731ad7fecf4613fa5;p=tools%2Fsat_salome.git bos #41564 use PERSALYS v16.0.1 --- diff --git a/applications/SALOME-master-MPI.pyconf b/applications/SALOME-master-MPI.pyconf index 7d742ee..dd35873 100644 --- a/applications/SALOME-master-MPI.pyconf +++ b/applications/SALOME-master-MPI.pyconf @@ -101,7 +101,7 @@ APPLICATION : pandas : '0.25.2' patsy : '0.5.2' ParaView : {tag:'5.11.0', base: 'no', section: 'version_5_11_0_MPI', hpc: 'yes'} - PERSALYS: 'v16.0' + PERSALYS: 'v16.0.1' petsc : {tag : '3.16.0', base: 'no', section: 'version_3_16_0', hpc: 'yes'} Pillow : '8.4.0' planegcs : '0.18-3cb6890' diff --git a/applications/SALOME-master-int32.pyconf b/applications/SALOME-master-int32.pyconf index 4a4ed66..24b1735 100644 --- a/applications/SALOME-master-int32.pyconf +++ b/applications/SALOME-master-int32.pyconf @@ -100,7 +100,7 @@ APPLICATION : pandas : '0.25.2' patsy : '0.5.2' ParaView : {tag:'5.11.0', base: 'no', section: 'version_5_11_0_MPI', hpc: 'yes'} - PERSALYS: 'v16.0' + PERSALYS: 'v16.0.1' petsc : {tag : '3.16.0', base: 'no', section: 'version_3_16_0', hpc: 'yes'} Pillow : '8.4.0' planegcs : '0.18-3cb6890' diff --git a/applications/SALOME-master-native.pyconf b/applications/SALOME-master-native.pyconf index 4be0b4a..001a1b3 100644 --- a/applications/SALOME-master-native.pyconf +++ b/applications/SALOME-master-native.pyconf @@ -98,7 +98,7 @@ APPLICATION : packagespy : '74152cd' pandas : 'native' ParaView : {tag:'5.11.0', base: 'no', section: 'version_5_11_0_MPI', hpc: 'yes'} - PERSALYS : 'v16.0' + PERSALYS : 'v16.0.1' petsc : {tag : '3.16.0', section: 'version_3_16_0'} Pillow : 'native' planegcs : '0.18-3cb6890' diff --git a/applications/SALOME-master-windows.pyconf b/applications/SALOME-master-windows.pyconf index f1e40d6..272db91 100644 --- a/applications/SALOME-master-windows.pyconf +++ b/applications/SALOME-master-windows.pyconf @@ -94,6 +94,7 @@ APPLICATION : omniORBpy : '4.2.3' openblas : '0.3.23' opencv : '3.2.0' + openssl: '1.1.1n' openVKL: '0.11.0' openturns: '1.22' ospray : '2.4.0' @@ -101,7 +102,7 @@ APPLICATION : pandas : '1.5.3' patsy : '0.5.2' ParaView : {tag:'5.11.0', base: 'no', section: 'version_5_11_0'} - PERSALYS: 'v16.0' + PERSALYS: 'v16.0.1' perl : '5.28.1.1' Pillow : '10.2.0' planegcs : '0.18-3cb6890' diff --git a/applications/SALOME-master.pyconf b/applications/SALOME-master.pyconf index e8d330b..57e68d3 100644 --- a/applications/SALOME-master.pyconf +++ b/applications/SALOME-master.pyconf @@ -107,7 +107,7 @@ APPLICATION : pandas : '1.1.5' patsy : '0.5.4' ParaView : {tag:'5.11.0', base: 'no', section: 'version_5_11_0_MPI', hpc: 'yes'} - PERSALYS: 'v16.0' + PERSALYS: 'v16.0.1' petsc : {tag : '3.16.0', base: 'no', section: 'version_3_16_0', hpc: 'yes'} Pillow : '8.4.0' planegcs : '0.18-3cb6890' diff --git a/products/PERSALYS.pyconf b/products/PERSALYS.pyconf index beb0f97..531b475 100644 --- a/products/PERSALYS.pyconf +++ b/products/PERSALYS.pyconf @@ -58,13 +58,13 @@ default_win : incremental : "yes" } } -version_v16_0 : +version_v16_0_1 : { } -version_v16_0_win : +version_v16_0_1_win : { - compil_script : 'PERSALYS-v16.0.bat' + compil_script : 'PERSALYS-v16.0.1.bat' depend : ['Python', 'hdf5', 'cgns', @@ -91,10 +91,9 @@ version_v16_0_win : 'openblas', 'pthreads' ] - patches : ['PERSALYS-v16.0-001.patch', - 'PERSALYS-v16.0-002.patch', - 'PERSALYS-v16.0-003.patch', - 'PERSALYS-v16.0-004.patch' + patches : ['PERSALYS-v16.0.1-001.patch', + 'PERSALYS-v16.0.1-002.patch', + 'PERSALYS-v16.0.1-003.patch' ] } diff --git a/products/compil_scripts/PERSALYS-v16.0.1.bat b/products/compil_scripts/PERSALYS-v16.0.1.bat new file mode 100644 index 0000000..cd4f0aa --- /dev/null +++ b/products/compil_scripts/PERSALYS-v16.0.1.bat @@ -0,0 +1,158 @@ +@echo off + +echo ########################################################################## +echo openturns %VERSION% +echo ########################################################################## + +IF NOT DEFINED SAT_DEBUG ( + SET SAT_DEBUG=0 +) + +SET PRODUCT_BUILD_TYPE=Release +if %SAT_DEBUG% == 1 ( + set PRODUCT_BUILD_TYPE=Debug +) + +IF NOT DEFINED CMAKE_GENERATOR ( + SET CMAKE_GENERATOR="Visual Studio 15 2017 Win64" +) + +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 CMAKE_OPTIONS= +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_PREFIX:STRING=%PRODUCT_INSTALL:\=/% +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_BUILD_TYPE:STRING=%PRODUCT_BUILD_TYPE% +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_LIBDIR:STRING=lib +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPYTHON_EXECUTABLE=%PYTHONBIN% +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DSWIG_EXECUTABLE=%SWIG_ROOT_DIR:\=/%/bin/swig.exe +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DTBB_ROOT_DIR=%TBB_ROOT_DIR% +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -Dtbb_DIR:PATH=%TBB_ROOT_DIR:\=/% +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DUSE_TBB=OFF +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_LIBRARY:STRING=%LIBXML2_ROOT_DIR:\=/%/lib/libxml2.lib +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DLIBXML2_XMLLINT_EXECUTABLE=%LIBXML2_ROOT_DIR:\=/%/bin/xmllint.exe + + +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPTHREAD_ROOT_DIR=%PTHREAD_ROOT_DIR:\=/% +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPTHREAD_INCLUDE_DIR=%PTHREAD_ROOT_DIR:\=/%/include +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPTHREAD_DLL_LIBRARY=%PTHREAD_ROOT_DIR:\=/%/lib/pthreadVC2.dll +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPTHREAD_LIBRARY=%PTHREAD_ROOT_DIR:\=/%/lib/pthreadVCE2.lib + +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 + +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DNLOPT_INCLUDE_DIRS:STRING=%NLOPT_ROOT_DIR:\=/%/include +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DNLOPT_LIBRARIES:STRING=%NLOPT_ROOT_DIR:\=/%/bin +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DNLOPT_DIR:STRING=%NLOPT_ROOT_DIR:\=/% + +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCBLAS_DIR=%OPENBLAS_ROOT_DIR:\=/%/share/cmake/OpenBLAS + +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPython3_EXECUTABLE:FILEPATH=%PYTHON_ROOT_DIR:\=/%/python3.exe +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPython3_INCLUDE_DIR:PATH=%PYTHON_ROOT_DIR:\=/%/include + +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DLAPACK_LIBRARIES:FILEPATH=%OPENBLAS_ROOT_DIR:\=/%/lib/openblas.lib +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_SHARED_LINKER_FLAGS_RELEASE="/OPT:NOREF /INCREMENTAL:NO" +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_UNITY_BUILD=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_UNITY_BUILD_BATCH_SIZE=16 +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DSWIG_COMPILE_FLAGS="/bigobj" +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DUSE_SPHINX=OFF +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DQWT_INCLUDE_DIR=%QWT_ROOT_DIR:\=/%/include +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBUILD_SHARED_LIBS:BOOL=ON +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DADAO_ROOT_DIR=%ADAO_ROOT_DIR:\=/% + +REM Boost settings +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBOOST_ROOT:PATH=%BOOST_ROOT_DIR:\=/% +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBoost_ADDITIONAL_VERSIONS="1.67.0 1.67" +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBOOST_INCLUDEDIR=%BOOST_ROOT_DIR:\=/%/include/boost-1_67 +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBoost_INCLUDE_DIR=%BOOST_ROOT_DIR:\=/%/include/boost-1_67 +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBoost_NO_BOOST_CMAKE:BOOL=ON +set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBoost_NO_SYSTEM_PATHS:BOOL=ON + +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DGUI_ROOT_DIR=%GUI_ROOT_DIR:\=/% +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DSalomeGUI_DIR=%GUI_ROOT_DIR:\=/%/adm_local/cmake_files +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DKERNEL_ROOT_DIR=%KERNEL_ROOT_DIR:\=/% +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DSalomeKERNEL_DIR=%KERNEL_ROOT_DIR:\=/%/salome_adm/cmake_files +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DOpenTURNS_DIR=%OT_ROOT_DIR:\=/%/lib/cmake/openturns +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -Dotmorris_DIR==%OT_ROOT_DIR:\=/%/lib/cmake/otmorris +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPy2cpp_DIR=%PY2CPP_ROOT_DIR:\=/%/lib/cmake/py2cpp + +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DQWT_INCLUDE_DIR=%QWT_ROOT_DIR:\=/%/include +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DQWT_LIBRARY=%QWT_ROOT_DIR:\=/%/lib/qwt.lib + +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DUSE_SPHINX=OFF +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DSPHINX_ROOT_DIR=%SPHINX_ROOT_DIR:\=/% +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DYACS_ROOT_DIR=%YACS_ROOT_DIR:\=/% +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DSalomeYACS_DIR=%YACS_ROOT_DIR:\=/%/adm/cmake +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -Dydefx_DIR=%YDEFX_ROOT_DIR:\=/%/salome_adm/cmake_files +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DAdaoCppLayer_INCLUDE_DIR=%ADAO_INTERFACE_ROOT_DIR:\=/%/include +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DAdaoCppLayer_ROOT_DIR=%ADAO_INTERFACE_ROOT_DIR:\=/% +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DUSE_SALOME=ON +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DTBB_ROOT=%TBB_ROOT_DIR:\=/% +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DTBB_INCLUDE_DIR=%TBB_ROOT_DIR:\=/%/include +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPYTHON_EXECUTABLE=%PYTHONBIN:\=/% +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPYTHON_INCLUDE_DIR=%PYTHON_INCLUDE:\=/% +SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_FIND_ROOT_PATH=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% -DCGNS_INCLUDE_DIR:PATH=%CGNS_ROOT_DIR:\=/%/include + + +if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL% +REM clean BUILD directory +if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR% +mkdir %BUILD_DIR% + +cd %BUILD_DIR% + +set MSBUILDDISABLENODEREUSE=1 + +echo. +echo ********************************************************************* +echo *** %CMAKE_ROOT%\bin\cmake %CMAKE_OPTIONS% %SOURCE_DIR% +echo ********************************************************************* +echo. + +%CMAKE_ROOT%\bin\cmake -G %CMAKE_GENERATOR% %CMAKE_OPTIONS% %SOURCE_DIR% +if NOT %ERRORLEVEL% == 0 ( + echo "ERROR on cmake" + exit 1 +) + +echo. +echo ********************************************************************* +echo *** msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64 /p:CharacterSet=Unicode ALL_BUILD.vcxproj + +echo ********************************************************************* +echo. + +msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64 /p:CharacterSet=Unicode ALL_BUILD.vcxproj +if NOT %ERRORLEVEL% == 0 ( + echo ERROR on msbuild ALL_BUILD.vcxproj, please check! + REM exit 2 +) + +echo. +echo ********************************************************************* +echo *** installation... +echo ********************************************************************* +echo. + +msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64 /p:CharacterSet=Unicode INSTALL.vcxproj +if NOT %ERRORLEVEL% == 0 ( + echo ERROR on msbuild INSTALL.vcxproj + exit 3 +) + +echo +echo "########## END" diff --git a/products/compil_scripts/PERSALYS-v16.0.1.sh b/products/compil_scripts/PERSALYS-v16.0.1.sh new file mode 100755 index 0000000..a64aa95 --- /dev/null +++ b/products/compil_scripts/PERSALYS-v16.0.1.sh @@ -0,0 +1,139 @@ +#!/bin/bash + +echo "##########################################################################" +echo "PERSALYS" $VERSION +echo "##########################################################################" + +if [ -n "$SAT_HPC" ] && [ -n "$MPI_ROOT_DIR" ]; then + echo "WARNING: setting CC and CXX environment variables and target MPI wrapper" + CMAKE_OPTIONS+=" -DCMAKE_CXX_COMPILER:STRING=${MPI_CXX_COMPILER}" + CMAKE_OPTIONS+=" -DCMAKE_C_COMPILER:STRING=${MPI_C_COMPILER}" + CMAKE_OPTIONS+=" -DMPI_C_FOUND=$MPI_C_FOUND" +fi + +CMAKE_OPTIONS="" +CMAKE_OPTIONS+=" -DCMAKE_INSTALL_PREFIX:STRING=$PRODUCT_INSTALL" +CMAKE_OPTIONS+=" -DCMAKE_INSTALL_LIBDIR:STRING=lib" +CMAKE_OPTIONS+=" -DADAO_ROOT_DIR=$ADAO_ROOT_DIR" +CMAKE_OPTIONS+=" -DBOOST_ROOT:PATH=$BOOST_ROOT_DIR" +CMAKE_OPTIONS+=" -DGUI_ROOT_DIR=$GUI_ROOT_DIR" +CMAKE_OPTIONS+=" -DSalomeGUI_DIR=$GUI_ROOT_DIR/adm_local/cmake_files" +CMAKE_OPTIONS+=" -DKERNEL_ROOT_DIR=$KERNEL_ROOT_DIR" +CMAKE_OPTIONS+=" -DSalomeKERNEL_DIR=$KERNEL_ROOT_DIR/salome_adm/cmake_files" +CMAKE_OPTIONS+=" -DOpenTURNS_DIR=$OT_ROOT_DIR/lib/cmake/openturns" +CMAKE_OPTIONS+=" -DPy2cpp_DIR=$PY2CPP_ROOT_DIR//lib/cmake/py2cpp" + +# strangely some distributions fail to guess qwt installation location +# - CentOS 8 +# - Ubuntu 20.04 +if [[ $DIST_NAME == "CO" && $DIST_VERSION == "8" && "$SAT_qwt_IS_NATIVE" == "1" ]]; then + CMAKE_OPTIONS+=" -DQWT_LIBRARY=/usr/lib64/libqwt-qt5.so" + CMAKE_OPTIONS+=" -DQWT_INCLUDE_DIR=/usr/include/qt5/qwt" +elif [[ $DIST_NAME == "UB" && $DIST_VERSION == "20.04" && "$SAT_qwt_IS_NATIVE" == "1" ]]; then + CMAKE_OPTIONS+=" -DQWT_LIBRARY=/usr/lib/libqwt-qt5.so" + CMAKE_OPTIONS+=" -DQWT_INCLUDE_DIR=/usr/include/qwt" +elif [ "$SAT_qwt_IS_NATIVE" != "1" ]; then + CMAKE_OPTIONS+=" -DQWT_LIBRARY=$QWT_ROOT_DIR/lib/libqwt.so" + CMAKE_OPTIONS+=" -DQWT_INCLUDE_DIR=$QWT_ROOT_DIR/include" +fi + +if [[ "$DIST_NAME$DIST_VERSION" == "CO8" ]]; then + CMAKE_OPTIONS+=" -DUSE_SPHINX=OFF" # missing tex-preview LateX package for CentOS 8 +elif [[ "$DIST_NAME$DIST_VERSION" == "CO7" ]]; then + CMAKE_OPTIONS+=" -DUSE_SPHINX=OFF" # missing tex-preview LateX package for CentOS 7 - à installer +elif [ "$DIST_NAME$DIST_VERSION" == "FD36" ]; then + CMAKE_OPTIONS+=" -DUSE_SPHINX=OFF" # +elif [ "$DIST_NAME$DIST_VERSION" == "FD37" ]; then + CMAKE_OPTIONS+=" -DUSE_SPHINX=OFF" # +elif [ "$DIST_NAME$DIST_VERSION" == "FD38" ]; then + CMAKE_OPTIONS+=" -DUSE_SPHINX=OFF" # +else + CMAKE_OPTIONS+=" -DUSE_SPHINX=ON" +fi +CMAKE_OPTIONS+=" -DSPHINX_ROOT_DIR=$SPHINX_ROOT_DIR" +CMAKE_OPTIONS+=" -DYACS_ROOT_DIR=$YACS_ROOT_DIR" +CMAKE_OPTIONS+=" -DSalomeYACS_DIR=$YACS_ROOT_DIR/adm/cmake" +CMAKE_OPTIONS+=" -Dydefx_DIR=$YDEFX_ROOT_DIR/salome_adm/cmake_files" +CMAKE_OPTIONS+=" -DAdaoCppLayer_INCLUDE_DIR=$ADAO_INTERFACE_ROOT_DIR/include" +CMAKE_OPTIONS+=" -DAdaoCppLayer_ROOT_DIR=$ADAO_INTERFACE_ROOT_DIR" +CMAKE_OPTIONS+=" -DUSE_SALOME=ON" +if [ ! -z "$TBB_ROOT" ]; then + CMAKE_OPTIONS+=" -DTBB_ROOT=$TBB_ROOT_DIR" + CMAKE_OPTIONS+=" -DTBB_INCLUDE_DIR=$TBB_ROOT_DIR/include" +fi +CMAKE_OPTIONS+=" -DPYTHON_EXECUTABLE=$PYTHONBIN" + +CMAKE_OPTIONS+=" -DPYTHON_INCLUDE_DIR=$PYTHON_INCLUDE" +if [ "$SAT_Python_IS_NATIVE" != "1" ]; then + CMAKE_OPTIONS+=" -DPYTHON_LIBRARY=$PYTHON_ROOT_DIR/lib/libpython$PYTHON_VERSION.so" +fi + +if [ "$SAT_Sphinx_IS_NATIVE" != "1" ]; then + CMAKE_OPTIONS+=" -DSPHINX_ROOT_DIR:FILEPATH=$SPHINX_ROOT_DIR" + CMAKE_OPTIONS+=" -DSPHINX_EXECUTABLE:FILEPATH=$SPHINX_ROOT_DIR/bin/sphinx-build" +fi + +CMAKE_OPTIONS+=" -DCMAKE_FIND_ROOT_PATH=ON" +CMAKE_OPTIONS+=" -DSWIG_EXECUTABLE:PATH=$(which swig)" +if [ "${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 +if [ -n "$SAT_DEBUG" ]; then + CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE:STRING=Debug" +else + CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE:STRING=Release" +fi + +echo +echo "*** cmake" $CMAKE_OPTIONS +cmake $CMAKE_OPTIONS $SOURCE_DIR +if [ $? -ne 0 ] +then + echo "ERROR on cmake" + exit 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 + +# spns #32377 +# setting -DCMAKE_INSTALL_LIBDIR to lib is not enough on Fedora nodes +echo +echo "*** check installation" +if [ ! -d "${PRODUCT_INSTALL}/lib" ]; then + mkdir -p ${PRODUCT_INSTALL}/lib +fi + +if [ -d "${PRODUCT_INSTALL}/lib64" ]; then + echo "WARNING: moving lib64 to lib" + mv ${PRODUCT_INSTALL}/lib64/* ${PRODUCT_INSTALL}/lib/ + rmdir ${PRODUCT_INSTALL}/lib64 +fi + + +if [ -d "${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages" ]; then + echo "WARNING: linking against dist-packages" + cd ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION} + ln -sf dist-packages site-packages +fi + +echo +echo "########## END" + diff --git a/products/compil_scripts/PERSALYS-v16.0.bat b/products/compil_scripts/PERSALYS-v16.0.bat deleted file mode 100644 index cd4f0aa..0000000 --- a/products/compil_scripts/PERSALYS-v16.0.bat +++ /dev/null @@ -1,158 +0,0 @@ -@echo off - -echo ########################################################################## -echo openturns %VERSION% -echo ########################################################################## - -IF NOT DEFINED SAT_DEBUG ( - SET SAT_DEBUG=0 -) - -SET PRODUCT_BUILD_TYPE=Release -if %SAT_DEBUG% == 1 ( - set PRODUCT_BUILD_TYPE=Debug -) - -IF NOT DEFINED CMAKE_GENERATOR ( - SET CMAKE_GENERATOR="Visual Studio 15 2017 Win64" -) - -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 CMAKE_OPTIONS= -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_PREFIX:STRING=%PRODUCT_INSTALL:\=/% -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_BUILD_TYPE:STRING=%PRODUCT_BUILD_TYPE% -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_INSTALL_LIBDIR:STRING=lib -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPYTHON_EXECUTABLE=%PYTHONBIN% -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DSWIG_EXECUTABLE=%SWIG_ROOT_DIR:\=/%/bin/swig.exe -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DTBB_ROOT_DIR=%TBB_ROOT_DIR% -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -Dtbb_DIR:PATH=%TBB_ROOT_DIR:\=/% -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DUSE_TBB=OFF -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_LIBRARY:STRING=%LIBXML2_ROOT_DIR:\=/%/lib/libxml2.lib -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DLIBXML2_XMLLINT_EXECUTABLE=%LIBXML2_ROOT_DIR:\=/%/bin/xmllint.exe - - -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPTHREAD_ROOT_DIR=%PTHREAD_ROOT_DIR:\=/% -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPTHREAD_INCLUDE_DIR=%PTHREAD_ROOT_DIR:\=/%/include -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPTHREAD_DLL_LIBRARY=%PTHREAD_ROOT_DIR:\=/%/lib/pthreadVC2.dll -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPTHREAD_LIBRARY=%PTHREAD_ROOT_DIR:\=/%/lib/pthreadVCE2.lib - -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 - -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DNLOPT_INCLUDE_DIRS:STRING=%NLOPT_ROOT_DIR:\=/%/include -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DNLOPT_LIBRARIES:STRING=%NLOPT_ROOT_DIR:\=/%/bin -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DNLOPT_DIR:STRING=%NLOPT_ROOT_DIR:\=/% - -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCBLAS_DIR=%OPENBLAS_ROOT_DIR:\=/%/share/cmake/OpenBLAS - -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPython3_EXECUTABLE:FILEPATH=%PYTHON_ROOT_DIR:\=/%/python3.exe -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPython3_INCLUDE_DIR:PATH=%PYTHON_ROOT_DIR:\=/%/include - -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DLAPACK_LIBRARIES:FILEPATH=%OPENBLAS_ROOT_DIR:\=/%/lib/openblas.lib -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_SHARED_LINKER_FLAGS_RELEASE="/OPT:NOREF /INCREMENTAL:NO" -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_UNITY_BUILD=ON -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_UNITY_BUILD_BATCH_SIZE=16 -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DSWIG_COMPILE_FLAGS="/bigobj" -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DUSE_SPHINX=OFF -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DQWT_INCLUDE_DIR=%QWT_ROOT_DIR:\=/%/include -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBUILD_SHARED_LIBS:BOOL=ON -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DADAO_ROOT_DIR=%ADAO_ROOT_DIR:\=/% - -REM Boost settings -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBOOST_ROOT:PATH=%BOOST_ROOT_DIR:\=/% -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBoost_ADDITIONAL_VERSIONS="1.67.0 1.67" -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBOOST_INCLUDEDIR=%BOOST_ROOT_DIR:\=/%/include/boost-1_67 -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBoost_INCLUDE_DIR=%BOOST_ROOT_DIR:\=/%/include/boost-1_67 -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBoost_NO_BOOST_CMAKE:BOOL=ON -set CMAKE_OPTIONS=%CMAKE_OPTIONS% -DBoost_NO_SYSTEM_PATHS:BOOL=ON - -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DGUI_ROOT_DIR=%GUI_ROOT_DIR:\=/% -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DSalomeGUI_DIR=%GUI_ROOT_DIR:\=/%/adm_local/cmake_files -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DKERNEL_ROOT_DIR=%KERNEL_ROOT_DIR:\=/% -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DSalomeKERNEL_DIR=%KERNEL_ROOT_DIR:\=/%/salome_adm/cmake_files -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DOpenTURNS_DIR=%OT_ROOT_DIR:\=/%/lib/cmake/openturns -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -Dotmorris_DIR==%OT_ROOT_DIR:\=/%/lib/cmake/otmorris -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPy2cpp_DIR=%PY2CPP_ROOT_DIR:\=/%/lib/cmake/py2cpp - -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DQWT_INCLUDE_DIR=%QWT_ROOT_DIR:\=/%/include -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DQWT_LIBRARY=%QWT_ROOT_DIR:\=/%/lib/qwt.lib - -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DUSE_SPHINX=OFF -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DSPHINX_ROOT_DIR=%SPHINX_ROOT_DIR:\=/% -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DYACS_ROOT_DIR=%YACS_ROOT_DIR:\=/% -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DSalomeYACS_DIR=%YACS_ROOT_DIR:\=/%/adm/cmake -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -Dydefx_DIR=%YDEFX_ROOT_DIR:\=/%/salome_adm/cmake_files -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DAdaoCppLayer_INCLUDE_DIR=%ADAO_INTERFACE_ROOT_DIR:\=/%/include -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DAdaoCppLayer_ROOT_DIR=%ADAO_INTERFACE_ROOT_DIR:\=/% -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DUSE_SALOME=ON -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DTBB_ROOT=%TBB_ROOT_DIR:\=/% -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DTBB_INCLUDE_DIR=%TBB_ROOT_DIR:\=/%/include -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPYTHON_EXECUTABLE=%PYTHONBIN:\=/% -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DPYTHON_INCLUDE_DIR=%PYTHON_INCLUDE:\=/% -SET CMAKE_OPTIONS=%CMAKE_OPTIONS% -DCMAKE_FIND_ROOT_PATH=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% -DCGNS_INCLUDE_DIR:PATH=%CGNS_ROOT_DIR:\=/%/include - - -if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL% -REM clean BUILD directory -if exist "%BUILD_DIR%" rmdir /Q /S %BUILD_DIR% -mkdir %BUILD_DIR% - -cd %BUILD_DIR% - -set MSBUILDDISABLENODEREUSE=1 - -echo. -echo ********************************************************************* -echo *** %CMAKE_ROOT%\bin\cmake %CMAKE_OPTIONS% %SOURCE_DIR% -echo ********************************************************************* -echo. - -%CMAKE_ROOT%\bin\cmake -G %CMAKE_GENERATOR% %CMAKE_OPTIONS% %SOURCE_DIR% -if NOT %ERRORLEVEL% == 0 ( - echo "ERROR on cmake" - exit 1 -) - -echo. -echo ********************************************************************* -echo *** msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64 /p:CharacterSet=Unicode ALL_BUILD.vcxproj - -echo ********************************************************************* -echo. - -msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64 /p:CharacterSet=Unicode ALL_BUILD.vcxproj -if NOT %ERRORLEVEL% == 0 ( - echo ERROR on msbuild ALL_BUILD.vcxproj, please check! - REM exit 2 -) - -echo. -echo ********************************************************************* -echo *** installation... -echo ********************************************************************* -echo. - -msbuild %MAKE_OPTIONS% /p:Configuration=%PRODUCT_BUILD_TYPE% /p:Platform=x64 /p:CharacterSet=Unicode INSTALL.vcxproj -if NOT %ERRORLEVEL% == 0 ( - echo ERROR on msbuild INSTALL.vcxproj - exit 3 -) - -echo -echo "########## END" diff --git a/products/compil_scripts/PERSALYS-v16.0.sh b/products/compil_scripts/PERSALYS-v16.0.sh deleted file mode 100755 index a64aa95..0000000 --- a/products/compil_scripts/PERSALYS-v16.0.sh +++ /dev/null @@ -1,139 +0,0 @@ -#!/bin/bash - -echo "##########################################################################" -echo "PERSALYS" $VERSION -echo "##########################################################################" - -if [ -n "$SAT_HPC" ] && [ -n "$MPI_ROOT_DIR" ]; then - echo "WARNING: setting CC and CXX environment variables and target MPI wrapper" - CMAKE_OPTIONS+=" -DCMAKE_CXX_COMPILER:STRING=${MPI_CXX_COMPILER}" - CMAKE_OPTIONS+=" -DCMAKE_C_COMPILER:STRING=${MPI_C_COMPILER}" - CMAKE_OPTIONS+=" -DMPI_C_FOUND=$MPI_C_FOUND" -fi - -CMAKE_OPTIONS="" -CMAKE_OPTIONS+=" -DCMAKE_INSTALL_PREFIX:STRING=$PRODUCT_INSTALL" -CMAKE_OPTIONS+=" -DCMAKE_INSTALL_LIBDIR:STRING=lib" -CMAKE_OPTIONS+=" -DADAO_ROOT_DIR=$ADAO_ROOT_DIR" -CMAKE_OPTIONS+=" -DBOOST_ROOT:PATH=$BOOST_ROOT_DIR" -CMAKE_OPTIONS+=" -DGUI_ROOT_DIR=$GUI_ROOT_DIR" -CMAKE_OPTIONS+=" -DSalomeGUI_DIR=$GUI_ROOT_DIR/adm_local/cmake_files" -CMAKE_OPTIONS+=" -DKERNEL_ROOT_DIR=$KERNEL_ROOT_DIR" -CMAKE_OPTIONS+=" -DSalomeKERNEL_DIR=$KERNEL_ROOT_DIR/salome_adm/cmake_files" -CMAKE_OPTIONS+=" -DOpenTURNS_DIR=$OT_ROOT_DIR/lib/cmake/openturns" -CMAKE_OPTIONS+=" -DPy2cpp_DIR=$PY2CPP_ROOT_DIR//lib/cmake/py2cpp" - -# strangely some distributions fail to guess qwt installation location -# - CentOS 8 -# - Ubuntu 20.04 -if [[ $DIST_NAME == "CO" && $DIST_VERSION == "8" && "$SAT_qwt_IS_NATIVE" == "1" ]]; then - CMAKE_OPTIONS+=" -DQWT_LIBRARY=/usr/lib64/libqwt-qt5.so" - CMAKE_OPTIONS+=" -DQWT_INCLUDE_DIR=/usr/include/qt5/qwt" -elif [[ $DIST_NAME == "UB" && $DIST_VERSION == "20.04" && "$SAT_qwt_IS_NATIVE" == "1" ]]; then - CMAKE_OPTIONS+=" -DQWT_LIBRARY=/usr/lib/libqwt-qt5.so" - CMAKE_OPTIONS+=" -DQWT_INCLUDE_DIR=/usr/include/qwt" -elif [ "$SAT_qwt_IS_NATIVE" != "1" ]; then - CMAKE_OPTIONS+=" -DQWT_LIBRARY=$QWT_ROOT_DIR/lib/libqwt.so" - CMAKE_OPTIONS+=" -DQWT_INCLUDE_DIR=$QWT_ROOT_DIR/include" -fi - -if [[ "$DIST_NAME$DIST_VERSION" == "CO8" ]]; then - CMAKE_OPTIONS+=" -DUSE_SPHINX=OFF" # missing tex-preview LateX package for CentOS 8 -elif [[ "$DIST_NAME$DIST_VERSION" == "CO7" ]]; then - CMAKE_OPTIONS+=" -DUSE_SPHINX=OFF" # missing tex-preview LateX package for CentOS 7 - à installer -elif [ "$DIST_NAME$DIST_VERSION" == "FD36" ]; then - CMAKE_OPTIONS+=" -DUSE_SPHINX=OFF" # -elif [ "$DIST_NAME$DIST_VERSION" == "FD37" ]; then - CMAKE_OPTIONS+=" -DUSE_SPHINX=OFF" # -elif [ "$DIST_NAME$DIST_VERSION" == "FD38" ]; then - CMAKE_OPTIONS+=" -DUSE_SPHINX=OFF" # -else - CMAKE_OPTIONS+=" -DUSE_SPHINX=ON" -fi -CMAKE_OPTIONS+=" -DSPHINX_ROOT_DIR=$SPHINX_ROOT_DIR" -CMAKE_OPTIONS+=" -DYACS_ROOT_DIR=$YACS_ROOT_DIR" -CMAKE_OPTIONS+=" -DSalomeYACS_DIR=$YACS_ROOT_DIR/adm/cmake" -CMAKE_OPTIONS+=" -Dydefx_DIR=$YDEFX_ROOT_DIR/salome_adm/cmake_files" -CMAKE_OPTIONS+=" -DAdaoCppLayer_INCLUDE_DIR=$ADAO_INTERFACE_ROOT_DIR/include" -CMAKE_OPTIONS+=" -DAdaoCppLayer_ROOT_DIR=$ADAO_INTERFACE_ROOT_DIR" -CMAKE_OPTIONS+=" -DUSE_SALOME=ON" -if [ ! -z "$TBB_ROOT" ]; then - CMAKE_OPTIONS+=" -DTBB_ROOT=$TBB_ROOT_DIR" - CMAKE_OPTIONS+=" -DTBB_INCLUDE_DIR=$TBB_ROOT_DIR/include" -fi -CMAKE_OPTIONS+=" -DPYTHON_EXECUTABLE=$PYTHONBIN" - -CMAKE_OPTIONS+=" -DPYTHON_INCLUDE_DIR=$PYTHON_INCLUDE" -if [ "$SAT_Python_IS_NATIVE" != "1" ]; then - CMAKE_OPTIONS+=" -DPYTHON_LIBRARY=$PYTHON_ROOT_DIR/lib/libpython$PYTHON_VERSION.so" -fi - -if [ "$SAT_Sphinx_IS_NATIVE" != "1" ]; then - CMAKE_OPTIONS+=" -DSPHINX_ROOT_DIR:FILEPATH=$SPHINX_ROOT_DIR" - CMAKE_OPTIONS+=" -DSPHINX_EXECUTABLE:FILEPATH=$SPHINX_ROOT_DIR/bin/sphinx-build" -fi - -CMAKE_OPTIONS+=" -DCMAKE_FIND_ROOT_PATH=ON" -CMAKE_OPTIONS+=" -DSWIG_EXECUTABLE:PATH=$(which swig)" -if [ "${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 -if [ -n "$SAT_DEBUG" ]; then - CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE:STRING=Debug" -else - CMAKE_OPTIONS+=" -DCMAKE_BUILD_TYPE:STRING=Release" -fi - -echo -echo "*** cmake" $CMAKE_OPTIONS -cmake $CMAKE_OPTIONS $SOURCE_DIR -if [ $? -ne 0 ] -then - echo "ERROR on cmake" - exit 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 - -# spns #32377 -# setting -DCMAKE_INSTALL_LIBDIR to lib is not enough on Fedora nodes -echo -echo "*** check installation" -if [ ! -d "${PRODUCT_INSTALL}/lib" ]; then - mkdir -p ${PRODUCT_INSTALL}/lib -fi - -if [ -d "${PRODUCT_INSTALL}/lib64" ]; then - echo "WARNING: moving lib64 to lib" - mv ${PRODUCT_INSTALL}/lib64/* ${PRODUCT_INSTALL}/lib/ - rmdir ${PRODUCT_INSTALL}/lib64 -fi - - -if [ -d "${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION}/dist-packages" ]; then - echo "WARNING: linking against dist-packages" - cd ${PRODUCT_INSTALL}/lib/python${PYTHON_VERSION} - ln -sf dist-packages site-packages -fi - -echo -echo "########## END" - diff --git a/products/compil_scripts/PyQt-5.15.bat b/products/compil_scripts/PyQt-5.15.bat index 02d1263..ace17b8 100644 --- a/products/compil_scripts/PyQt-5.15.bat +++ b/products/compil_scripts/PyQt-5.15.bat @@ -35,9 +35,17 @@ SET BUILD_OPTIONS=%BUILD_OPTIONS% --qml-plugindir=%PRODUCT_INSTALL:\=/%/plugins/ SET BUILD_OPTIONS=%BUILD_OPTIONS% --no-qsci-api SET BUILD_OPTIONS=%BUILD_OPTIONS% --spec=win32-msvc SET BUILD_OPTIONS=%BUILD_OPTIONS% --confirm-license -SET BUILD_OPTIONS=%BUILD_OPTIONS% --disable=QtNfc --disable=QtNetwork --disable=QtWebSockets -SET BUILD_OPTIONS=%BUILD_OPTIONS% --target-py-version=%PYTHON_VERSION% +SET BUILD_OPTIONS=%BUILD_OPTIONS% --disable=QtNfc +IF NOT DEFINED OPENSSL_ROOT_DIR ( + SET BUILD_OPTIONS=%BUILD_OPTIONS% --disable=QtNetwork --disable=QtWebSockets +) +SET BUILD_OPTIONS=%BUILD_OPTIONS% --target-py-version=%PYTHON_VERSION% +echo. +echo -------------------------------------------------------------------------- +echo *** build options: %BUILD_OPTIONS +echo -------------------------------------------------------------------------- + %PYTHONBIN% configure.py %BUILD_OPTIONS:\=/% if NOT %ERRORLEVEL% == 0 ( echo ERROR on python configure.py %BUILD_OPTIONS:\=/% diff --git a/products/compil_scripts/openssl-1.1.bat b/products/compil_scripts/openssl-1.1.bat index eb943ee..622dc80 100644 --- a/products/compil_scripts/openssl-1.1.bat +++ b/products/compil_scripts/openssl-1.1.bat @@ -38,6 +38,8 @@ if NOT %ERRORLEVEL% == 0 ( cd %PRODUCT_INSTALL%\lib copy /Y /B libcrypto-1.1.dll libcrypto.dll copy /Y /B libssl-1.1.dll libssl.dll +copy /Y /B libcrypto-1.1.lib libcrypto.lib +copy /Y /B libssl-1.1.lib libssl.lib echo. echo ########## END diff --git a/products/compil_scripts/qt-5.12.10.bat b/products/compil_scripts/qt-5.12.10.bat index bf4b6d7..c037965 100644 --- a/products/compil_scripts/qt-5.12.10.bat +++ b/products/compil_scripts/qt-5.12.10.bat @@ -67,6 +67,10 @@ echo "*** Adding qt.conf file in order to be able to compile using the moved Qt echo [Paths] > %PRODUCT_INSTALL%\bin\qt.conf echo Prefix=../ >> %PRODUCT_INSTALL%\bin\qt.conf +IF DEFINED OPENSSL_ROOT_DIR ( + copy /Y /B %OPENSSL_ROOT_DIR%\lib\*.dll %PRODUCT_INSTALL%\bin\ + copy /Y /B %OPENSSL_ROOT_DIR%\lib\*.lib %PRODUCT_INSTALL%\lib\ +) + echo. echo ########## END - diff --git a/products/compil_scripts/qt-5.15.2.bat b/products/compil_scripts/qt-5.15.2.bat index bf4b6d7..c569441 100644 --- a/products/compil_scripts/qt-5.15.2.bat +++ b/products/compil_scripts/qt-5.15.2.bat @@ -67,6 +67,11 @@ echo "*** Adding qt.conf file in order to be able to compile using the moved Qt echo [Paths] > %PRODUCT_INSTALL%\bin\qt.conf echo Prefix=../ >> %PRODUCT_INSTALL%\bin\qt.conf +IF DEFINED OPENSSL_ROOT_DIR ( + copy /Y /B %OPENSSL_ROOT_DIR%\lib\*.dll %PRODUCT_INSTALL%\bin\ + copy /Y /B %OPENSSL_ROOT_DIR%\lib\*.lib %PRODUCT_INSTALL%\lib\ +) + echo. echo ########## END diff --git a/products/env_scripts/openssl.py b/products/env_scripts/openssl.py index 450f3c3..ab2c226 100644 --- a/products/env_scripts/openssl.py +++ b/products/env_scripts/openssl.py @@ -8,7 +8,9 @@ def set_env(env, prereq_dir, version): env.set('OPENSSL_ROOT_DIR', prereq_dir) env.set('OPENSSL_DIR', prereq_dir) if platform.system() == "Windows" : - env.prepend('PATH', os.path.join(prereq_dir), 'lib') + # no need to expand PATH since it is embedded in Qt/bin + # env.prepend('PATH', os.path.join(prereq_dir), 'lib') + pass def set_nativ_env(env): pass diff --git a/products/openssl.pyconf b/products/openssl.pyconf index e5c4b02..928e72a 100644 --- a/products/openssl.pyconf +++ b/products/openssl.pyconf @@ -23,8 +23,11 @@ default : default_win : { + name : "openssl" get_source : "archive" build_source : "script" + source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name + build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name } version_1_1_1n : diff --git a/products/openturns.pyconf b/products/openturns.pyconf index 2e27bc8..e8705df 100644 --- a/products/openturns.pyconf +++ b/products/openturns.pyconf @@ -76,7 +76,7 @@ version_1_22_win : build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name depend : ['Python', 'openblas', 'hdf5', 'tbb', 'nlopt', 'libxml2', 'eigen', 'matplotlib', 'fftw'] opt_depend : ['pandas', 'statsmodels', 'patsy'] - patches : [] + patches : ['openturns-1.22.0002.patch'] properties : { single_install_dir : "no" diff --git a/products/patches/PERSALYS-v16.0-001.patch b/products/patches/PERSALYS-v16.0-001.patch deleted file mode 100644 index 86b3d72..0000000 --- a/products/patches/PERSALYS-v16.0-001.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- PERSALYS-f386013d_ref/CMakeLists.txt 2024-04-03 13:36:52.000000000 +0200 -+++ PERSALYS-f386013d_new/CMakeLists.txt 2024-04-10 13:10:40.000000000 +0200 -@@ -64,7 +64,7 @@ - set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj") - endif () - --find_package (Boost COMPONENTS locale program_options REQUIRED) -+find_package (Boost COMPONENTS locale filesystem program_options REQUIRED) - list (APPEND PERSALYS_PRIVATE_LIBRARIES ${Boost_LIBRARIES}) - - find_package (Python 3.5 COMPONENTS Interpreter Development REQUIRED) diff --git a/products/patches/PERSALYS-v16.0-002.patch b/products/patches/PERSALYS-v16.0-002.patch deleted file mode 100644 index d3f90fa..0000000 --- a/products/patches/PERSALYS-v16.0-002.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- PERSALYS-f386013d_ref/lib/src/base/CMakeLists.txt 2024-04-03 13:36:53.000000000 +0200 -+++ PERSALYS-f386013d_new/lib/src/base/CMakeLists.txt 2024-04-10 01:05:14.000000000 +0200 -@@ -204,6 +204,7 @@ - target_compile_definitions (persalysbase PUBLIC PERSALYS_BASE_STATIC) - endif () - -+target_compile_options(persalysbase PUBLIC -DBOOST_ALL_DYN_LINK) - target_include_directories (persalysbase PRIVATE ${Boost_INCLUDE_DIRS}) - target_include_directories (persalysbase PRIVATE ${Python_INCLUDE_DIRS}) - -@@ -225,9 +226,8 @@ - target_link_libraries (persalysbase PRIVATE stdc++fs) - endif () - --target_link_libraries (persalysbase PUBLIC ${PERSALYS_PUBLIC_LIBRARIES}) --target_link_libraries (persalysbase PRIVATE ${PERSALYS_PRIVATE_LIBRARIES}) -- -+target_link_libraries (persalysbase PUBLIC "${PERSALYS_PUBLIC_LIBRARIES};${Boost_LIBRARIES};${Boost_FILESYSTEM_LIBRARY_RELEASE}") -+target_link_libraries (persalysbase PRIVATE "${PERSALYS_PRIVATE_LIBRARIES};${Boost_LIBRARIES};${Boost_FILESYSTEM_LIBRARY_RELEASE}") - install (TARGETS persalysbase - RUNTIME DESTINATION ${PERSALYS_BIN_PATH} - LIBRARY DESTINATION ${PERSALYS_LIBRARY_PATH} diff --git a/products/patches/PERSALYS-v16.0-003.patch b/products/patches/PERSALYS-v16.0-003.patch deleted file mode 100644 index 35d270d..0000000 --- a/products/patches/PERSALYS-v16.0-003.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- PERSALYS-f386013d_ref/main/CMakeLists.txt 2024-04-03 13:36:53.000000000 +0200 -+++ PERSALYS-f386013d_new/main/CMakeLists.txt 2024-04-10 14:54:37.739055374 +0200 -@@ -39,7 +39,10 @@ - - if (WIN32) - add_executable (persalys_launcher launcher.cxx) -- target_link_libraries (persalys_launcher PRIVATE Boost::program_options ws2_32) -+ target_compile_options(persalys_launcher PUBLIC -DBOOST_ALL_DYN_LINK) -+ target_link_libraries (persalys_launcher PUBLIC Boost::program_options ws2_32 "${PERSALYS_PRIVATE_LIBRARIES};${Boost_LIBRARIES};${Boost_FILESYSTEM_LIBRARY_RELEASE}") -+ target_link_libraries (persalys_launcher PRIVATE Boost::program_options ws2_32 "${PERSALYS_PRIVATE_LIBRARIES};${Boost_LIBRARIES};${Boost_FILESYSTEM_LIBRARY_RELEASE}") -+ - set_target_properties (persalys_launcher PROPERTIES UNITY_BUILD OFF) - install (TARGETS persalys_launcher DESTINATION bin) - endif () diff --git a/products/patches/PERSALYS-v16.0-004.patch b/products/patches/PERSALYS-v16.0-004.patch deleted file mode 100644 index 826310a..0000000 --- a/products/patches/PERSALYS-v16.0-004.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- PERSALYS-f386013d_ref/main/launcher.cxx 2024-04-03 13:36:53.000000000 +0200 -+++ PERSALYS-f386013d_new/main/launcher.cxx 2024-04-10 14:58:17.794900118 +0200 -@@ -22,13 +22,12 @@ - #define BOOST_PROCESS_USE_STD_FS - #include - #include -- --#include -+#include - #include - #include - - namespace po = boost::program_options; --namespace fs = std::filesystem; -+namespace fs = std::experimental::filesystem; - namespace bp = boost::process; - - int main(int argc, char *argv[]) diff --git a/products/patches/PERSALYS-v16.0.1-001.patch b/products/patches/PERSALYS-v16.0.1-001.patch new file mode 100644 index 0000000..86b3d72 --- /dev/null +++ b/products/patches/PERSALYS-v16.0.1-001.patch @@ -0,0 +1,11 @@ +--- PERSALYS-f386013d_ref/CMakeLists.txt 2024-04-03 13:36:52.000000000 +0200 ++++ PERSALYS-f386013d_new/CMakeLists.txt 2024-04-10 13:10:40.000000000 +0200 +@@ -64,7 +64,7 @@ + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj") + endif () + +-find_package (Boost COMPONENTS locale program_options REQUIRED) ++find_package (Boost COMPONENTS locale filesystem program_options REQUIRED) + list (APPEND PERSALYS_PRIVATE_LIBRARIES ${Boost_LIBRARIES}) + + find_package (Python 3.5 COMPONENTS Interpreter Development REQUIRED) diff --git a/products/patches/PERSALYS-v16.0.1-002.patch b/products/patches/PERSALYS-v16.0.1-002.patch new file mode 100644 index 0000000..d3f90fa --- /dev/null +++ b/products/patches/PERSALYS-v16.0.1-002.patch @@ -0,0 +1,22 @@ +--- PERSALYS-f386013d_ref/lib/src/base/CMakeLists.txt 2024-04-03 13:36:53.000000000 +0200 ++++ PERSALYS-f386013d_new/lib/src/base/CMakeLists.txt 2024-04-10 01:05:14.000000000 +0200 +@@ -204,6 +204,7 @@ + target_compile_definitions (persalysbase PUBLIC PERSALYS_BASE_STATIC) + endif () + ++target_compile_options(persalysbase PUBLIC -DBOOST_ALL_DYN_LINK) + target_include_directories (persalysbase PRIVATE ${Boost_INCLUDE_DIRS}) + target_include_directories (persalysbase PRIVATE ${Python_INCLUDE_DIRS}) + +@@ -225,9 +226,8 @@ + target_link_libraries (persalysbase PRIVATE stdc++fs) + endif () + +-target_link_libraries (persalysbase PUBLIC ${PERSALYS_PUBLIC_LIBRARIES}) +-target_link_libraries (persalysbase PRIVATE ${PERSALYS_PRIVATE_LIBRARIES}) +- ++target_link_libraries (persalysbase PUBLIC "${PERSALYS_PUBLIC_LIBRARIES};${Boost_LIBRARIES};${Boost_FILESYSTEM_LIBRARY_RELEASE}") ++target_link_libraries (persalysbase PRIVATE "${PERSALYS_PRIVATE_LIBRARIES};${Boost_LIBRARIES};${Boost_FILESYSTEM_LIBRARY_RELEASE}") + install (TARGETS persalysbase + RUNTIME DESTINATION ${PERSALYS_BIN_PATH} + LIBRARY DESTINATION ${PERSALYS_LIBRARY_PATH} diff --git a/products/patches/PERSALYS-v16.0.1-003.patch b/products/patches/PERSALYS-v16.0.1-003.patch new file mode 100644 index 0000000..35d270d --- /dev/null +++ b/products/patches/PERSALYS-v16.0.1-003.patch @@ -0,0 +1,14 @@ +--- PERSALYS-f386013d_ref/main/CMakeLists.txt 2024-04-03 13:36:53.000000000 +0200 ++++ PERSALYS-f386013d_new/main/CMakeLists.txt 2024-04-10 14:54:37.739055374 +0200 +@@ -39,7 +39,10 @@ + + if (WIN32) + add_executable (persalys_launcher launcher.cxx) +- target_link_libraries (persalys_launcher PRIVATE Boost::program_options ws2_32) ++ target_compile_options(persalys_launcher PUBLIC -DBOOST_ALL_DYN_LINK) ++ target_link_libraries (persalys_launcher PUBLIC Boost::program_options ws2_32 "${PERSALYS_PRIVATE_LIBRARIES};${Boost_LIBRARIES};${Boost_FILESYSTEM_LIBRARY_RELEASE}") ++ target_link_libraries (persalys_launcher PRIVATE Boost::program_options ws2_32 "${PERSALYS_PRIVATE_LIBRARIES};${Boost_LIBRARIES};${Boost_FILESYSTEM_LIBRARY_RELEASE}") ++ + set_target_properties (persalys_launcher PROPERTIES UNITY_BUILD OFF) + install (TARGETS persalys_launcher DESTINATION bin) + endif () diff --git a/products/patches/openturns-1.22.0002.patch b/products/patches/openturns-1.22.0002.patch new file mode 100644 index 0000000..e681615 --- /dev/null +++ b/products/patches/openturns-1.22.0002.patch @@ -0,0 +1,15 @@ +diff -Naur openturns-1.22_ref/openturns-1.22/lib/src/Base/Common/openturns/Log.hxx openturns-1.22_dev/openturns-1.22/lib/src/Base/Common/openturns/Log.hxx +--- openturns-1.22_ref/openturns-1.22/lib/src/Base/Common/openturns/Log.hxx 2024-04-24 12:41:11.929743118 +0200 ++++ openturns-1.22_dev/openturns-1.22/lib/src/Base/Common/openturns/Log.hxx 2024-04-24 12:44:51.657001032 +0200 +@@ -21,6 +21,11 @@ + #ifndef OPENTURNS_LOG_HXX + #define OPENTURNS_LOG_HXX + ++#ifdef WIN32 ++ #ifdef ERROR ++ #undef ERROR ++ #endif ++#endif + #include + #include + #include "openturns/OTprivate.hxx"