Windows installation of Gmsh C++ API
I have been facing issues with the use of Gmsh C++ API. I am trying to incorporate Gmsh in my own in-house C++ FEM code (Windows OS). I installed Gmsh through vcpkg with OCC enabled (i.e. install gmsh[occ]:x64-windows). The code compiles properly, and seems to recognize all functions, with no syntax errors. Yet, during execution, only functions from the GEO kernel seem to execute properly. Whenever I try calling any function from the OCC kernel (e.g. addRectangle), I get the following message:
Error: Gmsh requires OpenCASCADE to add rectangle
Also, whenever I try calling a Mesh function (e.g. generate), I get the following message:
Error: Mesh module not compiled
There’s nothing I haven’t tried to get this to work, but in vain. I am not sure whether there’s something wrong I’m doing or there is a bug in the vcpkg installation. Has anybody else faced this issue with the Gmsh installation in Windows? What's the fix? Any help on this issue would be much appreciated.
PS: I managed to get the code to run perfectly in Linux. It's just the Windows version that's giving me a headache!