I looked at the python article in the wiki and decided to use a virtual environment. With some trial and error I also found several dependecies that are missing from my system so currently I am doing something like this in a terminal:
but that fails with the following error from meason (run by pip):
The Meson build system
Version: 0.57.1
Source dir: /tmp/pip-req-build-lw5mvmys
Build dir: /tmp/pip-req-build-lw5mvmys/build
Build type: native build
Project name: pywm
Project version: 0.1.0
C compiler for the host machine: cc (gcc 10.3.0 "gcc (GCC) 10.3.0")
C linker for the host machine: cc ld.bfd 2.35.2
Host machine cpu family: x86_64
Host machine cpu: x86_64
|Executing subproject wlroots method meson
|
|Project name: wlroots
|Project version: 0.15.0
|C compiler for the host machine: cc (gcc 10.3.0 "gcc (GCC) 10.3.0")
|C linker for the host machine: cc ld.bfd 2.35.2
|Compiler for C supports arguments -Wundef: YES
|Compiler for C supports arguments -Wlogical-op: YES
|Compiler for C supports arguments -Wmissing-include-dirs: YES
|Compiler for C supports arguments -Wold-style-definition: YES
|Compiler for C supports arguments -Wpointer-arith: YES
|Compiler for C supports arguments -Winit-self: YES
|Compiler for C supports arguments -Wstrict-prototypes: YES
|Compiler for C supports arguments -Wimplicit-fallthrough=2: YES
|Compiler for C supports arguments -Wendif-labels: YES
|Compiler for C supports arguments -Wstrict-aliasing=2: YES
|Compiler for C supports arguments -Woverflow: YES
|Compiler for C supports arguments -Wmissing-prototypes: YES
|Compiler for C supports arguments -Walloca: YES
|Compiler for C supports arguments -Wno-missing-braces: YES
|Compiler for C supports arguments -Wno-missing-field-initializers: YES
|Compiler for C supports arguments -Wno-unused-parameter: YES
|WARNING: Project targeting '>=0.56.0' but tried to use feature deprecated since '0.56.0': meson.build_root. use meson.current_build_dir instead.
|Compiler for C supports arguments -fmacro-prefix-map=/prefix/to/hide=: YES
|Found pkg-config: /nix/store/0hdlrnn0n1k82bd4vz2gkz9j4b5iygcw-pkg-config-0.29.2/bin/pkg-config (0.29.2)
|Found CMake: /nix/store/mnq9fvg9yqan4g1pgis01l0mqfkihpqs-cmake-3.21.2/bin/cmake (3.21.2)
|Run-time dependency wayland-server found: NO (tried pkgconfig and cmake)
subprojects/wlroots/meson.build:97:0: ERROR: Dependency "wayland-server" not found, tried pkgconfig and cmake
A full log can be found at /tmp/pip-req-build-lw5mvmys/build/meson-logs/meson-log.txt
If I add --no-clean to the pip command I can read the log file but it does not have much more info.
I did only find a derivation libsForQt5.kwayland-server but adding that to the shell
does not help. I also found lib/libwayland-server.so in the wayland
derivation but that should already be part of my shell, pkg-config can not
find it though.
I assume I need to tell pkg-config where libwayland-server is. How do I do
that? (Or how do I compile the pywm thing in general?)
I just stumbled upon this thread now, a bit late - I’m the creator of newm.
In the meantime I switched my machines to NixOS; so newm now comes with a flake.nix, which should make installing (or running it) a lot easier on NixOS: