在Windows上构建Qt Lua

在构建 qtlua 时,我遇到了以下错误:

libqtlua-1.4\src\qtluastate.cc: 在成员函数‘void QtLua::State::gc_collect()’中:

libqtlua-1.4\src\qtluastate.cc:665:29: error: 'lua_setgcthreshold' was not declared in this scope

mingw32-make[2]: *** [CMakeFiles/qtlua.dir/src/qtluastate.cc.obj] Error 1
mingw32-make[1]: *** [CMakeFiles/qtlua.dir/all] Error 2
mingw32-make: *** [all] Error 2

有任何解决方法吗?

点赞