Can't build against MED 4.0.0 on Debian Unstable
Hello,
A new version of MED aka med-fichier (Debian Package Tracker) has been released, 4.0.0.
I'm not sure if my issue is a bug in the med-fichier package for Debian or gmsh, but the current gmsh package, version 3.0.6, builds OK against MED 4.0.0, but I can't build gmsh 4.0.7 against it.
I'm using cmake ../repo -DOCC_INC=/usr/include/occt -DENABLE_SYSTEM_CONTRIB=ON
and get this:
[ 0%] Building CXX object CMakeFiles/gmsh.dir/Geo/GModelIO_MED.cpp.o
In file included from /usr/include/med_proto.h:33,
from /usr/include/med.h:411,
from /home/kurt/Desktop/Packages/gmsh/repo/Geo/GModelIO_MED.cpp:30:
/usr/include/medfile.h:51:15: error: ‘MPI_Comm’ does not name a type
const MPI_Comm comm, const MPI_Info info);
^~~~~~~~
/usr/include/medfile.h:51:36: error: ‘MPI_Info’ does not name a type
const MPI_Comm comm, const MPI_Info info);
^~~~~~~~
I've seen a similar error when building FreeCAD and in that situation adding to cmake -DCMAKE_CXX_COMPILER=/usr/bin/mpic++ -DCMAKE_CXX_FLAGS="-I/usr/include/hdf5/openmpi -I/usr/x86_64-linux-gnu/include/openmpi"
resolved it, but in this case did not help.
Edited by Kurt Kremitzki