[Gmsh] Python wrapper in gmsh
cgeuzaine at ulg.ac.be
Wed Mar 15 21:46:57 CET 2017
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.
> On 15 Mar 2017, at 21:21, Andreas.Schuster at dlr.de wrote:
> 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?
> M.Sc. Andreas Schuster
> German Aerospace Center
> gmsh mailing list
> gmsh at onelab.info
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
Free software: http://gmsh.info | http://getdp.info | http://onelab.info
More information about the gmsh