]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #24411 ajout script de compil gmsh 4.8.4
authorAbdoulbari ZAKIR <Abdoulbari.Zakir@cea.fr>
Mon, 21 Jun 2021 08:47:21 +0000 (10:47 +0200)
committerAbdoulbari ZAKIR <Abdoulbari.Zakir@cea.fr>
Mon, 21 Jun 2021 08:47:21 +0000 (10:47 +0200)
products/compil_scripts/gmsh-4.8.4.sh [new file with mode: 0755]
products/gmsh.pyconf

diff --git a/products/compil_scripts/gmsh-4.8.4.sh b/products/compil_scripts/gmsh-4.8.4.sh
new file mode 100755 (executable)
index 0000000..dc7a95c
--- /dev/null
@@ -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"
+
index 92bda0a17fb434acb409b52d43e4ee9972d3140d..54f30fdbe40aae3b9c889d87be3f45a29e145939 100644 (file)
@@ -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
+}