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

hyprload fails to install #24

Open
yewhan opened this issue Oct 24, 2023 · 4 comments
Open

hyprload fails to install #24

yewhan opened this issue Oct 24, 2023 · 4 comments

Comments

@yewhan
Copy link

yewhan commented Oct 24, 2023

Hey, Hyprland's headers are found fine. I've built hyprland from source, and when doing a fresh install of hyprload the following's thrown during step [6/7]
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

Any other steps I can take to debug? I've checked the src, but I'm not super familiar with hyprland/load's internals.

@Duckonaut
Copy link
Owner

Major changes to the plugin API and build system happened in Hyprland 0.31.0, you are running an old version. I've bumped the required version to that in the Readme.

@yewhan
Copy link
Author

yewhan commented Oct 25, 2023

Major changes to the plugin API and build system happened in Hyprland 0.31.0, you are running an old version. I've bumped the required version to that in the Readme.

I was on one of the latest commits of Hyprland > 0.31.0 (updated today).
Reinstalling from the latest commit still hasn't fixed the issue; I experience the same error.

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

@yewhan
Copy link
Author

yewhan commented Oct 25, 2023

Is there anything you'd suggest I do to narrow down the problem?

@Duckonaut
Copy link
Owner

Hmm, OK, I'll check out what's going on in then

@Duckonaut Duckonaut reopened this Oct 25, 2023
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

2 participants