Building can't find `lua_objlen`

Post Reply
User avatar
Kimapr
Member
Posts: 27
Joined: Fri May 24, 2019 15:53
GitHub: Kimapr
IRC: Kimapr
In-game: Kimapr

Building can't find `lua_objlen`

by Kimapr » Post

My OS is GuixSD. After updating my guix profile minetest stopped working.
now trying to re-build minetest fails with this:

Code: Select all

[  0%] Building CXX object src/CMakeFiles/minetest.dir/script/common/c_converter.cpp.o
/home/d/minetest/src/script/common/c_converter.cpp: In function ‘std::vector<irr::core::aabbox3d<float> > read_aabb3f_vector(lua_State*, int, irr::f32)’:
/home/d/minetest/src/script/common/c_converter.cpp:386:11: error: ‘lua_objlen’ was not declared in this scope; did you mean ‘lua_len’?
  386 |   int n = lua_objlen(L, index);
      |           ^~~~~~~~~~
      |           lua_len
make[2]: *** [src/CMakeFiles/minetest.dir/build.make:1428: src/CMakeFiles/minetest.dir/script/common/c_converter.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:184: src/CMakeFiles/minetest.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
Ek59C88tAsaQuRAw6PCPsGFDozj1FuZ4

User avatar
Kimapr
Member
Posts: 27
Joined: Fri May 24, 2019 15:53
GitHub: Kimapr
IRC: Kimapr
In-game: Kimapr

Re: Building can't find `lua_objlen`

by Kimapr » Post

(solved)
lua versions mismatch, even when i said it to use luajit, it uses lua 2.3 installed on my guix profile
fixed by downgrading it to lua 5.1
Ek59C88tAsaQuRAw6PCPsGFDozj1FuZ4

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests