Compilation error in master, with patch
Hello,
I can't fork your project, so here is a patch to fix compilation.
Here's how I compiled it on CentOS 6.10
git clone ...
cd gmsh
cmake .
make
The patch:
diff --git a/contrib/hxt/hxt_linear_system.c b/contrib/hxt/hxt_linear_system.c
index 7105062..3161c0b 100644
--- a/contrib/hxt/hxt_linear_system.c
+++ b/contrib/hxt/hxt_linear_system.c
@@ -1,3 +1,4 @@
+#include "hxt_linear_system_lu.h"
#include "hxt_linear_system.h"
#include "hxt_tools.h"
#include "hxt_class_macro.h"
@@ -18,7 +19,6 @@
HXT_DECLARE_INTERFACE(LinearSystem)
-#include "hxt_linear_system_lu.h"
HXT_DECLARE_DERIVED_CLASS(LinearSystem, LinearSystemLU)
#ifdef HXT_HAVE_PETSC
diff --git a/contrib/hxt/hxt_linear_system.h b/contrib/hxt/hxt_linear_system.h
index 5e66e33..b4ded56 100644
--- a/contrib/hxt/hxt_linear_system.h
+++ b/contrib/hxt/hxt_linear_system.h
@@ -20,7 +20,9 @@ HXTStatus hxtLinearSystemGetRhsNorm(HXTLinearSystem *lsys, double *rhs, double *
HXTStatus hxtLinearSystemHasConverged(HXTLinearSystem *lsys, int *converged);
HXTStatus hxtLinearSystemCreateLU(HXTLinearSystem **sys, int nElement, int nNodesByElement, int nFields, uint32_t *elements);
+#ifndef HEXTREME_LINEAR_SYSTEM_LU_H
typedef struct HXTLinearSystemLUStruct HXTLinearSystemLU;
+#endif
HXTStatus hxtLinearSystemGetLinearSystemLU(HXTLinearSystem *sys, HXTLinearSystemLU **psys);
#ifdef HXT_HAVE_PETSC
diff --git a/contrib/hxt/hxt_mesh_size.c b/contrib/hxt/hxt_mesh_size.c
index 3bee710..dddc31f 100644
--- a/contrib/hxt/hxt_mesh_size.c
+++ b/contrib/hxt/hxt_mesh_size.c
@@ -3,7 +3,7 @@
#include "hxt_mesh_size.h"
#include <math.h>
-typedef struct hxtMeshSizeStruct HXTMeshSize;
+//typedef struct hxtMeshSizeStruct HXTMeshSize; // already defined in hxt_api.h
HXTStatus hxtMeshSizeCellEvaluate(HXTMeshSizeCell *cell, double x, double y, double z, double *v) {
if (cell->isleaf){