Gmsh-4-12.2 (and I guess the actual GIT revision as well) fails at linking when HXT is disabled (i.e. cmake -DENABLE_HXT=0)
I downloaded Gmsh-4.12.2 sources from http://gmsh.info/src/gmsh-4.12.2-source.tgz. On Windows 10, I configured with CMake by specifying -DENABLE_HXT=0. The compilation goes fine (provided some changes to by-pass some features which are not supported by OpemMP standard 2) but the link fails.
I suspect the linking failure comes from the implementation in meshCombine3D.cpp. Indeed I succeeded to compile and link by modifying the implementation in meshCombine3D.cpp as follows:
Original code
#if defined(HAVE_HXT) #include "hxt_combine_cpp_api.h" ... #else int meshCombine3d (GModel *m){ Msg::Warning("Gmsh must be compiled with HXT to enable hybrid mesh generation"); return -1; } #endif
Modified code
#if defined(HAVE_HXT) #include "hxt_combine_cpp_api.h" ... #else int meshCombine3D (GRegion *gr){ Msg::Warning("Gmsh must be compiled with HXT to enable hybrid mesh generation"); return -1; } #endif
If I am not wrong (I did not tried), the problem is still present on the actual GIT revision of Gmsh.