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

Error when executing install script #37

Open
jpx40 opened this issue Jan 8, 2024 · 0 comments
Open

Error when executing install script #37

jpx40 opened this issue Jan 8, 2024 · 0 comments

Comments

@jpx40
Copy link

jpx40 commented Jan 8, 2024

[6/7] Installing hyprload
make: Entering directory '/home/jonas/.local/share/hyprload/src'
jq: parse error: Invalid numeric literal at line 1, column 28
jq: parse error: Invalid numeric literal at line 1, column 28
g++ -c -o obj/main.o src/main.cpp -g -fPIC --no-gnu-unique -std=c++23 `pkg-config --cflags pixman-1 libdrm hyprland` -Iinclude -DWLR_USE_UNSTABLE
HYPRLAND_COMMIT not set. Set it to the root Hyprland directory.
make: *** [Makefile:44: check_env] Error 1
make: *** Waiting for unfinished jobs....
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:62: obj/main.o] Error 1
make: Leaving directory '/home/jonas/.local/share/hyprload/src'
[7/7] Installed hyprload!
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

1 participant