Skip to content

Add wayland development dependency - #74

Merged
andydotxyz merged 5 commits into
fyne-io:mainfrom
sdassow:fix/wayland-fallout
Jul 30, 2026
Merged

Add wayland development dependency#74
andydotxyz merged 5 commits into
fyne-io:mainfrom
sdassow:fix/wayland-fallout

Conversation

@sdassow

@sdassow sdassow commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Trying to address:

# github.com/go-gl/glfw/v3.4/glfw
In file included from /go/pkg/mod/github.com/go-gl/glfw/v3.4/glfw@v0.1.0-pre.1.0.20260707082822-2a407d02d01a/native_linbsd_wayland.go:10:
./glfw/include/GLFW/glfw3native.h:144:12: fatal error: 'EGL/egl.h' file not found
  144 |   #include <EGL/egl.h>
      |            ^~~~~~~~~~~
1 error generated.

@sdassow

sdassow commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

This should also fix #72.

@sdassow

sdassow commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

The remaining issue seems to be related to ziglang/zig#17536.

@andydotxyz andydotxyz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes to two of them but no to the GLFW lib - that duplicates what we have compiled into the library.
Why was it needed?

In fact, removing it may actually fix the errors reporting duplicate definitions?

@sdassow

sdassow commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

Yes to two of them but no to the GLFW lib - that duplicates what we have compiled into the library. Why was it needed?

Wasn't, added by accident.

In fact, removing it may actually fix the errors reporting duplicate definitions?

It's missing definitions/references, and the two things I'm thinking of trying is either changing the -target for the zig call in fyne-cross so it pins a specific libc version for linux, or specifying the right -std=c?? version.

@sdassow

sdassow commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

Setting the target glibc version in fyne-cross fixes the build for me, so we need to land fyne-io/fyne-cross#367 and trigger the pipeline again to get it all green I think.

@sdassow

sdassow commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

PR with BSD fixes pending upstream (and a glfw update when merged): go-gl/glfw#424

@andydotxyz
andydotxyz merged commit 4985424 into fyne-io:main Jul 30, 2026
34 of 48 checks passed
@sdassow
sdassow deleted the fix/wayland-fallout branch July 30, 2026 11:59
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

Successfully merging this pull request may close these issues.

2 participants