How to compile c++ dolfinx code?

The ubuntu installation on ubuntu 22.04 is DOLFINx v0.5.2, and thus you need to use code compatible with that release.

On ubuntu 20.04, the latest release of DOLFINx is v0.4.1, see: Install FEniCS via WSL for Ubuntu 20.04 - #10 by dokken
Thus on ubuntu 20.04 you need to the v0.4.1 branch if you want to use apt to install the code (and not conda)

1 Like