Skip to content

How to get Fyne working on Fedora #5628

Closed as not planned
Closed as not planned
@Irooniam

Description

@Irooniam

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

I followed the instructions to get Fyne to run the "hello world" example on Fedora but I got a number of errors regarding missing library headers.

For anyone trying to run Fyne on Fedora who is getting errors such as
./glfw/src/x11_platform.h:33:10: fatal error: X11/Xlib.h: No such file or directory
./glfw/src/x11_platform.h:36:10: fatal error: X11/Xcursor/Xcursor.h: No such file or directory

You need to install the missing header files for number of X11 extensions by running
dnf install -y libX11-devel libXcursor-devel libXrandr-devel libXinerama-devel libXi-devel mesa-libGL-devel libXxf86vm-devel

After installing the missing development packages you should be able to run Fyne without issue.

Hope this helps.

How to reproduce

  1. Try to run 'hello world' go run hello.go
  2. See errors displayed such as ./glfw/include/GLFW/glfw3native.h:141:12: fatal error: GL/glx.h: No such file or directory

Screenshots

No response

Example code

go run hello.go

Fyne version

v2.5.5

Go compiler version

go1.23.6 linux/amd64

Operating system and version

Fedora release 41 (Forty One)

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    not an issueThis doesn't seem rightquestionA question has been asked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions