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

Compile error on Debian #604

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

Compile error on Debian #604

probonopd opened this issue Dec 22, 2024 · 2 comments
Assignees

Comments

@probonopd
Copy link

user@raspberrypi:~/waylib $ git submodule update --init --recursive
Submodule 'qwlroots' (https://github.com/vioken/qwlroots.git) registered for path 'qwlroots'
Cloning into '/home/user/waylib/qwlroots'...
Submodule path 'qwlroots': checked out '71bc3084d2fd8c8858b48a3f83c3b2900f8a9a16'
user@raspberrypi:~/waylib $ cmake -B build -DWITH_SUBMODULE_QWLROOTS=ON
cmake --build build
-- Create wayland protocols outputdir: /home/user/waylib/build/protocols
-- Setting wayland protocols outputdir: /home/user/waylib/build/protocols
-- Checking for module 'wlroots-0.18>=0.18.0'
--   Found wlroots-0.18, version 0.18.1
-- Checking for module 'wayland-server'
--   Found wayland-server, version 1.23.0
-- Checking for module 'pixman-1'
--   Found pixman-1, version 0.42.2
-- Checking for module 'wayland-protocols'
--   Found wayland-protocols, version 1.37
-- Checking for module 'xkbcommon'
--   Found xkbcommon, version 1.5.0
-- setup WLROOTS_VERSION: count 3, major 0, minor 18, patch 0
-- Checking for module 'wlr-protocols'
--   Found wlr-protocols, version 1.0
wlroots version=0.18.1, major=0, minor=18, patch=1
Using QWlroots from submodule
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/waylib/build
[  0%] Automatic MOC and UIC for target qwlroots
[  0%] Built target qwlroots_autogen
[  1%] Building CXX object qwlroots/src/CMakeFiles/qwlroots.dir/qwlroots_autogen/mocs_compilation.cpp.o
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/waylib/build/qwlroots/src/qwlroots_autogen/EWIEGA46WW/../../../../../qwlroots/src/qwbackend.h:9,
                 from /home/user/waylib/build/qwlroots/src/qwlroots_autogen/EWIEGA46WW/moc_qwbackend.cpp:10,
                 from /home/user/waylib/build/qwlroots/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]: *** [qwlroots/src/CMakeFiles/qwlroots.dir/build.make:76: qwlroots/src/CMakeFiles/qwlroots.dir/qwlroots_autogen/mocs_compilation.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:447: qwlroots/src/CMakeFiles/qwlroots.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
user@raspberrypi:~/waylib $ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
@zccrs
Copy link
Contributor

zccrs commented Dec 22, 2024

Hi, this issue is same as vioken/qwlroots#313?

@probonopd
Copy link
Author

I don't know. Possibly?

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