hyprwm / hyprpicker

A wlroots-compatible Wayland color picker that does not suck.
BSD 3-Clause "New" or "Revised" License
670 stars 30 forks source link

error: 'uint' has not been declared #36

Closed WhyNotHugo closed 1 year ago

WhyNotHugo commented 1 year ago
> make all
make clear
make[1]: Entering directory '/home/hugo/src/github.com/hyprwm/hyprpicker'
rm -rf build
rm -f *.o *-protocol.h *-protocol.c
make[1]: Leaving directory '/home/hugo/src/github.com/hyprwm/hyprpicker'
make protocols
make[1]: Entering directory '/home/hugo/src/github.com/hyprwm/hyprpicker'
/usr/bin/wayland-scanner private-code \
    protocols/wlr-layer-shell-unstable-v1.xml wlr-layer-shell-unstable-v1-protocol.c
/usr/bin/wayland-scanner client-header \
    protocols/wlr-layer-shell-unstable-v1.xml wlr-layer-shell-unstable-v1-protocol.h
cc -g -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function -Wno-unused-variable -Wno-unused-result -Wdeclaration-after-statement -I. -DWLR_USE_UNSTABLE -std=c99 -I/usr/include/pixman-1 -I/usr/include/elogind -I/usr/include/libdrm    -c -o wlr-layer-shell-unstable-v1-protocol.o wlr-layer-shell-unstable-v1-protocol.c
/usr/bin/wayland-scanner private-code \
    protocols/wlr-screencopy-unstable-v1.xml wlr-screencopy-unstable-v1-protocol.c
/usr/bin/wayland-scanner client-header \
    protocols/wlr-screencopy-unstable-v1.xml wlr-screencopy-unstable-v1-protocol.h
cc -g -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function -Wno-unused-variable -Wno-unused-result -Wdeclaration-after-statement -I. -DWLR_USE_UNSTABLE -std=c99 -I/usr/include/pixman-1 -I/usr/include/elogind -I/usr/include/libdrm    -c -o wlr-screencopy-unstable-v1-protocol.o wlr-screencopy-unstable-v1-protocol.c
/usr/bin/wayland-scanner private-code \
    //usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml xdg-shell-protocol.c
/usr/bin/wayland-scanner client-header \
    //usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml xdg-shell-protocol.h
cc -g -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function -Wno-unused-variable -Wno-unused-result -Wdeclaration-after-statement -I. -DWLR_USE_UNSTABLE -std=c99 -I/usr/include/pixman-1 -I/usr/include/elogind -I/usr/include/libdrm    -c -o xdg-shell-protocol.o xdg-shell-protocol.c
make[1]: Leaving directory '/home/hugo/src/github.com/hyprwm/hyprpicker'
make release
make[1]: Entering directory '/home/hugo/src/github.com/hyprwm/hyprpicker'
mkdir -p build && cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -H./ -B./build -G Ninja
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 13.1.1
-- The CXX compiler identification is GNU 13.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring hyprpicker!
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.9.5") 
-- Checking for modules 'wayland-client;wayland-protocols;cairo;pango;pangocairo;libjpeg'
--   Found wayland-client, version 1.22.0
--   Found wayland-protocols, version 1.31
--   Found cairo, version 1.17.8
--   Found pango, version 1.50.14
--   Found pangocairo, version 1.50.14
--   Found libjpeg, version 2.1.5.1
-- Configuring done (0.2s)
-- Generating done (0.0s)
-- Build files have been written to: /home/hugo/src/github.com/hyprwm/hyprpicker/build
cmake --build ./build --config Release --target all -j 10
[1/8] Building CXX object CMakeFiles/hyprpicker.dir/src/main.cpp.o
[2/8] Building CXX object CMakeFiles/hyprpicker.dir/src/hyprpicker.cpp.o
[3/8] Building CXX object CMakeFiles/hyprpicker.dir/src/helpers/Vector2D.cpp.o
[4/8] Building CXX object CMakeFiles/hyprpicker.dir/src/helpers/LayerSurface.cpp.o
[5/8] Building CXX object CMakeFiles/hyprpicker.dir/src/events/Events.cpp.o
[6/8] Building CXX object CMakeFiles/hyprpicker.dir/src/debug/Log.cpp.o
[7/8] Building CXX object CMakeFiles/hyprpicker.dir/src/clipboard/Clipboard.cpp.o
ninja: job failed: /usr/bin/c++ -DGIT_BRANCH=\"main\" -DGIT_COMMIT_HASH=\"deaca6a4d8e307d90b1f5b1033a8ea6c83b9b260\" -DGIT_COMMIT_MESSAGE="\"    core: avoid leaving garbage buffers on exit\"" -DGIT_DIRTY=\"\" -I/home/hugo/src/github.com/hyprwm/hyprpicker/. -isystem /usr/include/pango-1.0 -isystem /usr/include/harfbuzz -isystem /usr/include/cairo -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/include/freetype2 -isystem /usr/include/blkid -isystem /usr/include/libmount -isystem /usr/include/pixman-1 -isystem /usr/include/fribidi -isystem /usr/include/libpng16 -O3 -DNDEBUG -std=c++23 -DWLR_USE_UNSTABLE -Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith -pthread -MD -MT CMakeFiles/hyprpicker.dir/src/helpers/LayerSurface.cpp.o -MF CMakeFiles/hyprpicker.dir/src/helpers/LayerSurface.cpp.o.d -o CMakeFiles/hyprpicker.dir/src/helpers/LayerSurface.cpp.o -c /home/hugo/src/github.com/hyprwm/hyprpicker/src/helpers/LayerSurface.cpp
In file included from /home/hugo/src/github.com/hyprwm/hyprpicker/src/helpers/LayerSurface.cpp:3:
/home/hugo/src/github.com/hyprwm/hyprpicker/src/helpers/../events/Events.hpp:36:69: error: 'uint' has not been declared
   36 |     void handleKeyboardKeymap(void* data, wl_keyboard* wl_keyboard, uint format, int fd, uint size);
      |                                                                     ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/helpers/../events/Events.hpp:36:90: error: 'uint' has not been declared
   36 |     void handleKeyboardKeymap(void* data, wl_keyboard* wl_keyboard, uint format, int fd, uint size);
      |                                                                                          ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/helpers/../events/Events.hpp:40:68: error: 'uint' has not been declared
   40 |     void handleKeyboardEnter(void* data, wl_keyboard* wl_keyboard, uint serial, wl_surface* surface, wl_array* keys);
      |                                                                    ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/helpers/../events/Events.hpp:42:68: error: 'uint' has not been declared
   42 |     void handleKeyboardLeave(void* data, wl_keyboard* wl_keyboard, uint serial, wl_surface* surface);
      |                                                                    ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/helpers/../events/Events.hpp:44:72: error: 'uint' has not been declared
   44 |     void handleKeyboardModifiers(void* data, wl_keyboard* wl_keyboard, uint serial, uint mods_depressed, uint mods_latched, uint mods_locked, uint group);
      |                                                                        ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/helpers/../events/Events.hpp:44:85: error: 'uint' has not been declared
   44 |     void handleKeyboardModifiers(void* data, wl_keyboard* wl_keyboard, uint serial, uint mods_depressed, uint mods_latched, uint mods_locked, uint group);
      |                                                                                     ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/helpers/../events/Events.hpp:44:106: error: 'uint' has not been declared
   44 |     void handleKeyboardModifiers(void* data, wl_keyboard* wl_keyboard, uint serial, uint mods_depressed, uint mods_latched, uint mods_locked, uint group);
      |                                                                                                          ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/helpers/../events/Events.hpp:44:125: error: 'uint' has not been declared
   44 |     void handleKeyboardModifiers(void* data, wl_keyboard* wl_keyboard, uint serial, uint mods_depressed, uint mods_latched, uint mods_locked, uint group);
      |                                                                                                                             ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/helpers/../events/Events.hpp:44:143: error: 'uint' has not been declared
   44 |     void handleKeyboardModifiers(void* data, wl_keyboard* wl_keyboard, uint serial, uint mods_depressed, uint mods_latched, uint mods_locked, uint group);
      |                                                                                                                                               ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/helpers/../events/Events.hpp:68:70: error: invalid conversion from 'void (*)(void*, wl_keyboard*, int, int, int)' to 'void (*)(void*, wl_keyboard*, uint32_t, int32_t, uint32_t)' {aka 'void (*)(void*, wl_keyboard*, unsigned int, int, unsigned int)'} [-fpermissive]
   68 |     inline const wl_keyboard_listener keyboardListener = { .keymap = handleKeyboardKeymap, .enter = handleKeyboardEnter,.leave = handleKeyboardLeave, .key = handleKeyboardKey, .modifiers = handleKeyboardModifiers };
      |                                                                      ^~~~~~~~~~~~~~~~~~~~
      |                                                                      |
      |                                                                      void (*)(void*, wl_keyboard*, int, int, int)
/home/hugo/src/github.com/hyprwm/hyprpicker/src/helpers/../events/Events.hpp:68:101: error: invalid conversion from 'void (*)(void*, wl_keyboard*, int, wl_surface*, wl_array*)' to 'void (*)(void*, wl_keyboard*, uint32_t, wl_surface*, wl_array*)' {aka 'void (*)(void*, wl_keyboard*, unsigned int, wl_surface*, wl_array*)'} [-fpermissive]
   68 |     inline const wl_keyboard_listener keyboardListener = { .keymap = handleKeyboardKeymap, .enter = handleKeyboardEnter,.leave = handleKeyboardLeave, .key = handleKeyboardKey, .modifiers = handleKeyboardModifiers };
      |                                                                                                     ^~~~~~~~~~~~~~~~~~~
      |                                                                                                     |
      |                                                                                                     void (*)(void*, wl_keyboard*, int, wl_surface*, wl_array*)
/home/hugo/src/github.com/hyprwm/hyprpicker/src/helpers/../events/Events.hpp:68:130: error: invalid conversion from 'void (*)(void*, wl_keyboard*, int, wl_surface*)' to 'void (*)(void*, wl_keyboard*, uint32_t, wl_surface*)' {aka 'void (*)(void*, wl_keyboard*, unsigned int, wl_surface*)'} [-fpermissive]
   68 |     inline const wl_keyboard_listener keyboardListener = { .keymap = handleKeyboardKeymap, .enter = handleKeyboardEnter,.leave = handleKeyboardLeave, .key = handleKeyboardKey, .modifiers = handleKeyboardModifiers };
      |                                                                                                                                  ^~~~~~~~~~~~~~~~~~~
      |                                                                                                                                  |
      |                                                                                                                                  void (*)(void*, wl_keyboard*, int, wl_surface*)
/home/hugo/src/github.com/hyprwm/hyprpicker/src/helpers/../events/Events.hpp:68:190: error: invalid conversion from 'void (*)(void*, wl_keyboard*, int, int, int, int, int)' to 'void (*)(void*, wl_keyboard*, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t)' {aka 'void (*)(void*, wl_keyboard*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)'} [-fpermissive]
   68 |     inline const wl_keyboard_listener keyboardListener = { .keymap = handleKeyboardKeymap, .enter = handleKeyboardEnter,.leave = handleKeyboardLeave, .key = handleKeyboardKey, .modifiers = handleKeyboardModifiers };
      |                                                                                                                                                                                              ^~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                                                              |
      |                                                                                                                                                                                              void (*)(void*, wl_keyboard*, int, int, int, int, int)
ninja: job failed: /usr/bin/c++ -DGIT_BRANCH=\"main\" -DGIT_COMMIT_HASH=\"deaca6a4d8e307d90b1f5b1033a8ea6c83b9b260\" -DGIT_COMMIT_MESSAGE="\"    core: avoid leaving garbage buffers on exit\"" -DGIT_DIRTY=\"\" -I/home/hugo/src/github.com/hyprwm/hyprpicker/. -isystem /usr/include/pango-1.0 -isystem /usr/include/harfbuzz -isystem /usr/include/cairo -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/include/freetype2 -isystem /usr/include/blkid -isystem /usr/include/libmount -isystem /usr/include/pixman-1 -isystem /usr/include/fribidi -isystem /usr/include/libpng16 -O3 -DNDEBUG -std=c++23 -DWLR_USE_UNSTABLE -Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith -pthread -MD -MT CMakeFiles/hyprpicker.dir/src/hyprpicker.cpp.o -MF CMakeFiles/hyprpicker.dir/src/hyprpicker.cpp.o.d -o CMakeFiles/hyprpicker.dir/src/hyprpicker.cpp.o -c /home/hugo/src/github.com/hyprwm/hyprpicker/src/hyprpicker.cpp
In file included from /home/hugo/src/github.com/hyprwm/hyprpicker/src/hyprpicker.cpp:3:
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:36:69: error: 'uint' has not been declared
   36 |     void handleKeyboardKeymap(void* data, wl_keyboard* wl_keyboard, uint format, int fd, uint size);
      |                                                                     ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:36:90: error: 'uint' has not been declared
   36 |     void handleKeyboardKeymap(void* data, wl_keyboard* wl_keyboard, uint format, int fd, uint size);
      |                                                                                          ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:40:68: error: 'uint' has not been declared
   40 |     void handleKeyboardEnter(void* data, wl_keyboard* wl_keyboard, uint serial, wl_surface* surface, wl_array* keys);
      |                                                                    ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:42:68: error: 'uint' has not been declared
   42 |     void handleKeyboardLeave(void* data, wl_keyboard* wl_keyboard, uint serial, wl_surface* surface);
      |                                                                    ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:44:72: error: 'uint' has not been declared
   44 |     void handleKeyboardModifiers(void* data, wl_keyboard* wl_keyboard, uint serial, uint mods_depressed, uint mods_latched, uint mods_locked, uint group);
      |                                                                        ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:44:85: error: 'uint' has not been declared
   44 |     void handleKeyboardModifiers(void* data, wl_keyboard* wl_keyboard, uint serial, uint mods_depressed, uint mods_latched, uint mods_locked, uint group);
      |                                                                                     ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:44:106: error: 'uint' has not been declared
   44 |     void handleKeyboardModifiers(void* data, wl_keyboard* wl_keyboard, uint serial, uint mods_depressed, uint mods_latched, uint mods_locked, uint group);
      |                                                                                                          ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:44:125: error: 'uint' has not been declared
   44 |     void handleKeyboardModifiers(void* data, wl_keyboard* wl_keyboard, uint serial, uint mods_depressed, uint mods_latched, uint mods_locked, uint group);
      |                                                                                                                             ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:44:143: error: 'uint' has not been declared
   44 |     void handleKeyboardModifiers(void* data, wl_keyboard* wl_keyboard, uint serial, uint mods_depressed, uint mods_latched, uint mods_locked, uint group);
      |                                                                                                                                               ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:68:70: error: invalid conversion from 'void (*)(void*, wl_keyboard*, int, int, int)' to 'void (*)(void*, wl_keyboard*, uint32_t, int32_t, uint32_t)' {aka 'void (*)(void*, wl_keyboard*, unsigned int, int, unsigned int)'} [-fpermissive]
   68 |     inline const wl_keyboard_listener keyboardListener = { .keymap = handleKeyboardKeymap, .enter = handleKeyboardEnter,.leave = handleKeyboardLeave, .key = handleKeyboardKey, .modifiers = handleKeyboardModifiers };
      |                                                                      ^~~~~~~~~~~~~~~~~~~~
      |                                                                      |
      |                                                                      void (*)(void*, wl_keyboard*, int, int, int)
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:68:101: error: invalid conversion from 'void (*)(void*, wl_keyboard*, int, wl_surface*, wl_array*)' to 'void (*)(void*, wl_keyboard*, uint32_t, wl_surface*, wl_array*)' {aka 'void (*)(void*, wl_keyboard*, unsigned int, wl_surface*, wl_array*)'} [-fpermissive]
   68 |     inline const wl_keyboard_listener keyboardListener = { .keymap = handleKeyboardKeymap, .enter = handleKeyboardEnter,.leave = handleKeyboardLeave, .key = handleKeyboardKey, .modifiers = handleKeyboardModifiers };
      |                                                                                                     ^~~~~~~~~~~~~~~~~~~
      |                                                                                                     |
      |                                                                                                     void (*)(void*, wl_keyboard*, int, wl_surface*, wl_array*)
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:68:130: error: invalid conversion from 'void (*)(void*, wl_keyboard*, int, wl_surface*)' to 'void (*)(void*, wl_keyboard*, uint32_t, wl_surface*)' {aka 'void (*)(void*, wl_keyboard*, unsigned int, wl_surface*)'} [-fpermissive]
   68 |     inline const wl_keyboard_listener keyboardListener = { .keymap = handleKeyboardKeymap, .enter = handleKeyboardEnter,.leave = handleKeyboardLeave, .key = handleKeyboardKey, .modifiers = handleKeyboardModifiers };
      |                                                                                                                                  ^~~~~~~~~~~~~~~~~~~
      |                                                                                                                                  |
      |                                                                                                                                  void (*)(void*, wl_keyboard*, int, wl_surface*)
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:68:190: error: invalid conversion from 'void (*)(void*, wl_keyboard*, int, int, int, int, int)' to 'void (*)(void*, wl_keyboard*, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t)' {aka 'void (*)(void*, wl_keyboard*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)'} [-fpermissive]
   68 |     inline const wl_keyboard_listener keyboardListener = { .keymap = handleKeyboardKeymap, .enter = handleKeyboardEnter,.leave = handleKeyboardLeave, .key = handleKeyboardKey, .modifiers = handleKeyboardModifiers };
      |                                                                                                                                                                                              ^~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                                                              |
      |                                                                                                                                                                                              void (*)(void*, wl_keyboard*, int, int, int, int, int)
ninja: job failed: /usr/bin/c++ -DGIT_BRANCH=\"main\" -DGIT_COMMIT_HASH=\"deaca6a4d8e307d90b1f5b1033a8ea6c83b9b260\" -DGIT_COMMIT_MESSAGE="\"    core: avoid leaving garbage buffers on exit\"" -DGIT_DIRTY=\"\" -I/home/hugo/src/github.com/hyprwm/hyprpicker/. -isystem /usr/include/pango-1.0 -isystem /usr/include/harfbuzz -isystem /usr/include/cairo -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/include/freetype2 -isystem /usr/include/blkid -isystem /usr/include/libmount -isystem /usr/include/pixman-1 -isystem /usr/include/fribidi -isystem /usr/include/libpng16 -O3 -DNDEBUG -std=c++23 -DWLR_USE_UNSTABLE -Wall -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing -Wno-pointer-arith -pthread -MD -MT CMakeFiles/hyprpicker.dir/src/events/Events.cpp.o -MF CMakeFiles/hyprpicker.dir/src/events/Events.cpp.o.d -o CMakeFiles/hyprpicker.dir/src/events/Events.cpp.o -c /home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.cpp
In file included from /home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.cpp:1:
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:36:69: error: 'uint' has not been declared
   36 |     void handleKeyboardKeymap(void* data, wl_keyboard* wl_keyboard, uint format, int fd, uint size);
      |                                                                     ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:36:90: error: 'uint' has not been declared
   36 |     void handleKeyboardKeymap(void* data, wl_keyboard* wl_keyboard, uint format, int fd, uint size);
      |                                                                                          ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:40:68: error: 'uint' has not been declared
   40 |     void handleKeyboardEnter(void* data, wl_keyboard* wl_keyboard, uint serial, wl_surface* surface, wl_array* keys);
      |                                                                    ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:42:68: error: 'uint' has not been declared
   42 |     void handleKeyboardLeave(void* data, wl_keyboard* wl_keyboard, uint serial, wl_surface* surface);
      |                                                                    ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:44:72: error: 'uint' has not been declared
   44 |     void handleKeyboardModifiers(void* data, wl_keyboard* wl_keyboard, uint serial, uint mods_depressed, uint mods_latched, uint mods_locked, uint group);
      |                                                                        ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:44:85: error: 'uint' has not been declared
   44 |     void handleKeyboardModifiers(void* data, wl_keyboard* wl_keyboard, uint serial, uint mods_depressed, uint mods_latched, uint mods_locked, uint group);
      |                                                                                     ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:44:106: error: 'uint' has not been declared
   44 |     void handleKeyboardModifiers(void* data, wl_keyboard* wl_keyboard, uint serial, uint mods_depressed, uint mods_latched, uint mods_locked, uint group);
      |                                                                                                          ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:44:125: error: 'uint' has not been declared
   44 |     void handleKeyboardModifiers(void* data, wl_keyboard* wl_keyboard, uint serial, uint mods_depressed, uint mods_latched, uint mods_locked, uint group);
      |                                                                                                                             ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:44:143: error: 'uint' has not been declared
   44 |     void handleKeyboardModifiers(void* data, wl_keyboard* wl_keyboard, uint serial, uint mods_depressed, uint mods_latched, uint mods_locked, uint group);
      |                                                                                                                                               ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:68:70: error: invalid conversion from 'void (*)(void*, wl_keyboard*, int, int, int)' to 'void (*)(void*, wl_keyboard*, uint32_t, int32_t, uint32_t)' {aka 'void (*)(void*, wl_keyboard*, unsigned int, int, unsigned int)'} [-fpermissive]
   68 |     inline const wl_keyboard_listener keyboardListener = { .keymap = handleKeyboardKeymap, .enter = handleKeyboardEnter,.leave = handleKeyboardLeave, .key = handleKeyboardKey, .modifiers = handleKeyboardModifiers };
      |                                                                      ^~~~~~~~~~~~~~~~~~~~
      |                                                                      |
      |                                                                      void (*)(void*, wl_keyboard*, int, int, int)
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:68:101: error: invalid conversion from 'void (*)(void*, wl_keyboard*, int, wl_surface*, wl_array*)' to 'void (*)(void*, wl_keyboard*, uint32_t, wl_surface*, wl_array*)' {aka 'void (*)(void*, wl_keyboard*, unsigned int, wl_surface*, wl_array*)'} [-fpermissive]
   68 |     inline const wl_keyboard_listener keyboardListener = { .keymap = handleKeyboardKeymap, .enter = handleKeyboardEnter,.leave = handleKeyboardLeave, .key = handleKeyboardKey, .modifiers = handleKeyboardModifiers };
      |                                                                                                     ^~~~~~~~~~~~~~~~~~~
      |                                                                                                     |
      |                                                                                                     void (*)(void*, wl_keyboard*, int, wl_surface*, wl_array*)
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:68:130: error: invalid conversion from 'void (*)(void*, wl_keyboard*, int, wl_surface*)' to 'void (*)(void*, wl_keyboard*, uint32_t, wl_surface*)' {aka 'void (*)(void*, wl_keyboard*, unsigned int, wl_surface*)'} [-fpermissive]
   68 |     inline const wl_keyboard_listener keyboardListener = { .keymap = handleKeyboardKeymap, .enter = handleKeyboardEnter,.leave = handleKeyboardLeave, .key = handleKeyboardKey, .modifiers = handleKeyboardModifiers };
      |                                                                                                                                  ^~~~~~~~~~~~~~~~~~~
      |                                                                                                                                  |
      |                                                                                                                                  void (*)(void*, wl_keyboard*, int, wl_surface*)
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.hpp:68:190: error: invalid conversion from 'void (*)(void*, wl_keyboard*, int, int, int, int, int)' to 'void (*)(void*, wl_keyboard*, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t)' {aka 'void (*)(void*, wl_keyboard*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)'} [-fpermissive]
   68 |     inline const wl_keyboard_listener keyboardListener = { .keymap = handleKeyboardKeymap, .enter = handleKeyboardEnter,.leave = handleKeyboardLeave, .key = handleKeyboardKey, .modifiers = handleKeyboardModifiers };
      |                                                                                                                                                                                              ^~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                                                                              |
      |                                                                                                                                                                                              void (*)(void*, wl_keyboard*, int, int, int, int, int)
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.cpp:246:73: error: 'uint' has not been declared
  246 | void Events::handleKeyboardKeymap(void* data, wl_keyboard* wl_keyboard, uint format, int fd, uint size) {}
      |                                                                         ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.cpp:246:94: error: 'uint' has not been declared
  246 | void Events::handleKeyboardKeymap(void* data, wl_keyboard* wl_keyboard, uint format, int fd, uint size) {}
      |                                                                                              ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.cpp:253:72: error: 'uint' has not been declared
  253 | void Events::handleKeyboardEnter(void* data, wl_keyboard* wl_keyboard, uint serial, wl_surface* surface, wl_array* keys) {}
      |                                                                        ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.cpp:255:72: error: 'uint' has not been declared
  255 | void Events::handleKeyboardLeave(void* data, wl_keyboard* wl_keyboard, uint serial, wl_surface* surface) {}
      |                                                                        ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.cpp:257:76: error: 'uint' has not been declared
  257 | void Events::handleKeyboardModifiers(void* data, wl_keyboard* wl_keyboard, uint serial, uint mods_depressed, uint mods_latched, uint mods_locked, uint group) {}
      |                                                                            ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.cpp:257:89: error: 'uint' has not been declared
  257 | void Events::handleKeyboardModifiers(void* data, wl_keyboard* wl_keyboard, uint serial, uint mods_depressed, uint mods_latched, uint mods_locked, uint group) {}
      |                                                                                         ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.cpp:257:110: error: 'uint' has not been declared
  257 | void Events::handleKeyboardModifiers(void* data, wl_keyboard* wl_keyboard, uint serial, uint mods_depressed, uint mods_latched, uint mods_locked, uint group) {}
      |                                                                                                              ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.cpp:257:129: error: 'uint' has not been declared
  257 | void Events::handleKeyboardModifiers(void* data, wl_keyboard* wl_keyboard, uint serial, uint mods_depressed, uint mods_latched, uint mods_locked, uint group) {}
      |                                                                                                                                 ^~~~
/home/hugo/src/github.com/hyprwm/hyprpicker/src/events/Events.cpp:257:147: error: 'uint' has not been declared
  257 | void Events::handleKeyboardModifiers(void* data, wl_keyboard* wl_keyboard, uint serial, uint mods_depressed, uint mods_latched, uint mods_locked, uint group) {}
      |                                                                                                                                                   ^~~~
ninja: subcommands failed
make[1]: *** [Makefile:53: release] Error 1
make[1]: Leaving directory '/home/hugo/src/github.com/hyprwm/hyprpicker'
make: *** [Makefile:62: all] Error 2

It's unclear to me if I'm missing a dependency or what's going on.

vaxerski commented 1 year ago

check with 1d05cc3423cd8ecd0489a7229396c5011d158b2c

WhyNotHugo commented 1 year ago

That works, thanks.

I'm now missing a dependency, but can't quite figure out which one:

[8/8] Linking CXX executable hyprpicker
ninja: job failed: : && /usr/bin/c++ -O3 -DNDEBUG  CMakeFiles/hyprpicker.dir/src/clipboard/Clipboard.cpp.o CMakeFiles/hyprpicker.dir/src/debug/Log.cpp.o CMakeFiles/hyprpicker.dir/src/events/Events.cpp.o CMakeFiles/hyprpicker.dir/src/helpers/LayerSurface.cpp.o CMakeFiles/hyprpicker.dir/src/helpers/Vector2D.cpp.o CMakeFiles/hyprpicker.dir/src/hyprpicker.cpp.o CMakeFiles/hyprpicker.dir/src/main.cpp.o -o hyprpicker  -lrt  -lOpenGL  -lGLESv2  -lpthread  /home/hugo/src/github.com/hyprwm/hyprpicker/wlr-layer-shell-unstable-v1-protocol.o  /home/hugo/src/github.com/hyprwm/hyprpicker/wlr-screencopy-unstable-v1-protocol.o  /home/hugo/src/github.com/hyprwm/hyprpicker/xdg-shell-protocol.o  -lwayland-cursor  /usr/lib/libwayland-client.so  /usr/lib/libpangocairo-1.0.so  /usr/lib/libjpeg.so  /usr/lib/libglib-2.0.so  /usr/lib/libintl.so  /usr/lib/libcairo.so  /usr/lib/libpango-1.0.so  /usr/lib/libgobject-2.0.so  /usr/lib/libharfbuzz.so && :
/usr/lib/gcc/x86_64-alpine-linux-musl/13.1.1/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lOpenGL: No such file or directory

The above commit definitely fixes the original issue here.

WhyNotHugo commented 1 year ago

I see that the above commit is already in main, so closing this.