From: Abdoulbari ZAKIR Date: Mon, 21 Jun 2021 08:47:21 +0000 (+0200) Subject: spns #24411 ajout script de compil gmsh 4.8.4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=415f072a4c66d331cd6576caad9741fabc500768;p=tools%2Fsat_salome.git spns #24411 ajout script de compil gmsh 4.8.4 --- diff --git a/products/compil_scripts/gmsh-4.8.4.sh b/products/compil_scripts/gmsh-4.8.4.sh new file mode 100755 index 0000000..dc7a95c --- /dev/null +++ b/products/compil_scripts/gmsh-4.8.4.sh @@ -0,0 +1,75 @@ +#!/bin/bash + +echo "##########################################################################" +echo "gmsh" $VERSION +echo "##########################################################################" + + + +CMAKE_OPTIONS="" +# common settings +CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCMAKE_INSTALL_PREFIX=${PRODUCT_INSTALL}" +CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCMAKE_VERBOSE_MAKEFILE=ON" +CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCMAKE_BUILD_TYPE=Release" +CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_BUILD_SHARED=ON" + +# build options +echo "*** GMSH version $VERSION >= 4." +CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_ACIS=OFF" +CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_FLTK=OFF" +CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_MED=OFF" +CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_ONELAB_METAMODEL=OFF" +CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_PARSER=ON" +CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_PETSC=OFF" +CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_PRIVATE_API=ON" +CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_CGNS=OFF" # default value is set to ON in release 4.1.4 +CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCMAKE_INSTALL_LIBDIR=${PRODUCT_INSTALL}/lib" # strangely on Ubuntu GMSH installs the .so in lib instead of lib/lib64 - so force to lib64 +CMAKE_OPTIONS="${CMAKE_OPTIONS} -DCMAKE_PREFIX_PATH=${LAPACK_ROOT_DIR}" # set path of third libraries to our associated internal products +CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_OPENMP=1" +if [[ $DIST_NAME == "FD" && $DIST_VERSION == "32" ]] +then + CMAKE_OPTIONS="${CMAKE_OPTIONS} -DENABLE_MMG3D=OFF" # removed anyhow in GMS 4.6 +fi + +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 + +echo +echo "*** copy all .h in sources to install" +cp -f --backup=numbered `find $SOURCE_DIR -name "*.h"` $PRODUCT_INSTALL/include/ && \ + mv $PRODUCT_INSTALL/include/gmsh/* $PRODUCT_INSTALL/include/ && \ + rmdir $PRODUCT_INSTALL/include/gmsh/ +if [ $? -ne 0 ] +then + echo "ERROR on copy" + exit 4 +fi + + +echo +echo "########## END" + diff --git a/products/gmsh.pyconf b/products/gmsh.pyconf index 92bda0a..54f30fd 100644 --- a/products/gmsh.pyconf +++ b/products/gmsh.pyconf @@ -25,6 +25,11 @@ default_win: depend : ["CAS"] } +version_4_8_4: +{ + compil_script : "gmsh-4.8.4.sh" +} + version_4_1_4: { } @@ -32,4 +37,4 @@ version_4_1_4: version_4_1_4_win: { patches : ["gmsh_4_1_4-win.patch"] -} \ No newline at end of file +}