[SOLVED] How to compile minetest with luajit 2.1-beta?

Post Reply
Reedych
Member
Posts: 58
Joined: Wed Aug 03, 2016 08:09
GitHub: SlackCoyote
In-game: SlackCoyote

[SOLVED] How to compile minetest with luajit 2.1-beta?

by Reedych » Post

I want to host a server on Raspberry PI 3. I use devuan ascii (debian stretch with systemd removed) arm64. So because of arm64 architecture used I need 2.1. But at end it prints a lot errors of type "undefined reference to `lua*****`":

Code: Select all

CMakeFiles/minetestserver.dir/script/lua_api/l_object.cpp.o: In function `ObjectRef::l_get_entity_name(lua_State*)':
l_object.cpp:(.text+0x364c): undefined reference to `luaL_checktype'
l_object.cpp:(.text+0x365c): undefined reference to `luaL_checkudata'
l_object.cpp:(.text+0x372c): undefined reference to `lua_pushstring'
l_object.cpp:(.text+0x3784): undefined reference to `luaL_typerror'
So where to dig/sniff?

P.s. and the build.sh:

Code: Select all

cd minetest
rm -rf build
mkdir build
cd build

cmake .. \
-DBUILD_SERVER=TRUE \
-DBUILD_CLIENT=FALSE \
-DIRRLICHT_SOURCE_DIR=../../irrlicht \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_LUAJIT=TRUE \
-DENABLE_SYSTEM_GMP=TRUE \
-DENABLE_SYSTEM_JSONCPP=TRUE \
-DRUN_IN_PLACE=FALSE \
-DLUA_INCLUDE_DIR=../../luajit/src/ \
-DLUA_LIBRARY=../../luajit/src/
Last edited by Reedych on Wed May 09, 2018 07:46, edited 1 time in total.
Slackware64 14.2, MT 0.4.16. My best mod.

t0ny
New member
Posts: 3
Joined: Tue Jan 03, 2017 14:21
GitHub: T0ny2

Re: How to compile minetest with luajit 2.1-beta?

by t0ny » Post

The LUA_LIBRARY parameter needs to point to the actual library e.g.

Code: Select all

-DLUA_LIBRARY=../../luajit/src/libluajit.a

Reedych
Member
Posts: 58
Joined: Wed Aug 03, 2016 08:09
GitHub: SlackCoyote
In-game: SlackCoyote

Re: How to compile minetest with luajit 2.1-beta?

by Reedych » Post

t0ny wrote:The LUA_LIBRARY parameter needs to point to the actual library e.g.

Code: Select all

-DLUA_LIBRARY=../../luajit/src/libluajit.a
It has been successfully built, thanks.
Slackware64 14.2, MT 0.4.16. My best mod.

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: [SOLVED] How to compile minetest with luajit 2.1-beta?

by rubenwardy » Post

I added support for 2.1 to the latest 0.5.0-dev code, so specifying library and include won't be necessary there. 0.4.17-dev will get it soon
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests