Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andreaippo/aaeec39346361ff9995c991238e8dd32 to your computer and use it in GitHub Desktop.
Save andreaippo/aaeec39346361ff9995c991238e8dd32 to your computer and use it in GitHub Desktop.
Wayland-client.h: No such file or directory (with workaround)
Today I was trying to build Jetbrains flavor of the JRE which is what runs their IDEs (it’s called JBR), and faced this issue:
`wayland-client.h: No such file or directory`
It took me a while to figure out, so I’m posting the solution here, maybe it’ll help someone.
First of all, you need to install the wayland dev package for your distro (i.e. the one containing the header files).
On opensuse tumbleweed (the distro I use), it's called `wayland-devel` and installed via `sudo zypper in wayland-devel`.
But then since header files are installed under `/usr/include/wayland` whereas the configure script expects them under `/usr/include`, you also have to symlink them there:
```
cd /usr/include
sudo ln -s wayland/* .
```
That’s it
Hope this helped someone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment