Search code examples
dotmeson-buildwayland

Got an error while building Wayland: ERROR: Program 'dot' not found


I am following instructions in wayland's gitlab website to build it on Ubuntu 20.04. But I got an error at the "meson build" step:

Program dot found: NO

doc/meson.build:1:0: ERROR: Program 'dot' not found

I have tried installing graphviz using apt-get, pydot using pip3, but still receive the above error. What else should I install?


Solution

  • If you don't need the documentation built, just running meson setup $builddir -Ddocumentation=false will turn off the documentation, and thus the need for dot.

    But it's confusing that graphviz isn't fixing the problem, since that is the Debian/Ubuntu package with dot in it.