Difference between revisions of "Compiling Luanti"
ROllerozxa (talk | contribs) |
ROllerozxa (talk | contribs) |
||
Line 2: | Line 2: | ||
== Compiling on GNU/Linux == | == Compiling on GNU/Linux == | ||
− | + | Please see the [https://github.com/minetest/minetest#compiling-on-gnulinux README.md file] for instructions. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== See also === | === See also === |
Revision as of 17:43, 22 January 2023
This page is about compiling Minetest for desktop platforms. For compiling Minetest for Android, see Android.
Compiling on GNU/Linux
Please see the README.md file for instructions.
See also
Compiling on Windows
Please see the Minetest README.
Cross-compilation
To compile a win32 version of Minetest in Linux with MinGW you can use the build script in utils/buildbot/buildwin32.sh
.
To compile a win64 version of Minetest in Linux with MinGW you can use the build script in utils/buildbot/buildwin64.sh
.
If you have errors during cross compilation related to std::thread and std::mutex, this is due to mingw-w64 being incorrectly configured for cross compilation.
To fix the errors, use the command:
For 64-bit builds: sudo update-alternatives --config x86_64-w64-mingw32-g++
For 32-bit Ubuntu Builds: sudo update-alternatives --config i686-w64-mingw32-g++
For 32-bit Debian Builds: sudo update-alternatives --config i586-w64-mingw32-g++
When provided with a prompt for which version to select, please choose "posix". Then retry the buildwin32.sh or buildwin64.sh