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

Debian build instructions incomplete #313

Open
probonopd opened this issue Dec 22, 2024 · 5 comments
Open

Debian build instructions incomplete #313

probonopd opened this issue Dec 22, 2024 · 5 comments

Comments

@probonopd
Copy link

probonopd commented Dec 22, 2024

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

@Dami-star
Copy link
Contributor

On Debian you may need to manually package and compile the wlr-protocols:
https://github.com/deepin-community/wlr-protocols/tree/master

@probonopd
Copy link
Author

Thanks, doing that I was able to build this successfully.
It should be put into the build documentation please.

And -DDISABLE_WLR_PROTOCOLS=1 does not work, is it broken? THen it should be removed.

Thank you very much for this useful library.

@zccrs
Copy link
Contributor

zccrs commented Dec 22, 2024

Thanks, doing that I was able to build this successfully. It should be put into the build documentation please.

And -DDISABLE_WLR_PROTOCOLS=1 does not work, is it broken? THen it should be removed.

Thank you very much for this useful library.

I'm tested the DISABLE_WLR_PROTOCOLS, it can work on ArchLinux.
For the Debian error, you can test this PR: #314

@probonopd
Copy link
Author

probonopd commented Dec 22, 2024

I think that it would be best if a GitHub Action could be made for Debian GNU/Linux 12 (bookworm). This way, everyone could see how it is actually compiled on Debian. Thanks for considering!

@zccrs
Copy link
Contributor

zccrs commented Dec 23, 2024

I think that it would be best if a GitHub Action could be made for Debian GNU/Linux 12 (bookworm). This way, everyone could see how it is actually compiled on Debian. Thanks for considering!

Good idea, would you like open a PR for the GitHub action?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants