Skip to content
This repository was archived by the owner on Jul 23, 2025. It is now read-only.
This repository was archived by the owner on Jul 23, 2025. It is now read-only.

Debian build instructions incomplete #313

@probonopd

Description

@probonopd

I also had to sudo apt install libwlroots-0.18-dev.

Even then, I got

-- setup WLROOTS_VERSION: count 3, major 0, minor 18, patch 0
-- Checking for module 'wlr-protocols'
--   Package 'wlr-protocols', required by 'virtual:world', not found
CMake Error at src/CMakeLists.txt:53 (message):
  wlr-protocols not found, and `DISABLE_WLR_PROTOCOLS` set to OFF!


-- Configuring incomplete, errors occurred!

With cmake -B build -DDISABLE_WLR_PROTOCOLS=1 I get:

In file included from /usr/include/wlroots-0.18/wlr/types/wlr_output.h:18,
                 from /usr/include/wlroots-0.18/wlr/backend.h:13,
                 from /home/user/qwlroots/build/src/qwlroots_autogen/EWIEGA46WW/../../../../src/qwbackend.h:9,
                 from /home/user/qwlroots/build/src/qwlroots_autogen/EWIEGA46WW/moc_qwbackend.cpp:10,
                 from /home/user/qwlroots/build/src/qwlroots_autogen/mocs_compilation.cpp:2:
/usr/include/wlroots-0.18/wlr/types/wlr_buffer.h:171:55: error: expected primary-expression before ‘static’
  171 |         struct wlr_buffer *wlr_buffer, uint32_t color[static 4]);
      |                                                       ^~~~~~
/usr/include/wlroots-0.18/wlr/types/wlr_buffer.h:171:55: error: expected ‘]’ before ‘static’
  171 |         struct wlr_buffer *wlr_buffer, uint32_t color[static 4]);
      |                                                       ^~~~~~
      |                                                       ]
/usr/include/wlroots-0.18/wlr/types/wlr_buffer.h:171:55: error: expected ‘)’ before ‘static’
  171 |         struct wlr_buffer *wlr_buffer, uint32_t color[static 4]);
      |                                                       ^~~~~~
      |                                                       )
/usr/include/wlroots-0.18/wlr/types/wlr_buffer.h:170:47: note: to match this ‘(’
  170 | bool wlr_single_pixel_buffer_color_from_buffer(
      |                                               ^
/usr/include/wlroots-0.18/wlr/types/wlr_buffer.h:171:55: error: expected initializer before ‘static’
  171 |         struct wlr_buffer *wlr_buffer, uint32_t color[static 4]);
      |                                                       ^~~~~~
gmake[2]: *** [src/CMakeFiles/qwlroots.dir/build.make:76: src/CMakeFiles/qwlroots.dir/qwlroots_autogen/mocs_compilation.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:167: src/CMakeFiles/qwlroots.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2

How to build on Debian GNU/Linux 12 (bookworm)?

https://github.com/vioken/qwlroots/blob/4880f9a7a820fa15d67c805156a100ac6c402490/debian/control#L10C16-L10C29

This doesn't seem to exist in Debian:

https://packages.debian.org/search?keywords=wlr-protocols&searchon=names&suite=all&section=all

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions