minetest-5.4.1+repack source may not be able to be built.
minetest-5.4.1+repack works in it's binary but,
I do not know if minetest-5.4.1+repack from apt-get source still can be built from source, unless I need more than the dependencies shown in the README.md file.
I also see that some newer minetest versions may be using a Asymmetric numeral systems patent from Microsoft, as some newer versions are using ZSTD.
Some newer versions of ZSTD may have parts of Microsoft's Asymmetric numeral systems patent in them, though I do not know where the Microsoft patented parts may be at.
I think this is only a problem with the build dependencies in Trisquel, as this compiled before without any more dependencies than listed, just not now.
Though as long as there are no security problems, minetest-5.4.1+repack still works well so no "update" to minetest is needed.
And security patches may be backported to avoid the Microsoft Asymmetric numeral systems patent, I hope.
Or it can be proven that Microsoft can not have that patent.
https://trisquel.info/en/forum/there-asymmetricnumeralsystems-patent
Here are the build dependencies.
For Debian/Ubuntu users:
sudo apt install g++ make libc6-dev libirrlicht-dev cmake libbz2-dev libpng-dev libjpeg-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev
Here is what I tried. Though maybe I also should somehow test some missing json/json.h file. Though I did not see that in the README.md file. I think I installed all the dependencies.
cmake . -DRUN_IN_PLACE=TRUE make -j$(nproc) CMake Deprecation Warning at CMakeLists.txt:3 (cmake_policy): The OLD behavior for policy CMP0025 will be removed from a future version of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all policies are deprecated and that a policy should be set to OLD only under specific short-term circumstances. Projects should be ported to the NEW behavior and not rely on setting a policy to OLD.
-- The C compiler identification is GNU 11.4.0 -- The CXX compiler identification is GNU 11.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- *** Will build version 5.4.1 *** -- Found Irrlicht: /usr/lib/x86_64-linux-gnu/libIrrlicht.so -- Using GMP provided by system. -- Found GMP: /usr/lib/x86_64-linux-gnu/libgmp.so -- Using bundled JSONCPP library. -- Could NOT find LuaJIT (missing: LUA_LIBRARY LUA_INCLUDE_DIR) -- LuaJIT not found, using the version of Lua provided by the system. -- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so -- cURL support enabled. -- Found GettextLib: /usr/include -- GetText enabled; locales found: ar;be;bg;ca;cs;da;de;dv;el;eo;es;et;eu;fi;fr;gd;gl;he;hi;hu;id;it;ja;jbo;kk;kn;ko;ky;lt;lv;ms;ms_Arab;nb;nl;nn;pl;pt;pt_BR;ro;ru;sk;sl;sr_Cyrl;sr_Latn;sv;sw;th;tr;uk;vi;zh_CN;zh_TW -- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so -- Found Vorbis: /usr/include -- Sound enabled. -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so -- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.11.1") -- Freetype enabled. -- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH) -- ncurses not found! -- Could NOT find PostgreSQL (missing: PostgreSQL_LIBRARY PostgreSQL_INCLUDE_DIR) -- PostgreSQL not found! -- LevelDB not found! -- Redis not found! -- Found SQLite3: /usr/lib/x86_64-linux-gnu/libsqlite3.so -- Prometheus client disabled. -- SpatialIndex not found! -- Found X11: /usr/include -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (found version "80") -- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.8") -- Looking for BZ2_bzCompressInit -- Looking for BZ2_bzCompressInit - found -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") -- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.37") -- Looking for clock_gettime in rt -- Looking for clock_gettime in rt - found -- Looking for include file endian.h -- Looking for include file endian.h - found -- Locale blacklist applied; Locales used: be;bg;ca;cs;da;de;dv;el;eo;es;et;eu;fi;fr;gd;gl;hi;hu;id;it;ja;jbo;kk;kn;ko;lt;lv;ms;nb;nl;nn;pl;pt;pt_BR;ro;ru;sk;sl;sr_Cyrl;sr_Latn;sv;sw;tr;uk;vi;zh_CN;zh_TW -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- Configuring done -- Generating done -- Build files have been written to: /home/codyu/Desktop/untitled folder/apt-get_minetest/3/minetest-5.4.1+repack [ 0%] Building CXX object lib/jsoncpp/CMakeFiles/jsoncpp.dir/jsoncpp.cpp.o [ 0%] Built target GenerateVersion /home/codyu/Desktop/untitled folder/apt-get_minetest/3/minetest-5.4.1+repack/lib/jsoncpp/jsoncpp.cpp:76:10: fatal error: json/json.h: No such file or directory 76 | #include "json/json.h" | ^~~~~~~~~~~~~ compilation terminated. make[2]: *** [lib/jsoncpp/CMakeFiles/jsoncpp.dir/build.make:76: lib/jsoncpp/CMakeFiles/jsoncpp.dir/jsoncpp.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:385: lib/jsoncpp/CMakeFiles/jsoncpp.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 1%] mo-update [bg]: Creating locale directory. [ 1%] mo-update [be]: Creating locale directory. [ 1%] mo-update [ca]: Creating locale directory. [ 1%] mo-update [cs]: Creating locale directory. [ 2%] mo-update [da]: Creating locale directory. [ 2%] mo-update [de]: Creating locale directory. [ 2%] mo-update [dv]: Creating locale directory. [ 2%] mo-update [el]: Creating locale directory. [ 3%] mo-update [eo]: Creating locale directory. [ 3%] mo-update [es]: Creating locale directory. [ 3%] mo-update [et]: Creating locale directory. [ 3%] mo-update [eu]: Creating locale directory. [ 4%] mo-update [fi]: Creating locale directory. [ 4%] mo-update [fr]: Creating locale directory. [ 4%] mo-update [gd]: Creating locale directory. [ 4%] mo-update [gl]: Creating locale directory. [ 5%] mo-update [hi]: Creating locale directory. [ 5%] mo-update [hu]: Creating locale directory. [ 5%] mo-update [id]: Creating locale directory. [ 5%] mo-update [it]: Creating locale directory. [ 6%] mo-update [ja]: Creating locale directory. [ 6%] mo-update [jbo]: Creating locale directory. [ 6%] mo-update [kk]: Creating locale directory. [ 7%] mo-update [kn]: Creating locale directory. [ 7%] mo-update [ko]: Creating locale directory. [ 7%] mo-update [lv]: Creating locale directory. [ 7%] mo-update [lt]: Creating locale directory. [ 8%] mo-update [ms]: Creating locale directory. [ 8%] mo-update [nb]: Creating locale directory. [ 8%] mo-update [nl]: Creating locale directory. [ 8%] mo-update [nn]: Creating locale directory. [ 9%] mo-update [pl]: Creating locale directory. [ 9%] mo-update [pt]: Creating locale directory. [ 9%] mo-update [pt_BR]: Creating locale directory. [ 9%] mo-update [ro]: Creating locale directory. [ 10%] mo-update [ru]: Creating locale directory. [ 10%] mo-update [sk]: Creating locale directory. [ 10%] mo-update [sl]: Creating locale directory. [ 10%] mo-update [sr_Cyrl]: Creating locale directory. [ 11%] mo-update [sr_Latn]: Creating locale directory. [ 11%] mo-update [sw]: Creating locale directory. [ 11%] mo-update [sv]: Creating locale directory. [ 11%] mo-update [tr]: Creating locale directory. [ 12%] mo-update [uk]: Creating locale directory. [ 12%] mo-update [vi]: Creating locale directory. [ 12%] mo-update [zh_CN]: Creating locale directory. [ 13%] mo-update [zh_TW]: Creating locale directory. [ 13%] mo-update [be]: Creating mo file. [ 14%] mo-update [bg]: Creating mo file. [ 14%] mo-update [ca]: Creating mo file. [ 14%] mo-update [cs]: Creating mo file. [ 14%] mo-update [da]: Creating mo file. [ 15%] mo-update [de]: Creating mo file. [ 15%] mo-update [dv]: Creating mo file. [ 15%] mo-update [el]: Creating mo file. [ 15%] mo-update [eo]: Creating mo file. [ 16%] mo-update [es]: Creating mo file. [ 16%] mo-update [et]: Creating mo file. [ 16%] mo-update [eu]: Creating mo file. [ 16%] mo-update [fi]: Creating mo file. [ 17%] mo-update [fr]: Creating mo file. [ 17%] mo-update [gd]: Creating mo file. [ 17%] mo-update [gl]: Creating mo file. [ 18%] mo-update [hi]: Creating mo file. [ 18%] mo-update [hu]: Creating mo file. [ 18%] mo-update [id]: Creating mo file. [ 18%] mo-update [it]: Creating mo file. [ 19%] mo-update [ja]: Creating mo file. [ 19%] mo-update [jbo]: Creating mo file. [ 19%] mo-update [kk]: Creating mo file. [ 19%] mo-update [kn]: Creating mo file. [ 20%] mo-update [ko]: Creating mo file. [ 20%] mo-update [lt]: Creating mo file. [ 20%] mo-update [lv]: Creating mo file. [ 20%] mo-update [ms]: Creating mo file. [ 21%] mo-update [nb]: Creating mo file. [ 21%] mo-update [nl]: Creating mo file. [ 21%] mo-update [nn]: Creating mo file. [ 21%] mo-update [pl]: Creating mo file. [ 22%] mo-update [pt]: Creating mo file. [ 22%] mo-update [pt_BR]: Creating mo file. [ 22%] mo-update [ro]: Creating mo file. [ 22%] mo-update [ru]: Creating mo file. [ 23%] mo-update [sk]: Creating mo file. [ 23%] mo-update [sl]: Creating mo file. [ 23%] mo-update [sr_Cyrl]: Creating mo file. [ 23%] mo-update [sr_Latn]: Creating mo file. [ 24%] mo-update [sv]: Creating mo file. [ 24%] mo-update [sw]: Creating mo file. [ 24%] mo-update [tr]: Creating mo file. [ 25%] mo-update [uk]: Creating mo file. [ 25%] mo-update [vi]: Creating mo file. [ 25%] mo-update [zh_CN]: Creating mo file. [ 25%] mo-update [zh_TW]: Creating mo file. [ 25%] mo update [ 25%] Built target translations make: *** [Makefile:156: all] Error 2