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

v3.3: Wayland compile on OpenSUSE fails #402

Open
Jacalz opened this issue Jun 28, 2024 · 2 comments
Open

v3.3: Wayland compile on OpenSUSE fails #402

Jacalz opened this issue Jun 28, 2024 · 2 comments
Labels
bug glfw-3.3 wayland Issues specific to Wayland.

Comments

@Jacalz
Copy link
Collaborator

Jacalz commented Jun 28, 2024

I installed OpenSUSE Leap 5.6 recently and tried to build for Wayland but this resulted in the following compilation error:

image

This issue seems to come from the fact that OpenSUSE installs their Wayland headers into /usr/include/wayland, i.e. in a subdirectory compared to Fedora that places their libraries directly into the /usr/include folder.

image

@maximiliankolb
Copy link

I believe that I have a reproducer on Fedora 40 using go 1.22.5:

$ go run fyne.io/fyne/v2/cmd/fyne_demo@latest
# github.com/go-gl/glfw/v3.3/glfw
In file included from ./glfw/src/internal.h:188,
                 from ./glfw/src/context.c:30,
                 from ../../go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20240506104042-037f3cc74f2a/c_glfw.go:4:
./glfw/src/x11_platform.h:36:10: fatal error: X11/Xcursor/Xcursor.h: No such file or directory
   36 | #include <X11/Xcursor/Xcursor.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

@Jacalz
Copy link
Collaborator Author

Jacalz commented Aug 13, 2024

@maximiliankolb I don't think so. First of all, contrary to this issue, you are compiling with X11 and not Wayland so it is not the same issue. Secondly, I've also been doing all my development on Fedora for multiple years at this stage without issues. The most likely culprit is missing dependencies. Have you followed the steps at https://docs.fyne.io/started/?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug glfw-3.3 wayland Issues specific to Wayland.
Projects
None yet
Development

No branches or pull requests

2 participants