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

[Bug]: hypridle wont build #177

Open
1 task done
JaKooLit opened this issue Feb 17, 2025 · 1 comment
Open
1 task done

[Bug]: hypridle wont build #177

JaKooLit opened this issue Feb 17, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@JaKooLit
Copy link
Owner

Already reported ? *

  • I have searched the existing open and closed issues.

Regression?

No

System Info and Version

System/Version info
System:
  Host: debian Kernel: 6.12.12-amd64 arch: x86_64 bits: 64
  Desktop: Hyprland v: 0.41.2 Distro: Debian GNU/Linux trixie/sid
Machine:
  Type: Desktop System: HP product: HP EliteDesk 800 G4 DM 35W v: N/A
    serial: <superuser required>
  Mobo: HP model: 83E2 v: KBC Version 07.D1.00
    serial: <superuser required> UEFI: HP v: Q21 Ver. 02.21.00
    date: 09/16/2022
CPU:
  Info: 6-core model: Intel Core i5-8500T bits: 64 type: MCP cache:
    L2: 1.5 MiB
  Speed (MHz): avg: 1813 min/max: N/A cores: 1: 2089 2: 1971 3: 2048
    4: 1796 5: 874 6: 2100
Graphics:
  Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] driver: i915
    v: kernel
  Display: wayland server: X.Org v: 24.1.5 with: Xwayland v: 24.1.5
    compositor: Hyprland v: 0.41.2 driver: X: loaded: modesetting
    unloaded: fbdev,vesa dri: iris gpu: i915 resolution: 2560x1440~60Hz
  API: EGL v: 1.5 drivers: iris,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 24.3.4-3
    renderer: Mesa Intel UHD Graphics 630 (CFL GT2)
  Info: Tools: api: eglinfo,glxinfo x11: xdriinfo, xdpyinfo, xprop,
    xrandr
Audio:
  Device-1: Intel Cannon Lake PCH cAVS driver: snd_hda_intel
  API: ALSA v: k6.12.12-amd64 status: kernel-api
  Server-1: PipeWire v: 1.2.7 status: active
Network:
  Device-1: Intel Cannon Lake PCH CNVi WiFi driver: iwlwifi

KooL's Dots version

v2.3.11

Description

hypridle wont build

getting this at the end

gmake[3]: *** [CMakeFiles/hypridle.dir/build.make:93: CMakeFiles/hypridle.dir/src/core/Hypridle.cpp.o] Error 1 gmake[3]: *** Waiting for unfinished jobs.... gmake[2]: *** [CMakeFiles/Makefile2:87: CMakeFiles/hypridle.dir/all] Error 2 gmake[1]: *** [CMakeFiles/Makefile2:94: CMakeFiles/hypridle.dir/rule] Error 2 gmake: *** [Makefile:170: hypridle] Error 2

How to reproduce

cd Debian-Hyprland && ./install-scripts/hypridle.sh

install logs, images or videos

System/Installation Logs ```

Installing hypridle v0.1.2 ...
Cloning into 'hypridle'...
remote: Enumerating objects: 389, done.
remote: Counting objects: 100% (138/138), done.
remote: Compressing objects: 100% (88/88), done.
remote: Total 389 (delta 77), reused 82 (delta 46), pack-reused 251 (from 2)
Receiving objects: 100% (389/389), 103.84 KiB | 4.94 MiB/s, done.
Resolving deltas: 100% (189/189), done.
Note: switching to '7cff4581a3753154fc5b41f39a098fad49b777b1'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- 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 hypridle in Release with CMake
-- Checking deps...
-- 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.8.1")
-- Checking for modules 'wayland-client;wayland-protocols;hyprlang>=0.4.0;sdbus-c++'
-- Found wayland-client, version 1.23.1
-- Found wayland-protocols, version 1.40
-- Found hyprlang, version 0.5.2
-- Found sdbus-c++, version 2.1.0
-- Found WaylandScanner at /usr/bin/wayland-scanner
-- Found wayland-protocols at //usr/share/wayland-protocols
-- Configuring done (0.9s)
-- Generating done (0.0s)
-- Build files have been written to: /home/ja/Debian-Hyprland/hypridle/build
[ 20%] Building CXX object CMakeFiles/hypridle.dir/src/config/ConfigManager.cpp.o
[ 60%] Building C object CMakeFiles/hypridle.dir/protocols/ext-idle-notify-v1-protocol.c.o
[ 60%] Building CXX object CMakeFiles/hypridle.dir/src/main.cpp.o
[ 80%] Building CXX object CMakeFiles/hypridle.dir/src/core/Hypridle.cpp.o
/home/ja/Debian-Hyprland/hypridle/src/core/Hypridle.cpp: In member function ‘void CHypridle::enterEventLoop()’:
/home/ja/Debian-Hyprland/hypridle/src/core/Hypridle.cpp:154:45: error: ‘class sdbus::IConnection’ has no member named ‘processPendingRequest’; did you mean ‘processPendingEvent’?
154 | while (m_sDBUSState.connection->processPendingRequest()) {
| ^~~~~~~~~~~~~~~~~~~~~
| processPendingEvent
/home/ja/Debian-Hyprland/hypridle/src/core/Hypridle.cpp:172:63: error: ‘class sdbus::IConnection’ has no member named ‘processPendingRequest’; did you mean ‘processPendingEvent’?
172 | while (m_sDBUSState.screenSaverServiceConnection->processPendingRequest()) {
| ^~~~~~~~~~~~~~~~~~~~~
| processPendingEvent
/home/ja/Debian-Hyprland/hypridle/src/core/Hypridle.cpp: In function ‘void handleDbusLogin(sdbus::Message&)’:
/home/ja/Debian-Hyprland/hypridle/src/core/Hypridle.cpp:346:16: warning: comparison with string literal results in unspecified behavior [-Waddress]
346 | if (MEMBER == "Lock") {
| ~~~~~~~^~~~~~~~~
/home/ja/Debian-Hyprland/hypridle/src/core/Hypridle.cpp:353:23: warning: comparison with string literal results in unspecified behavior [-Waddress]
353 | } else if (MEMBER == "Unlock") {
| ~~~~~~~^~~~~~~~~~~
/home/ja/Debian-Hyprland/hypridle/src/core/Hypridle.cpp: In function ‘void handleDbusSleep(sdbus::Message&)’:
/home/ja/Debian-Hyprland/hypridle/src/core/Hypridle.cpp:366:16: warning: comparison with string literal results in unspecified behavior [-Waddress]
366 | if (MEMBER != "PrepareForSleep")
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~
/home/ja/Debian-Hyprland/hypridle/src/core/Hypridle.cpp: In member function ‘void CHypridle::setupDBUS()’:
/home/ja/Debian-Hyprland/hypridle/src/core/Hypridle.cpp:437:37: error: no matching function for call to ‘createProxy(const char [23], const char [24])’
437 | auto proxy = sdbus::createProxy("org.freedesktop.login1", "/org/freedesktop/login1");
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/sdbus-c++/ConvenienceApiClasses.inl:32,
from /usr/include/sdbus-c++/IObject.h:481,
from /usr/include/sdbus-c++/sdbus-c++.h:28,
from /home/ja/Debian-Hyprland/hypridle/src/core/Hypridle.hpp:6,
from /home/ja/Debian-Hyprland/hypridle/src/core/Hypridle.cpp:1:
/usr/include/sdbus-c++/IProxy.h:861:50: note: candidate: ‘std::unique_ptrsdbus::IProxy sdbus::createProxy(IConnection&, ServiceName, ObjectPath)’
861 | [[nodiscard]] std::unique_ptrsdbus::IProxy createProxy( sdbus::IConnection& connection
| ^~~~~~~~~~~
/usr/include/sdbus-c++/IProxy.h:861:50: note: candidate expects 3 arguments, 2 provided
/usr/include/sdbus-c++/IProxy.h:887:50: note: candidate: ‘std::unique_ptrsdbus::IProxy sdbus::createProxy(std::unique_ptr&&, ServiceName, ObjectPath)’
887 | [[nodiscard]] std::unique_ptrsdbus::IProxy createProxy( std::unique_ptrsdbus::IConnection&& connection
| ^~~~~~~~~~~
/usr/include/sdbus-c++/IProxy.h:887:50: note: candidate expects 3 arguments, 2 provided
/usr/include/sdbus-c++/IProxy.h:914:50: note: candidate: ‘std::unique_ptrsdbus::IProxy sdbus::createProxy(std::unique_ptr&&, ServiceName, ObjectPath, dont_run_event_loop_thread_t)’
914 | [[nodiscard]] std::unique_ptrsdbus::IProxy createProxy( std::unique_ptrsdbus::IConnection&& connection
| ^~~~~~~~~~~
/usr/include/sdbus-c++/IProxy.h:914:50: note: candidate expects 4 arguments, 2 provided
/usr/include/sdbus-c++/IProxy.h:936:50: note: candidate: ‘std::unique_ptrsdbus::IProxy sdbus::createProxy(ServiceName, ObjectPath)’
936 | [[nodiscard]] std::unique_ptrsdbus::IProxy createProxy( ServiceName destination
| ^~~~~~~~~~~
/usr/include/sdbus-c++/IProxy.h:936:75: note: no known conversion for argument 1 from ‘const char [23]’ to ‘sdbus::ServiceName’ {aka ‘sdbus::BusName’}
936 | [[nodiscard]] std::unique_ptrsdbus::IProxy createProxy( ServiceName destination
| ~~~~~~~~~~~~^~~~~~~~~~~
/usr/include/sdbus-c++/IProxy.h:957:50: note: candidate: ‘std::unique_ptrsdbus::IProxy sdbus::createProxy(ServiceName, ObjectPath, dont_run_event_loop_thread_t)’
957 | [[nodiscard]] std::unique_ptrsdbus::IProxy createProxy( ServiceName destination
| ^~~~~~~~~~~
/usr/include/sdbus-c++/IProxy.h:957:50: note: candidate expects 3 arguments, 2 provided
/home/ja/Debian-Hyprland/hypridle/src/core/Hypridle.cpp:452:38: error: no matching function for call to ‘sdbus::IConnection::addMatch(std::__cxx11::basic_string, void (&)(sdbus::Message&), sdbus::floating_slot_t)’
452 | m_sDBUSState.connection->addMatch("type='signal',path='" + path + "',interface='org.freedesktop.login1.Session'", handleDbusLogin, sdbus::floating_slot_t{});
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/sdbus-c++/sdbus-c++.h:27:
/usr/include/sdbus-c++/IConnection.h:280:22: note: candidate: ‘virtual void sdbus::IConnection::addMatch(const std::string&, sdbus::message_handler)’
280 | virtual void addMatch(const std::string& match, message_handler callback) = 0;
| ^~~~~~~~
/usr/include/sdbus-c++/IConnection.h:280:22: note: candidate expects 2 arguments, 3 provided
/usr/include/sdbus-c++/IConnection.h:303:36: note: candidate: ‘virtual sdbus::Slot sdbus::IConnection::addMatch(const std::string&, sdbus::message_handler, sdbus::return_slot_t)’
303 | [[nodiscard]] virtual Slot addMatch(const std::string& match, message_handler callback, return_slot_t) = 0;
| ^~~~~~~~
/usr/include/sdbus-c++/IConnection.h:303:87: note: no known conversion for argument 2 from ‘void(sdbus::Message&)’ to ‘sdbus::message_handler’ {aka ‘std::function<void(sdbus::Message)>’}
303 | [[nodiscard]] virtual Slot addMatch(const std::string& match, message_handler callback, return_slot_t) = 0;
| ~~~~~~~~~~~~~~~~^~~~~~~~
/home/ja/Debian-Hyprland/hypridle/src/core/Hypridle.cpp:453:38: error: no matching function for call to ‘sdbus::IConnection::addMatch(const char [88], void (&)(sdbus::Message&), sdbus::floating_slot_t)’
453 | m_sDBUSState.connection->addMatch("type='signal',path='/org/freedesktop/login1',interface='org.freedesktop.login1.Manager'", handleDbusSleep, sdbus::floating_slot_t{});
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sdbus-c++/IConnection.h:280:22: note: candidate: ‘virtual void sdbus::IConnection::addMatch(const std::string&, sdbus::message_handler)’
280 | virtual void addMatch(const std::string& match, message_handler callback) = 0;
| ^~~~~~~~
/usr/include/sdbus-c++/IConnection.h:280:22: note: candidate expects 2 arguments, 3 provided
/usr/include/sdbus-c++/IConnection.h:303:36: note: candidate: ‘virtual sdbus::Slot sdbus::IConnection::addMatch(const std::string&, sdbus::message_handler, sdbus::return_slot_t)’
303 | [[nodiscard]] virtual Slot addMatch(const std::string& match, message_handler callback, return_slot_t) = 0;
| ^~~~~~~~
/usr/include/sdbus-c++/IConnection.h:303:87: note: no known conversion for argument 2 from ‘void(sdbus::Message&)’ to ‘sdbus::message_handler’ {aka ‘std::function<void(sdbus::Message)>’}
303 | [[nodiscard]] virtual Slot addMatch(const std::string& match, message_handler callback, return_slot_t) = 0;
| ~~~~~~~~~~~~~~~~^~~~~~~~
/home/ja/Debian-Hyprland/hypridle/src/core/Hypridle.cpp:457:86: error: no matching function for call to ‘createSessionBusConnection(const char [28])’
457 | m_sDBUSState.screenSaverServiceConnection = sdbus::createSessionBusConnection("org.freedesktop.ScreenSaver");
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sdbus-c++/IConnection.h:481:55: note: candidate: ‘std::unique_ptrsdbus::IConnection sdbus::createSessionBusConnection()’
481 | [[nodiscard]] std::unique_ptrsdbus::IConnection createSessionBusConnection();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sdbus-c++/IConnection.h:481:55: note: candidate expects 0 arguments, 1 provided
/usr/include/sdbus-c++/IConnection.h:491:55: note: candidate: ‘std::unique_ptrsdbus::IConnection sdbus::createSessionBusConnection(const ServiceName&)’
491 | [[nodiscard]] std::unique_ptrsdbus::IConnection createSessionBusConnection(const ServiceName& name);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sdbus-c++/IConnection.h:491:101: note: no known conversion for argument 1 from ‘const char [28]’ to ‘const sdbus::ServiceName&’ {aka ‘const sdbus::BusName&’}
491 | [[nodiscard]] std::unique_ptrsdbus::IConnection createSessionBusConnection(const ServiceName& name);
| ~~~~~~~~~~~~~~~~~~~^~~~
/home/ja/Debian-Hyprland/hypridle/src/core/Hypridle.cpp:458:117: error: could not convert ‘(const char*)"/org/freedesktop/ScreenSaver"’ from ‘const char*’ to ‘sdbus::ObjectPath’
458 | m_sDBUSState.screenSaverObject = sdbus::createObject(m_sDBUSState.screenSaverServiceConnection, "/org/freedesktop/ScreenSaver");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| const char

/home/ja/Debian-Hyprland/hypridle/src/core/Hypridle.cpp:460:41: error: ‘class sdbus::IObject’ has no member named ‘registerMethod’
460 | m_sDBUSState.screenSaverObject->registerMethod("org.freedesktop.ScreenSaver", "Inhibit", "ss", "u", [&](sdbus::MethodCall c) { handleDbusScreensaver(c, true); });
| ^~~~~~~~~~~~~~
/home/ja/Debian-Hyprland/hypridle/src/core/Hypridle.cpp:461:41: error: ‘class sdbus::IObject’ has no member named ‘registerMethod’
461 | m_sDBUSState.screenSaverObject->registerMethod("org.freedesktop.ScreenSaver", "UnInhibit", "u", "", [&](sdbus::MethodCall c) { handleDbusScreensaver(c, false); });
| ^~~~~~~~~~~~~~
/home/ja/Debian-Hyprland/hypridle/src/core/Hypridle.cpp:463:41: error: ‘class sdbus::IObject’ has no member named ‘finishRegistration’
463 | m_sDBUSState.screenSaverObject->finishRegistration();
| ^~~~~~~~~~~~~~~~~~
gmake[3]: *** [CMakeFiles/hypridle.dir/build.make:93: CMakeFiles/hypridle.dir/src/core/Hypridle.cpp.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[2]: *** [CMakeFiles/Makefile2:87: CMakeFiles/hypridle.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:94: CMakeFiles/hypridle.dir/rule] Error 2
gmake: *** [Makefile:170: hypridle] Error 2


</details>
@JaKooLit JaKooLit added the bug Something isn't working label Feb 17, 2025
@JaKooLit JaKooLit self-assigned this Feb 17, 2025
@JaKooLit JaKooLit changed the title [Bug]: hyprland cant be install [Bug]: hypridle cant be install Feb 24, 2025
@JaKooLit JaKooLit changed the title [Bug]: hypridle cant be install [Bug]: hypridle wont build Feb 24, 2025
@JaKooLit
Copy link
Owner Author

If any Debian users here that has a work around, please let me know

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant