I use CentOS7.9 and build liblua.so from source,
I used enable-plugin-lua, LUA_CFLAGS and LUA_LIBS parameters to build Janus and I can build successfully.
Here is my build command:
./configure --prefix=/opt/janus --enable-websockets --enable-post-processing --enable-plugin-lua LUA_CFLAGS="-I/root/lua/usr/local/include -Wl,-rpath=." LUA_LIBS="-L/root/lua/usr/local/lib -Wl,-rpath=../../../bin"
But when I run janus I get this error:
Loading plugin 'libjanus_lua.so'...
[ERR] [janus.c:main:5548] Couldn't load plugin 'libjanus_lua.so': /opt/janus/lib/janus/plugins/libjanus_lua.so: undefined symbol: lua_gettop
I tried to put the liblua file in the janus bin directory, but still get the same error, I want to know how to solve this error.
thanks for you help