Skip to content

OpenCascade on Mac -- update build system #1637

Open
@rckirby

Description

@rckirby

The version of opencascade on homebrew is now sufficiently modern that pythonocc can use it. Consequently, I was able to use OpenCascadeMeshHierarchy on my Mojave Mac by doing the following.

1.) Install opencascade from homebrew
2.) Clone pythonocc-core from GitHub and follow their cmake/make/make install instructions. I did this within my firedrake virtual environment. I didn't need any special options/instructions, but I did use make -j 8 to speed things up a bit (is there a way to query a reasonable number and set this in the build system?)
3.) I needed to make sure that gmsh was callable from the command line. Perhaps having the install script try to invoke gmsh and then either adding /Applications/Gmsh.app/Contents/MacOS/ to the path or creating a symlink to /Applications/Gmsh.app/Contents/MacOS/gmsh in /bin if needed should work.

If this works generally, the build system can be updated so that firedrake-install --opencascade works on Mac as well as Ubuntu.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions