Closed BrushXue closed 3 years ago
Hi,
In fact, it is missing -lgmp -lmpfr
in CGAL_LIBS
(in wmake/rules/darwin64Clang/cgal
).
So to correct the error, you need to add these flags to CGAL_LIBS
and recompile at least applications/utilities/surface
and applications/utilities/mesh/generation/foamyMesh
.
Though, after you will get sigFpe
during foamyHexMesh
run. Yet, this behaviour is identical to Linux.
This is weird as it's opposite to https://develop.openfoam.com/Development/openfoam/-/wikis/building#darwin-mac-os
Guess, Homebrew maintainers of CGAL do not follow OpenFOAM's suggestions:
class Cgal < Formula
...
depends_on "cmake" => [:build, :test]
depends_on "qt@5" => [:build, :test]
depends_on "boost"
depends_on "eigen"
depends_on "gmp"
depends_on "mpfr"
...
And ___gmpq_init
, which dynamic linker cannot find, is a function from GMP.
Guess, the issue became irrelevant.
Hello.
I was trying to run the tutorial case in
tutorials/mesh/foamyHexMesh/mixerVessel
and got the following error when runningsurfaceBooleanFeatures
:Tested on another Linux computer and didn't receive any error message. I wonder if this issue comes from the homebrew CGAL? Thanks.