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

Add Wayland deps to install commands #14

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
22 changes: 13 additions & 9 deletions started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,21 +102,23 @@ The steps for installing with MSYS2 (recommended) are as follows:

* You will need to install Go, gcc and the graphics library header files using your package manager, one of the following commands will probably work.
* **Debian / Ubuntu:**
`sudo apt-get install golang gcc libgl1-mesa-dev xorg-dev`
`sudo apt-get install golang gcc libgl1-mesa-dev xorg-dev libxkbcommon-dev`
* **Fedora:**
`sudo dnf install golang golang-misc gcc libXcursor-devel libXrandr-devel mesa-libGL-devel libXi-devel libXinerama-devel libXxf86vm-devel`
`sudo dnf install golang golang-misc gcc libXcursor-devel libXrandr-devel mesa-libGL-devel libXi-devel libXinerama-devel libXxf86vm-devel libxkbcommon-devel wayland-devel`
* **Arch Linux:**
`sudo pacman -S go xorg-server-devel libxcursor libxrandr libxinerama libxi`
`sudo pacman -S go xorg-server-devel libxcursor libxrandr libxinerama libxi libxkbcommon`
* **Solus:**
`sudo eopkg it -c system.devel golang mesalib-devel libxrandr-devel libxcursor-devel libxi-devel libxinerama-devel`
`sudo eopkg it -c system.devel golang mesalib-devel libxrandr-devel libxcursor-devel libxi-devel libxinerama-devel libxkbcommon-devel`
* **openSUSE:**
`sudo zypper install go gcc libXcursor-devel libXrandr-devel Mesa-libGL-devel libXi-devel libXinerama-devel libXxf86vm-devel`
`sudo zypper install go gcc libXcursor-devel libXrandr-devel Mesa-libGL-devel libXi-devel libXinerama-devel libXxf86vm-devel libxkbcommon-devel`
* **Void Linux:**
`sudo xbps-install -S go base-devel xorg-server-devel libXrandr-devel libXcursor-devel libXinerama-devel`
`sudo xbps-install -S go base-devel xorg-server-devel libXrandr-devel libXcursor-devel libXinerama-devel libxkbcommon-devel wayland-devel`
* **Alpine Linux**
`sudo apk add go gcc libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev linux-headers mesa-dev`
`sudo apk add go gcc libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev linux-headers mesa-dev libxkbcommon-dev wayland-dev`
* **NixOS**
`nix-shell -p libGL pkg-config xorg.libX11.dev xorg.libXcursor xorg.libXi xorg.libXinerama xorg.libXrandr xorg.libXxf86vm`
`nix-shell -p libGL pkg-config xorg.libX11.dev xorg.libXcursor xorg.libXi xorg.libXinerama xorg.libXrandr xorg.libXxf86vm libxkbcommon wayland`

**NOTE:** Some Wayland compositors (Gnome's compositor Mutter etc.) do not support server side decorations resulting in Fyne applications showing up without window borders. Installing `libdecor` should solve these issues.
Copy link
Member

Choose a reason for hiding this comment

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

This is a runtime and not a compile-time issue so I'm not sure it belongs here. Or maybe it does but should also appear in the troubleshooting page?

Copy link
Member Author

Choose a reason for hiding this comment

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

From what I can tell, it is a bit of both. You can install it either at compile time or runtime. I have a vague recollection that I got better borders with -devel packages than just using it at runtime but I'll check. Adding it to troubleshooting is a good idea but I think it is worth having here as well.


</div>
</div>
Expand All @@ -125,7 +127,9 @@ The steps for installing with MSYS2 (recommended) are as follows:
<div style="text-align: left" markdown="1">

* You will need to install Go, gcc and the graphics library header files using the package manager.
* `sudo apt-get install golang gcc libegl1-mesa-dev xorg-dev`
* `sudo apt-get install golang gcc libegl1-mesa-dev xorg-dev libxkbcommon-dev`

**NOTE:** Some Wayland compositors (Gnome's compositor Mutter etc.) do not support server side decorations resulting in Fyne applications showing up without window borders. Installing `libdecor` should solve these issues.
Copy link
Member

Choose a reason for hiding this comment

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

Raspberry Pi now uses Wayfire which seems to support server side rendering. So this should not be needed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes but you can also install something like Ubuntu 24.04 om Raspberry Pi and that ides Gnome. Maybe the RPi tab (which just checks arm64 right?) needs to be updated with more distribution options?


</div>
</div>
Expand Down