sierra
New Member
hey all as I was following the complling steps on the forgotten github I ran into this error can anybody help me with this please.
[ 16%] Building CXX object CMakeFiles/tfs.dir/src/configmanager.cpp.o
/root/forgottenserver/src/configmanager.cpp:26:0: error: "lua_strlen" redefined [-Werror]
#define lua_strlen lua_rawlen
^
In file included from /usr/include/lua.h:16:0,
from /usr/include/lua.hpp:6,
from /root/forgottenserver/src/configmanager.h:23,
from /root/forgottenserver/src/configmanager.cpp:22:
/usr/include/luaconf.h:299:0: note: this is the location of the previous definition
#define lua_strlen(L,i) lua_rawlen(L, (i))
^
cc1plus: all warnings being treated as errors
CMakeFiles/tfs.dir/build.make:287: recipe for target 'CMakeFiles/tfs.dir/src/configmanager.cpp.o' failed
make[2]: *** [CMakeFiles/tfs.dir/src/configmanager.cpp.o] Error 1
CMakeFiles/Makefile2:122: recipe for target 'CMakeFiles/tfs.dir/all' failed
make[1]: *** [CMakeFiles/tfs.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2
everything was going good until I got to that 16% thanx in advance for any help.
[ 16%] Building CXX object CMakeFiles/tfs.dir/src/configmanager.cpp.o
/root/forgottenserver/src/configmanager.cpp:26:0: error: "lua_strlen" redefined [-Werror]
#define lua_strlen lua_rawlen
^
In file included from /usr/include/lua.h:16:0,
from /usr/include/lua.hpp:6,
from /root/forgottenserver/src/configmanager.h:23,
from /root/forgottenserver/src/configmanager.cpp:22:
/usr/include/luaconf.h:299:0: note: this is the location of the previous definition
#define lua_strlen(L,i) lua_rawlen(L, (i))
^
cc1plus: all warnings being treated as errors
CMakeFiles/tfs.dir/build.make:287: recipe for target 'CMakeFiles/tfs.dir/src/configmanager.cpp.o' failed
make[2]: *** [CMakeFiles/tfs.dir/src/configmanager.cpp.o] Error 1
CMakeFiles/Makefile2:122: recipe for target 'CMakeFiles/tfs.dir/all' failed
make[1]: *** [CMakeFiles/tfs.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2
everything was going good until I got to that 16% thanx in advance for any help.