Open mooreye opened 1 year ago
Can this be looked into?
I managed to reproduce on my end. Mouse focus is properly given to gedit but the keyboard focus remains in nautilus.
Can you try to reproduce on master?
I managed to reproduce on my end. Mouse focus is properly given to gedit but the keyboard focus remains in nautilus.
Can you try to reproduce on master?
I'm having trouble compiling Sway in a debian 12 docker.
I installed deps with
apt build-dep sway
then did this
https://github.com/swaywm/sway/wiki/Development-Setup#compiling-as-a-subproject
but meson build/
gives me
The Meson build system
Version: 1.0.1
Source dir: /root/sway
Build dir: /root/sway/build
Build type: native build
Project name: sway
Project version: 1.9-dev
C compiler for the host machine: cc (gcc 12.2.0 "cc (Debian 12.2.0-14) 12.2.0")
C linker for the host machine: cc ld.bfd 2.40
Host machine cpu family: x86_64
Host machine cpu: x86_64
Executing subproject wlroots
wlroots| Project name: wlroots
wlroots| Project version: 0.18.0-dev
wlroots| C compiler for the host machine: cc (gcc 12.2.0 "cc (Debian 12.2.0-14) 12.2.0")
wlroots| C linker for the host machine: cc ld.bfd 2.40
wlroots| Compiler for C supports arguments -Wundef: YES
wlroots| Compiler for C supports arguments -Wlogical-op: YES
wlroots| Compiler for C supports arguments -Wmissing-include-dirs: YES
wlroots| Compiler for C supports arguments -Wold-style-definition: YES
wlroots| Compiler for C supports arguments -Wpointer-arith: YES
wlroots| Compiler for C supports arguments -Winit-self: YES
wlroots| Compiler for C supports arguments -Wstrict-prototypes: YES
wlroots| Compiler for C supports arguments -Wimplicit-fallthrough=2: YES
wlroots| Compiler for C supports arguments -Wendif-labels: YES
wlroots| Compiler for C supports arguments -Wstrict-aliasing=2: YES
wlroots| Compiler for C supports arguments -Woverflow: YES
wlroots| Compiler for C supports arguments -Wmissing-prototypes: YES
wlroots| Compiler for C supports arguments -Walloca: YES
wlroots| Compiler for C supports arguments -Wno-missing-braces: YES
wlroots| Compiler for C supports arguments -Wno-missing-field-initializers: YES
wlroots| Compiler for C supports arguments -Wno-unused-parameter: YES
wlroots| Compiler for C supports arguments -fmacro-prefix-map=/prefix/to/hide=: YES
wlroots| Found pkg-config: /usr/bin/pkg-config (1.8.1)
wlroots| Dependency wayland-server found: NO found 1.21.0 but need: '>=1.22'
wlroots| Did not find CMake 'cmake'
wlroots| Found CMake: NO
wlroots| Run-time dependency wayland-server found: NO (tried pkgconfig and cmake)
wlroots| Looking for a fallback subproject for the dependency wayland-server
wlroots| subprojects/wlroots/meson.build:105:0: Exception: Neither a subproject directory nor a wayland.wrap file was found.
Subproject subprojects/wlroots is buildable: NO (disabling)
Dependency wlroots found: NO found 0.15.1 but need: '>=0.18.0' ; matched: '<0.19.0'
Run-time dependency wlroots found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency wlroots
meson.build:47:0: ERROR: Subproject "subprojects/wlroots" required but not found.
A full log can be found at /root/sway/build/meson-logs/meson-log.txt
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
Mentioned log file:
Build started at 2024-01-24T23:54:50.403014
Main binary: /usr/bin/python3
Build Options:
Python system: Linux
The Meson build system
Version: 1.0.1
Source dir: /root/sway
Build dir: /root/sway/build
Build type: native build
Project name: sway
Project version: 1.9-dev
-----
Detecting compiler via: cc --version
compiler returned <Popen: returncode: 0 args: ['cc', '--version']>
compiler stdout:
cc (Debian 12.2.0-14) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
compiler stderr:
Running command: cc -E -dM -
-----
Detecting linker via: cc -Wl,--version
linker returned <Popen: returncode: 0 args: ['cc', '-Wl,--version']>
linker stdout:
GNU ld (GNU Binutils for Debian) 2.40
Copyright (C) 2023 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
linker stderr:
collect2 version 12.2.0
/usr/bin/ld -plugin /usr/lib/gcc/x86_64-linux-gnu/12/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/12/lto-wrapper -plugin-opt=-fresolution=/tmp/ccl9sS04.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/12/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/12 -L/usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/12/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/12/../../.. --version -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/12/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/crtn.o
Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc sanitycheckc.c -o sanitycheckc.exe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:
-----
Sanity check compile stderr:
-----
Running test binary command: /root/sway/build/meson-private/sanitycheckc.exe
C compiler for the host machine: cc (gcc 12.2.0 "cc (Debian 12.2.0-14) 12.2.0")
C linker for the host machine: cc ld.bfd 2.40
-----
Detecting compiler via: cc --version
compiler returned <Popen: returncode: 0 args: ['cc', '--version']>
compiler stdout:
cc (Debian 12.2.0-14) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
compiler stderr:
Running command: cc -E -dM -
-----
Detecting linker via: cc -Wl,--version
linker returned <Popen: returncode: 0 args: ['cc', '-Wl,--version']>
linker stdout:
GNU ld (GNU Binutils for Debian) 2.40
Copyright (C) 2023 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
linker stderr:
collect2 version 12.2.0
/usr/bin/ld -plugin /usr/lib/gcc/x86_64-linux-gnu/12/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/12/lto-wrapper -plugin-opt=-fresolution=/tmp/cc8meNXH.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/12/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/12 -L/usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/12/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/12/../../.. --version -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/12/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/crtn.o
Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc sanitycheckc.c -o sanitycheckc.exe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:
-----
Sanity check compile stderr:
-----
Running test binary command: /root/sway/build/meson-private/sanitycheckc.exe
C compiler for the build machine: cc (gcc 12.2.0 "cc (Debian 12.2.0-14) 12.2.0")
C linker for the build machine: cc ld.bfd 2.40
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86_64
Target machine cpu: x86_64
Executing subproject wlroots
Project name: wlroots
Project version: 0.18.0-dev
C compiler for the host machine: cc (gcc 12.2.0 "cc (Debian 12.2.0-14) 12.2.0")
C linker for the host machine: cc ld.bfd 2.40
C compiler for the build machine: cc (gcc 12.2.0 "cc (Debian 12.2.0-14) 12.2.0")
C linker for the build machine: cc ld.bfd 2.40
Running compile:
Working directory: /root/sway/build/meson-private/tmpgcb66_7t
Command line: cc /root/sway/build/meson-private/tmpgcb66_7t/testfile.c -o /root/sway/build/meson-private/tmpgcb66_7t/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -Wundef
Code:
extern int i;
int i;
Compiler stdout:
Compiler stderr:
Compiler for C supports arguments -Wundef: YES
Running compile:
Working directory: /root/sway/build/meson-private/tmp9z98h11i
Command line: cc /root/sway/build/meson-private/tmp9z98h11i/testfile.c -o /root/sway/build/meson-private/tmp9z98h11i/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -Wlogical-op
Code:
extern int i;
int i;
Compiler stdout:
Compiler stderr:
Compiler for C supports arguments -Wlogical-op: YES
Running compile:
Working directory: /root/sway/build/meson-private/tmpk52wy5xa
Command line: cc /root/sway/build/meson-private/tmpk52wy5xa/testfile.c -o /root/sway/build/meson-private/tmpk52wy5xa/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -Wmissing-include-dirs
Code:
extern int i;
int i;
Compiler stdout:
Compiler stderr:
Compiler for C supports arguments -Wmissing-include-dirs: YES
Running compile:
Working directory: /root/sway/build/meson-private/tmpfpyg28r_
Command line: cc /root/sway/build/meson-private/tmpfpyg28r_/testfile.c -o /root/sway/build/meson-private/tmpfpyg28r_/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -Wold-style-definition
Code:
extern int i;
int i;
Compiler stdout:
Compiler stderr:
Compiler for C supports arguments -Wold-style-definition: YES
Running compile:
Working directory: /root/sway/build/meson-private/tmpx13v300o
Command line: cc /root/sway/build/meson-private/tmpx13v300o/testfile.c -o /root/sway/build/meson-private/tmpx13v300o/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -Wpointer-arith
Code:
extern int i;
int i;
Compiler stdout:
Compiler stderr:
Compiler for C supports arguments -Wpointer-arith: YES
Running compile:
Working directory: /root/sway/build/meson-private/tmp2lm2hbcm
Command line: cc /root/sway/build/meson-private/tmp2lm2hbcm/testfile.c -o /root/sway/build/meson-private/tmp2lm2hbcm/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -Winit-self
Code:
extern int i;
int i;
Compiler stdout:
Compiler stderr:
Compiler for C supports arguments -Winit-self: YES
Running compile:
Working directory: /root/sway/build/meson-private/tmpbd91m033
Command line: cc /root/sway/build/meson-private/tmpbd91m033/testfile.c -o /root/sway/build/meson-private/tmpbd91m033/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -Wstrict-prototypes
Code:
extern int i;
int i;
Compiler stdout:
Compiler stderr:
Compiler for C supports arguments -Wstrict-prototypes: YES
Running compile:
Working directory: /root/sway/build/meson-private/tmp555ynzqe
Command line: cc /root/sway/build/meson-private/tmp555ynzqe/testfile.c -o /root/sway/build/meson-private/tmp555ynzqe/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -Wimplicit-fallthrough=2
Code:
extern int i;
int i;
Compiler stdout:
Compiler stderr:
Compiler for C supports arguments -Wimplicit-fallthrough=2: YES
Running compile:
Working directory: /root/sway/build/meson-private/tmpqf9yor33
Command line: cc /root/sway/build/meson-private/tmpqf9yor33/testfile.c -o /root/sway/build/meson-private/tmpqf9yor33/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -Wendif-labels
Code:
extern int i;
int i;
Compiler stdout:
Compiler stderr:
Compiler for C supports arguments -Wendif-labels: YES
Running compile:
Working directory: /root/sway/build/meson-private/tmpewnyaul4
Command line: cc /root/sway/build/meson-private/tmpewnyaul4/testfile.c -o /root/sway/build/meson-private/tmpewnyaul4/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -Wstrict-aliasing=2
Code:
extern int i;
int i;
Compiler stdout:
Compiler stderr:
Compiler for C supports arguments -Wstrict-aliasing=2: YES
Running compile:
Working directory: /root/sway/build/meson-private/tmpqczi7msl
Command line: cc /root/sway/build/meson-private/tmpqczi7msl/testfile.c -o /root/sway/build/meson-private/tmpqczi7msl/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -Woverflow
Code:
extern int i;
int i;
Compiler stdout:
Compiler stderr:
Compiler for C supports arguments -Woverflow: YES
Running compile:
Working directory: /root/sway/build/meson-private/tmp205tha10
Command line: cc /root/sway/build/meson-private/tmp205tha10/testfile.c -o /root/sway/build/meson-private/tmp205tha10/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -Wmissing-prototypes
Code:
extern int i;
int i;
Compiler stdout:
Compiler stderr:
Compiler for C supports arguments -Wmissing-prototypes: YES
Running compile:
Working directory: /root/sway/build/meson-private/tmpst_ykqls
Command line: cc /root/sway/build/meson-private/tmpst_ykqls/testfile.c -o /root/sway/build/meson-private/tmpst_ykqls/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -Walloca
Code:
extern int i;
int i;
Compiler stdout:
Compiler stderr:
Compiler for C supports arguments -Walloca: YES
Running compile:
Working directory: /root/sway/build/meson-private/tmpjyu5xamn
Command line: cc /root/sway/build/meson-private/tmpjyu5xamn/testfile.c -o /root/sway/build/meson-private/tmpjyu5xamn/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -Wmissing-braces -Wno-missing-braces
Code:
extern int i;
int i;
Compiler stdout:
Compiler stderr:
Compiler for C supports arguments -Wno-missing-braces: YES
Running compile:
Working directory: /root/sway/build/meson-private/tmpnrsidkhr
Command line: cc /root/sway/build/meson-private/tmpnrsidkhr/testfile.c -o /root/sway/build/meson-private/tmpnrsidkhr/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -Wmissing-field-initializers -Wno-missing-field-initializers
Code:
extern int i;
int i;
Compiler stdout:
Compiler stderr:
Compiler for C supports arguments -Wno-missing-field-initializers: YES
Running compile:
Working directory: /root/sway/build/meson-private/tmpiymsesa6
Command line: cc /root/sway/build/meson-private/tmpiymsesa6/testfile.c -o /root/sway/build/meson-private/tmpiymsesa6/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -Wunused-parameter -Wno-unused-parameter
Code:
extern int i;
int i;
Compiler stdout:
Compiler stderr:
Compiler for C supports arguments -Wno-unused-parameter: YES
Running compile:
Working directory: /root/sway/build/meson-private/tmp4qlw5xc1
Command line: cc /root/sway/build/meson-private/tmp4qlw5xc1/testfile.c -o /root/sway/build/meson-private/tmp4qlw5xc1/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 -fmacro-prefix-map=/prefix/to/hide=
Code:
extern int i;
int i;
Compiler stdout:
Compiler stderr:
Compiler for C supports arguments -fmacro-prefix-map=/prefix/to/hide=: YES
Pkg-config binary for 1 is not cached.
Pkg-config binary missing from cross or native file, or env var undefined.
Trying a default Pkg-config fallback at pkg-config
Found pkg-config: /usr/bin/pkg-config (1.8.1)
Determining dependency 'wayland-server' with pkg-config executable '/usr/bin/pkg-config'
env[PKG_CONFIG_PATH]:
Called `/usr/bin/pkg-config --modversion wayland-server` -> 0
stdout:
1.21.0
-----------
env[PKG_CONFIG_PATH]:
Called `/usr/bin/pkg-config --cflags wayland-server` -> 0
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]:
Called `/usr/bin/pkg-config --libs wayland-server` -> 0
stdout:
-L/usr/lib/x86_64-linux-gnu -lwayland-server
-----------
env[PKG_CONFIG_PATH]:
Called `/usr/bin/pkg-config --libs wayland-server` -> 0
stdout:
-lwayland-server
-----------
Running compile:
Working directory: /root/sway/build/meson-private/tmpbjqcfl1z
Command line: cc /root/sway/build/meson-private/tmpbjqcfl1z/testfile.c -o /root/sway/build/meson-private/tmpbjqcfl1z/output.exe -D_FILE_OFFSET_BITS=64 -O0
Code:
#include<stdio.h>
int main(void) {
printf("%ld\n", (long)(sizeof(void *)));
return 0;
}
Compiler stdout:
Compiler stderr:
Program stdout:
8
Program stderr:
Running compile:
Working directory: /root/sway/build/meson-private/tmp37mizys4
Command line: cc /root/sway/build/meson-private/tmp37mizys4/testfile.c -o /root/sway/build/meson-private/tmp37mizys4/output.obj -c -D_FILE_OFFSET_BITS=64 -O0 --print-search-dirs
Code:
Compiler stdout:
install: /usr/lib/gcc/x86_64-linux-gnu/12/
programs: =/usr/lib/gcc/x86_64-linux-gnu/12/:/usr/lib/gcc/x86_64-linux-gnu/12/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/12/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/bin/x86_64-linux-gnu/12/:/usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/bin/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/bin/
libraries: =/usr/lib/gcc/x86_64-linux-gnu/12/:/usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/lib/x86_64-linux-gnu/12/:/usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/lib/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/12/:/usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/12/../../../../lib/:/lib/x86_64-linux-gnu/12/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/12/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/lib/:/usr/lib/gcc/x86_64-linux-gnu/12/../../../:/lib/:/usr/lib/
Compiler stderr:
Dependency wayland-server found: NO found 1.21.0 but need: '>=1.22'
CMake binary for 1 is not cached
CMake binary missing from cross or native file, or env var undefined.
Trying a default CMake fallback at cmake
Did not find CMake 'cmake'
Found CMake: NO
CMake binary for machine 1 not found. Giving up.
Run-time dependency wayland-server found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency wayland-server
subprojects/wlroots/meson.build:105:0: Exception: Neither a subproject directory nor a wayland.wrap file was found.
Subproject subprojects/wlroots is buildable: NO (disabling)
Pkg-config binary for 1 is cached.
Determining dependency 'wlroots' with pkg-config executable '/usr/bin/pkg-config'
env[PKG_CONFIG_PATH]:
Called `/usr/bin/pkg-config --modversion wlroots` -> 0
stdout:
0.15.1
-----------
env[PKG_CONFIG_PATH]:
Called `/usr/bin/pkg-config --cflags wlroots` -> 0
stdout:
-I/usr/include/libdrm -I/usr/include/pixman-1
-----------
env[PKG_CONFIG_ALLOW_SYSTEM_LIBS]: 1
env[PKG_CONFIG_PATH]:
Called `/usr/bin/pkg-config --libs wlroots` -> 0
stdout:
-L/usr/lib/x86_64-linux-gnu -lwlroots
-----------
env[PKG_CONFIG_PATH]:
Called `/usr/bin/pkg-config --libs wlroots` -> 0
stdout:
-lwlroots
-----------
Dependency wlroots found: NO found 0.15.1 but need: '>=0.18.0' ; matched: '<0.19.0'
CMake binary for 1 is cached as not found
CMake binary for machine 1 not found. Giving up.
Run-time dependency wlroots found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency wlroots
meson.build:47:0: ERROR: Subproject "subprojects/wlroots" required but not found.
I get same error in Fedora 39 docker.
You need to clone the dependencies in the subprojects
folder if your system doesn't provide the required versions.
See this wiki page https://github.com/swaywm/sway/wiki/Development-Setup#compiling-as-a-subproject
You need to clone the dependencies in the
subprojects
folder if your system doesn't provide the required versions.See this wiki page https://github.com/swaywm/sway/wiki/Development-Setup#compiling-as-a-subproject
I did these commands:
# Clone repositories
git clone https://github.com/swaywm/sway.git
cd sway
git clone https://gitlab.freedesktop.org/wlroots/wlroots.git subprojects/wlroots
and yet I get the error
You need to clone the dependencies in the
subprojects
folder if your system doesn't provide the required versions.See this wiki page https://github.com/swaywm/sway/wiki/Development-Setup#compiling-as-a-subproject
Can you please help me with this? I'm cloning the commands currectly one by one and still get the error I described at meson build/
.
You're probably missing dependencies for wlroots (see 1). You have to install them through your package manager. For dependencies that are out of date (version provided by the system is not high enough to satisfy the dependency), you have to follow the same process as for wlroots and clone the repo into the subprojects
folder.
On debian 12 I had to add the following repos because the versions provided by the system were not up to date
git clone https://gitlab.freedesktop.org/mesa/drm.git subprojects/libdrm
git clone https://gitlab.freedesktop.org/wayland/wayland.git subprojects/wayland
git clone https://gitlab.freedesktop.org/wayland/wayland-protocols.git subprojects/wayland-protocols
I'd be grateful if someone else can check this for me since I lack the skills for compiling and installing a master
sway.
Please fill out the following:
This also happens with any other app than gedit.
Happens with default sway config from /etc/sway/config in Fedora 38