FreeCAD
FreeCAD copied to clipboard
FEMMeshNetgen: The FEM module is built without NETGEN support. Meshing will not work!!!
Is there an existing issue for this?
- [X] I have searched the existing issues
Problem description
Tested on conda-version (osx-arm). Something must have changed so that the netgen-mesher is not enabled anymore in version 1.0.0. I get this error message when trying to run netgen:
FEMMeshNetgen: The FEM module is built without NETGEN support. Meshing will not work!!!
The conda-packaging didn't change, so normally netgen should work.
Full version info
OS: macOS Sequoia (15.1)
Architecture: arm64
Version: 1.0.0.39109 (Git) Conda
Build type: Release
Branch: (HEAD detached at 1.0.0)
Hash: 2fcc5317fe3aee96ca73475986a577719fc78e20
Python 3.12.7, Qt 6.7.3, Coin 4.0.3, Vtk 9.3.1, OCC 7.8.1
Locale: German/Austria (de_AT)
Stylesheet/Theme/QtStyle: OpenLight.qss/OpenLight/
Installed mods:
* DynamicData 2.62.0
* Plot 2022.4.17
* OpenTheme 2024.9.1
* AirPlaneDesign 0.4.1
* CurvedShapes 1.0.9
* Curves 0.6.42
* Assembly4 0.50.15
* Assembly3 0.12.2
Subproject(s) affected?
FEM
Anything else?
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
@marioalexis84 @oursland FYI
Could you check if the cmake entry BUILD_FEM_NETGEN=ON is defined?
it is but the build logs show: -- NETGEN: not enabled
Could you check if the cmake entry BUILD_FEM_NETGEN=ON is defined?
I am sorry, I checked the wrong files, somehow it was indeed disabled. Blame on me!!
There were no recent changes to FindNETGEN.cmake. Do you have any reference commit for which Netgen is found on your current system?
The message in the build log is misleading as it is conditional on NETGEN_FOUND, so should say "not found" rather than "not enabled" or a further condition added based on build flag to correctly report when not enabled.
Would it make sense to add a value entry in the report for BUILD_FEM_NETGEN (currently only BUILD_FEM)?
I tested now on different platforms. Netgen works for all the qt5 builds. For the qt6-builds it's not working. One difference I see in the build logs is the following:
qt5 reports this:
-- Could NOT find Netgen (missing: Netgen_DIR)
-- Cannot find NETGEN header files.
-- Cannot find NETGEN library.
qt6 reports only:
-- NETGEN: not enabled
Sorry for the rumours, somewhere in the commit history during updating to qt6 I had disabled BUILD_FEM_NETGEN. So this should be fixed. Thanks for the help.
Does this also cause Netgen to not be selectable in the Mesh Workbench, or is that a separate issue?