Difference between revisions of "Compiling Luanti"

From Minetest Developer Wiki
Jump to navigation Jump to search
(link to my MSYS2 compilation guide)
(rename Minetest to Luanti)
Line 1: Line 1:
 
{{Mbox|type=warning|text=
 
{{Mbox|type=warning|text=
'''This page is redundant with the compilation instructions that exist in the [https://github.com/minetest/minetest Minetest README]'''<br/>
+
'''This page is redundant with the compilation instructions that exist in the [https://github.com/minetest/minetest README]'''<br/>
 
''Link to the appropriate section in the README rather than here, and update any links that point to here!''
 
''Link to the appropriate section in the README rather than here, and update any links that point to here!''
 
}}
 
}}
  
''This page is about compiling Minetest for desktop platforms. For compiling Minetest for Android, see [[Android]].''
+
''This page is about compiling Luanti for desktop platforms. For compiling Luanti for Android, see [[Android]].''
  
 
== Compiling on GNU/Linux ==
 
== Compiling on GNU/Linux ==
Line 13: Line 13:
  
 
== Compiling on Windows ==
 
== Compiling on Windows ==
For compiling Minetest on Windows using MSYS2, see [https://wiki.voxelmanip.se/Compiling_on_Windows_using_MSYS2 Compiling on Windows using MSYS2].
+
For compiling Luanti on Windows using MSYS2, see [https://wiki.voxelmanip.se/Compiling_on_Windows_using_MSYS2 Compiling on Windows using MSYS2].
  
For compiling Minetest on Windows using MSVC, see the [https://github.com/minetest/minetest#compiling-on-windows-using-msvc Minetest README].
+
For compiling Luanti on Windows using MSVC, see the [https://github.com/minetest/minetest#compiling-on-windows-using-msvc Luanti README].
  
 
== Cross-compilation ==
 
== Cross-compilation ==
To compile a win32 version of Minetest in Linux with [https://en.wikipedia.org/wiki/MinGW MinGW] you can use the build script in <code>[https://github.com/minetest/minetest/blob/master/util/buildbot/buildwin32.sh utils/buildbot/buildwin32.sh]</code>.
+
To compile a win32 version of Luanti in Linux with [https://en.wikipedia.org/wiki/MinGW MinGW] you can use the build script in <code>[https://github.com/minetest/minetest/blob/master/util/buildbot/buildwin32.sh utils/buildbot/buildwin32.sh]</code>.
  
To compile a win64 version of Minetest in Linux with [https://en.wikipedia.org/wiki/MinGW MinGW] you can use the build script in <code>[https://github.com/minetest/minetest/blob/master/util/buildbot/buildwin32.sh utils/buildbot/buildwin64.sh]</code>.
+
To compile a win64 version of Luanti in Linux with [https://en.wikipedia.org/wiki/MinGW MinGW] you can use the build script in <code>[https://github.com/minetest/minetest/blob/master/util/buildbot/buildwin32.sh utils/buildbot/buildwin64.sh]</code>.
  
 
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.  
 
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.  
Line 35: Line 35:
  
 
[[Category:Core Engine]]
 
[[Category:Core Engine]]
[[Category:Compiling Minetest]]
+
[[Category:Compiling Luanti]]

Revision as of 22:10, 22 October 2024

Mbox warning.png This page is redundant with the compilation instructions that exist in the README
Link to the appropriate section in the README rather than here, and update any links that point to here!

This page is about compiling Luanti for desktop platforms. For compiling Luanti for Android, see Android.

Compiling on GNU/Linux

Please see the README.md file for instructions.

See also

Compiling on Windows

For compiling Luanti on Windows using MSYS2, see Compiling on Windows using MSYS2.

For compiling Luanti on Windows using MSVC, see the Luanti README.

Cross-compilation

To compile a win32 version of Luanti in Linux with MinGW you can use the build script in utils/buildbot/buildwin32.sh.

To compile a win64 version of Luanti 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