From 43fa115797eadc9973c71c65dbbdefbd9f6b3654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20Alz=C3=A9n?= Date: Mon, 27 May 2024 23:39:08 +0200 Subject: [PATCH 1/9] Add Wayland deps to Fedora --- started/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/started/index.md b/started/index.md index 03d5dac..b5ae55b 100644 --- a/started/index.md +++ b/started/index.md @@ -104,7 +104,7 @@ The steps for installing with MSYS2 (recommended) are as follows: * **Debian / Ubuntu:** `sudo apt-get install golang gcc libgl1-mesa-dev xorg-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 libdecor-devel` * **Arch Linux:** `sudo pacman -S go xorg-server-devel libxcursor libxrandr libxinerama libxi` * **Solus:** From a2704826a0073113021b2518dd761495b3ca8b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20Alz=C3=A9n?= Date: Mon, 27 May 2024 23:46:22 +0200 Subject: [PATCH 2/9] Untested addition of Wayland deps on Linux Fedora has been tested. Others have not. --- started/index.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/started/index.md b/started/index.md index b5ae55b..5c2bcfd 100644 --- a/started/index.md +++ b/started/index.md @@ -102,21 +102,21 @@ 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 libdecor-0-dev` * **Fedora:** `sudo dnf install golang golang-misc gcc libXcursor-devel libXrandr-devel mesa-libGL-devel libXi-devel libXinerama-devel libXxf86vm-devel libxkbcommon-devel libdecor-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 libdecor` * **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 libdecor-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 libdecor-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 libdecor-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 libdecor-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 libdecor` From 5e5107436036f755557c1bcac50e4c1bc1e9956a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacob=20Alz=C3=A9n?= Date: Mon, 27 May 2024 23:49:41 +0200 Subject: [PATCH 3/9] Add the change for RPI as well --- started/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/started/index.md b/started/index.md index 5c2bcfd..cab6ec4 100644 --- a/started/index.md +++ b/started/index.md @@ -125,7 +125,7 @@ The steps for installing with MSYS2 (recommended) are as follows:
* 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 libdecor-0-dev`
From 922201af37459e6e5018b7d5f87d02e8218449fe Mon Sep 17 00:00:00 2001 From: Jacob Date: Fri, 28 Jun 2024 22:07:47 +0200 Subject: [PATCH 4/9] Remove libdecor by default and add note further down --- started/index.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/started/index.md b/started/index.md index cab6ec4..b1a0dba 100644 --- a/started/index.md +++ b/started/index.md @@ -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 libxkbcommon-dev libdecor-0-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 libxkbcommon-devel libdecor-devel` +`sudo dnf install golang golang-misc gcc libXcursor-devel libXrandr-devel mesa-libGL-devel libXi-devel libXinerama-devel libXxf86vm-devel libxkbcommon-devel` * **Arch Linux:** -`sudo pacman -S go xorg-server-devel libxcursor libxrandr libxinerama libxi libxkbcommon libdecor` +`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 libxkbcommon-devel libdecor-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 libxkbcommon-devel libdecor-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 libxkbcommon-devel libdecor-devel` +`sudo xbps-install -S go base-devel xorg-server-devel libXrandr-devel libXcursor-devel libXinerama-devel libxkbcommon-devel` * **Alpine Linux** -`sudo apk add go gcc libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev linux-headers mesa-dev libxkbcommon-dev libdecor-dev` +`sudo apk add go gcc libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev linux-headers mesa-dev libxkbcommon-dev` * **NixOS** -`nix-shell -p libGL pkg-config xorg.libX11.dev xorg.libXcursor xorg.libXi xorg.libXinerama xorg.libXrandr xorg.libXxf86vm libxkbcommon libdecor` +`nix-shell -p libGL pkg-config xorg.libX11.dev xorg.libXcursor xorg.libXi xorg.libXinerama xorg.libXrandr xorg.libXxf86vm libxkbcommon` + +**NOTE:** Some Wayland compositors (Gnome's compositor Mutter etc.) do not support server side decorations and Fyne applications may show up without window borders in that case. Installing `libdecor` should solve these issues. From 6d39f9ba3c6e01f2d5682f002b1d5455af3df1d9 Mon Sep 17 00:00:00 2001 From: Jacob Date: Fri, 28 Jun 2024 22:23:47 +0200 Subject: [PATCH 5/9] Slightly better wording --- started/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/started/index.md b/started/index.md index b1a0dba..e174d0b 100644 --- a/started/index.md +++ b/started/index.md @@ -104,7 +104,7 @@ The steps for installing with MSYS2 (recommended) are as follows: * **Debian / Ubuntu:** `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 libxkbcommon-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 libxkbcommon` * **Solus:** @@ -118,7 +118,7 @@ The steps for installing with MSYS2 (recommended) are as follows: * **NixOS** `nix-shell -p libGL pkg-config xorg.libX11.dev xorg.libXcursor xorg.libXi xorg.libXinerama xorg.libXrandr xorg.libXxf86vm libxkbcommon` -**NOTE:** Some Wayland compositors (Gnome's compositor Mutter etc.) do not support server side decorations and Fyne applications may show up without window borders in that case. Installing `libdecor` should solve these issues. +**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. From 2e897cd9ab8e0339eb4a5770675fbe9aca618283 Mon Sep 17 00:00:00 2001 From: Jacob Date: Fri, 28 Jun 2024 22:34:37 +0200 Subject: [PATCH 6/9] Update RPi docs as well --- started/index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/started/index.md b/started/index.md index e174d0b..26732ae 100644 --- a/started/index.md +++ b/started/index.md @@ -127,7 +127,9 @@ The steps for installing with MSYS2 (recommended) are as follows:
* 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 libxkbcommon-dev libdecor-0-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.
From 92b17683ce969bf34bba2ada958d72b26a2e6f78 Mon Sep 17 00:00:00 2001 From: Jacob Date: Fri, 28 Jun 2024 23:20:49 +0200 Subject: [PATCH 7/9] Make sure that Wayland development headers are installed --- started/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/started/index.md b/started/index.md index 26732ae..732ec58 100644 --- a/started/index.md +++ b/started/index.md @@ -112,11 +112,11 @@ The steps for installing with MSYS2 (recommended) are as follows: * **openSUSE:** `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 libxkbcommon-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 libxkbcommon-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 libxkbcommon` +`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. From d76b76101c26c600758d3a32ead58df9bfc5fea7 Mon Sep 17 00:00:00 2001 From: Jacob Date: Fri, 28 Jun 2024 23:22:56 +0200 Subject: [PATCH 8/9] Install Wayland dev headers on Ubuntu as well --- started/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/started/index.md b/started/index.md index 732ec58..8ca2e51 100644 --- a/started/index.md +++ b/started/index.md @@ -102,7 +102,7 @@ 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 libxkbcommon-dev` +`sudo apt-get install golang gcc libgl1-mesa-dev xorg-dev libxkbcommon-dev libwayland-dev` * **Fedora:** `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:** @@ -127,7 +127,7 @@ The steps for installing with MSYS2 (recommended) are as follows:
* 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 libxkbcommon-dev` +* `sudo apt-get install golang gcc libegl1-mesa-dev xorg-dev libxkbcommon-dev libwayland-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. From 431a5907a2d5d33d996dd3f453eea40e2574a558 Mon Sep 17 00:00:00 2001 From: Jacob Date: Fri, 28 Jun 2024 23:24:57 +0200 Subject: [PATCH 9/9] Revert "Install Wayland dev headers on Ubuntu as well" This reverts commit d76b76101c26c600758d3a32ead58df9bfc5fea7. Wayland builds already work in CI without installing these. --- started/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/started/index.md b/started/index.md index 8ca2e51..732ec58 100644 --- a/started/index.md +++ b/started/index.md @@ -102,7 +102,7 @@ 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 libxkbcommon-dev libwayland-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 libxkbcommon-devel wayland-devel` * **Arch Linux:** @@ -127,7 +127,7 @@ The steps for installing with MSYS2 (recommended) are as follows:
* 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 libxkbcommon-dev libwayland-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.