Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # We start in /home/vboxuser/
- # All dependecies for debian are installen, EXCEPT luajit
- # sudo apt install g++ make libc6-dev cmake libpng-dev libjpeg-dev libxi-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev libzstd-dev libluajit-5.1-dev
- mkdir 5.7.0
- cd 5.7.0
- git clone -b v2.1 --depth 1 https://github.com/LuaJIT/LuaJIT.git
- cd LuaJIT
- make -j$(nproc)
- cd ..
- git clone https://github.com/minetest/irrlicht.git
- cd irrlicht
- cmake . -DBUILD_SHARED_LIBS=OFF -B build
- make -C build -j$(nproc)
- cd ..
- git clone -b stable-5 --depth 1 https://github.com/minetest/minetest.git
- cd minetest
- git clone -b stable-5 --depth 1 https://github.com/minetest/minetest_game.git games/minetest_game
- cmake -S . -B build -DIRRLICHTMT_BUILD_DIR="/home/vboxuser/5.7.0/irrlicht/build/" -DLUA_INCLUDE_DIR="/home/vboxuser/5.7.0/LuaJIT/src" -DENABLE_LUAJIT=ON -DLUA_LIBRARY="/home/vboxuser/5.7.0/LuaJIT/src/libluajit.so"
- make -C build -j$(nproc)
- # To check, we do
- ldd bin/minetest | grep luajit
- # Result:
- # libluajit-5.1.so.2 => not found
- ######################
- If I hand over the .a insted of the .so in -DLUA_LIBRARY="/home/vboxuser/5.7.0/LuaJIT/src/libluajit.so", I get the text
- CMake Warning at src/CMakeLists.txt:705 (message):
- You are using a relatively old version of LuaJIT. We recommend running a
- recent version (from git) as older ones are known not to build/work
- correctly in all cases.
- THIS APPLIES ESPECIALLY ON macOS OR Linux/aarch64!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement