Advertisement
Guest User

Untitled

a guest
Mar 30th, 2023
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1.  
  2. # We start in /home/vboxuser/
  3. # All dependecies for debian are installen, EXCEPT luajit
  4. # 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
  5.  
  6. mkdir 5.7.0
  7. cd 5.7.0
  8.  
  9. git clone -b v2.1 --depth 1 https://github.com/LuaJIT/LuaJIT.git
  10. cd LuaJIT
  11. make -j$(nproc)
  12. cd ..
  13.  
  14. git clone https://github.com/minetest/irrlicht.git
  15. cd irrlicht
  16. cmake . -DBUILD_SHARED_LIBS=OFF -B build
  17. make -C build -j$(nproc)
  18. cd ..
  19.  
  20. git clone -b stable-5 --depth 1 https://github.com/minetest/minetest.git
  21. cd minetest
  22. git clone -b stable-5 --depth 1 https://github.com/minetest/minetest_game.git games/minetest_game
  23. 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"
  24. make -C build -j$(nproc)
  25.  
  26. # To check, we do
  27.  
  28. ldd bin/minetest | grep luajit
  29.  
  30. # Result:
  31. # libluajit-5.1.so.2 => not found
  32.  
  33. ######################
  34.  
  35. 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
  36.  
  37. CMake Warning at src/CMakeLists.txt:705 (message):
  38. You are using a relatively old version of LuaJIT. We recommend running a
  39. recent version (from git) as older ones are known not to build/work
  40. correctly in all cases.
  41.  
  42. THIS APPLIES ESPECIALLY ON macOS OR Linux/aarch64!
  43.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement