Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing wayland-protocols-devel? #517

Closed
AlbertoGP opened this issue Sep 9, 2023 · 4 comments
Closed

Missing wayland-protocols-devel? #517

AlbertoGP opened this issue Sep 9, 2023 · 4 comments

Comments

@AlbertoGP
Copy link

Hi, I’m trying to compile a program using wayland, I get the following error message:

In file included from rglfw.c:95:
./external/glfw/src/wl_init.c:43:10: fatal error: 'wayland-xdg-shell-client-protocol.h' file not found
#include "wayland-xdg-shell-client-protocol.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I’ve installed wayland-devel, wayland-devel-static, and wayland-protocols, but I do not see any other package that seems relevant.
Searching for that .h file name in the package list (“Contents”) also did not yield any result.

Is there a missing wayland-protocols-devel package, or should I get that file from somewhere else?

@AlbertoGP
Copy link
Author

This might actually be a shortcoming in GLFW because wayland support is not yet finished.

@AlbertoGP
Copy link
Author

After some research, it turns out that this has nothing to do with Chimera.

It seems that libraries like GLFW, raylib, sokol, are not a good fit for wayland as discussed in this PR about adding wayland support to sokol: floooh/sokol#425 (comment)

For me the solution is to install xwayland, xserver-org-cevel. libxcursor-devel-static, libxinerama-devel-static.

What I’m trying to do is to compile one of my programs that uses raylib without installing xorg on Chimera, that is with as few customizations as possible.

@q66
Copy link
Member

q66 commented Sep 9, 2023

wayland-protocols is the only protocols package, it does not need a separate -devel

glfw can be compiled with wayland, but it's either one or the other backend (i.e. you can't have support for both x11 and wayland in one library), dunno about the others

also that guy is wrong, sdl is multi-backend and works well (you can have x11 and wayland at the same time in one binary), window decorations in toolkit-independent stuff can be brought in with libdecor

@nekopsykose
Copy link
Member

glfw can be compiled with wayland, but it's either one or the other backend (i.e. you can't have support for both x11 and wayland in one library)

(next release of glfw will also fix that, current master can have both at once)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants