netgen 6.2, cmake options for compiling for FreeCAD

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

netgen 6.2, cmake options for compiling for FreeCAD

Post by bernd »

When compiling netgen 5.3 with configure one had to set some parameters.

Netgen 6.3 uses cmake to set up build. Does someone know which parameters to set for building netgen for FreeCAD on debian.

bernd

EDIT: it is about Netgen 6.2, Version 6.3 is not yet released
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: cmake options for netgen 6.3

Post by kkremitzki »

bernd wrote: Thu Jan 10, 2019 8:30 pm When compiling netgen 5.3 with configure one had to set some parameters.

Netgen 6.3 uses cmake to set up build. Does someone know which parameters to set for building netgen for FreeCAD on debian.

bernd
Do you mean 6.2? It doesn't seem 6.3 is released yet from what I can find. Anyway, 6.2 is already in Debian Testing/Unstable so you should just be able to install it (https://tracker.debian.org/pkg/netgen). The rules for the package build here show the flags used: https://salsa.debian.org/science-team/n ... bian/rules
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: cmake options for netgen 6.3

Post by bernd »

I only need netgen to build FreeCAD with. This never worked with the debian packages. One had to build netgen and to copy include files.

Does it mean on buster we can use the debian packages? are they build with opencascade?
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: cmake options for netgen 6.3

Post by kkremitzki »

bernd wrote: Thu Jan 10, 2019 9:20 pm I only need netgen to build FreeCAD with. This never worked with the debian packages. One had to build netgen and to copy include files.

Does it mean on buster we can use the debian packages? are they build with opencascade?
Yes, it should be possible to do that as they are built with OCCT 7.3.0 but I've never tried using it in much depth since it seemed disabled in the FEM workbench.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: cmake options for netgen 6.3

Post by bernd »

sure, it is disabled in FEM and Mesh wb if FreeCAD is not build with netgen. As soon as FreeCAD is build with netgen the mesher is available in FEM an in Mesh WB.

I lately switched to Buster and Py3 and Qt5 and just realised no netgen anymore for my in FEM wb ... :shock:
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: cmake options for netgen 6.3

Post by bernd »

kkremitzki wrote: Thu Jan 10, 2019 8:35 pm Do you mean 6.2? It doesn't seem 6.3 is released yet from what I can find.
yes. I changed the topic title in this regard
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: netgen 6.2, cmake options for compiling for FreeCAD

Post by bernd »

with this I got it compiled ... The strange thing is netgen cmake would like to have write permissions to the install dir I never had this on cmake or make run ... I just made them with sudo. I may try later if it would work without too.

Code: Select all

git clone https://github.com/looooo/netgen netgen
mkdir build
cd build
sudo cmake  \
-DUSE_PYTHON=False \
-DUSE_GUI=False \
-DUSE_OCC=True \
-DOCC_INCLUDE_DIR=/usr/include/occt \
../netgen

sudo make -j4
sudo make install

ok now FreeCAD with netgen ...
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: netgen 6.2, cmake options for compiling for FreeCAD

Post by looo »

bernd wrote: Sat Jan 12, 2019 12:25 pm The strange thing is netgen cmake would like to have write permissions to the install dir I never had this on cmake or make run.
I guess this is because of the "superbuild". There is an option to disable "superbuild":
https://github.com/conda-forge/netgen-f ... ild.sh#L19
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: netgen 6.2, cmake options for compiling for FreeCAD

Post by bernd »

looo wrote: Sat Jan 12, 2019 1:10 pm
bernd wrote: Sat Jan 12, 2019 12:25 pm The strange thing is netgen cmake would like to have write permissions to the install dir I never had this on cmake or make run.
I guess this is because of the "superbuild". There is an option to disable "superbuild":
https://github.com/conda-forge/netgen-f ... ild.sh#L19
:D

Code: Select all

git clone https://github.com/looooo/netgen netgen
mkdir build
cd build
cmake                               \
-DUSE_PYTHON=False                  \
-DUSE_GUI=False                     \
-DUSE_OCC=True                      \
-DOCC_INCLUDE_DIR=/usr/include/occt \
-DUSE_SUPERBUILD=False              \
../netgen

make -j4
sudo make install
Post Reply