Replies: 1 comment
-
include is #include <hyprland/src/plugins/PluginAPI.hpp>
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h> , no problem without calling init and the path to Lua exists. repository: https://github.com/luposmi/hyprLua |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I am currently writing a plugin which will utilize Lua. However, Hyprland crashes every time I try to call a Lua function from inside the plugin.
I am compiling with
g++ -shared -fPIC main.cpp -o hyprLua.so -I/usr/include/lua5.3 -llua5.3 -g `pkg-config --cflags pixman-1 libdrm hyprland` -std=c++2b
and the crash appears as soon as I try to call
from inside PLUGIN_INIT.
I assume my linking is at fault here, but if I compile with the options as a stand alone exe, it works just fine.
Thanks for the help
PS: unfortunately, the log file is of no help, as Hyprland crashes so hard it doesn't even write to it (or delete the lock).
Beta Was this translation helpful? Give feedback.
All reactions