[Gmsh] Python wrapper in gmsh

Christophe Geuzaine cgeuzaine at ulg.ac.be
Wed Mar 15 21:46:57 CET 2017


Dear Andreas,

I don't recommend using the Python wrappers for general use: they are really targeted towards Gmsh developers - so (almost) every internal Gmsh class is in the bindings, and nothing is documented/supported.

In the near future we will start creating a much smaller API geared towards (advanced) users, which could be wrapped in any language. This will be documented and supported, and will mostly consist in simple functions taking integers, floating point numbers and vectors thereof. For a sneak peak, you can have a look at our new internal CAD creation routines (in Geo/GModelIO_GEO.h and Geo/GModelIO_OCC.h): we plan to wrap only some of the public functions (this is already what is now used internally in the .geo file parser). We plan to do something similar for all meshing features.

Christophe

> On 15 Mar 2017, at 21:21, Andreas.Schuster at dlr.de wrote:
> 
> Hello,
>  
> I’ve tried to build Gmsh from the source code with Cmake and the Microsoft Visual C++ Build Tools 2015 to test the python wrapper functionality.
> The compiling process works without problems but when generating the python wrapper code and linking, the compiler claims:
> Link error 1189: library limit of 65535 objects exceeded
> To solve this general error, I could only find some advisors where separate sub libraries should be created to separate the objects to be linked or manually select symbols via .def files.
> Both approaches seem to be very complex for non gmsh-developers.
> I also tried to disable some unused external libraries from the compiling process in Cmake to reduce the overall size of the gmsh library but this doesn’t work either.
> Are there any recommendations what to do in that special case to build gmsh with less compiling complexity and time?
>  
> Thanks
>  
> ——————————————————————————
> M.Sc. Andreas Schuster
>  
> German Aerospace Center
>  
>  
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine

Free software: http://gmsh.info | http://getdp.info | http://onelab.info




More information about the gmsh mailing list