The only netgen version I could use with FreeCAD, is netgen-4.9.13. I used the debian source of netgen in order to compile netgen, because the debian sources already have some changes included needed for FreeCAD.bernd wrote:I have not managed to compile FreeCAD with netgen. It's somehow tricky. Therefore I use gmsh and import the unv files by python.
I am using the following configure command to compile netgen:
I have oce installed in my home directory, in order to have different oce-versions available../configure --prefix=/usr/local --enable-occ --with-occ=/home/ulrich/oce/oce17 --with-togl=/usr/lib --enable-jpeglib --with-tcl=/usr/lib/tcl8.5 --with-tk=/usr/lib/tk8.5
Once netgen is installed in /usr/local, the compilation of FreeCAD with netgen is straight-forward with cmake-gui. The only difficulty is the annoyoing setting of the following options:NETGEN_DIR_csg, NETGEN_DIR_gen, NETGEN_DIR_geom2d, NETGEN_DIR_gprim, NETGEN_DIR_la, NETGEN_DIR_mesh, NETGEN_DIR_occ, NETGEN_DIR_stlgeom
All of these option have to be set to the same path, which is in my case:
Code: Select all
PATH=/home/ulrich/Sourcen/netgen_debian/netgen-4.9.13.dfsg/libsrc/include
This version of netgen works with FreeCAD. Unfortunately the netgen-gui-program suffers from a X-related graphic-error and does not run on my system. The only gui-version, that run on my system is netgen 6.1 compiled from the git repository. But FreeCAD does not compile with this version. So when experimenting with FreeCAD and netgen, I need two different versions of netgen on my system.
Ulrich