Skip to content

Hyprload not installing on Hyprland 0.31.0 (built from source) #25

@yewhan

Description

@yewhan

As mentioned in #24, hyprload fails to install. I was on Hyprland 0.31.0 when I posted that issue, and I've since updated to the latest commit and still face the same issue.

Proof of Hyprland version:

hyprctl version
Hyprland, built from branch main at commit a1b138a6258b00787cea43bddc48b7caa8cca3a0 dirty ([gha] Nix: update wlroots).
Tag: v0.31.0-35-ga1b138a6

flags: (if any)
debug

Do you have any suggestions to debug the issue?


Edit:
Posting error again for visibility:

Hyprland headers found.
Building with XWayland support.
src/main.cpp: In function ‘PLUGIN_DESCRIPTION_INFO pluginInit(void*)’:
src/main.cpp:85:69: error: ‘SCallbackInfo’ has not been declared
   85 |     HyprlandAPI::registerCallbackDynamic(PHANDLE, "tick", [](void*, SCallbackInfo&, std::any) {
      |                                                                     ^~~~~~~~~~~~~
src/main.cpp:85:59: error: could not convert ‘<lambda closure object>pluginInit(void*)::<lambda(void*, int&, std::any)>()’ from ‘pluginInit(void*)::<lambda(void*, int&, std::any)>’ to ‘HOOK_CALLBACK_FN’ {aka ‘std::function<void(void*, std::any)>’}
   85 |     HyprlandAPI::registerCallbackDynamic(PHANDLE, "tick", [](void*, SCallbackInfo&, std::any) {
      |                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                           |
      |                                                           pluginInit(void*)::<lambda(void*, int&, std::any)>
   86 |         hyprload::g_pHyprload->handleTick();
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               
   87 |     });
      |     ~                                                      
make: *** [Makefile:61: obj/main.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions