1
0
cuberite-2a/COMPILING.md

37 lines
1.2 KiB
Markdown
Raw Normal View History

COMPILING
=========
2013-12-21 14:14:30 +00:00
To compile MCServer on *nix, you need CMake and make, as well as a C compiler, C++ compiler and linker.
Release Mode
------------
Release mode is preferred for almost all cases, it has much better speed and less console spam. However, if you are developing MCServer actively, debug mode might be better.
cmake . -DCMAKE_BUILD_TYPE=RELEASE && make
2013-12-21 14:14:30 +00:00
Debug Mode
----------
Debug mode is useful if you want more debugging information about MCServer as it's running or if you want to use a debugger like GDB to debug issues and crashes.
cmake . -DCMAKE_BUILD_TYPE=DEBUG && make
2013-12-21 14:38:37 +00:00
32 Bit Mode
-----------
This is useful if you want to compile MCServer to use on another 32-bit machine. It can be used with debug or release mode. To use 32 bit mode, simply add:
-DFORCE_32=1
2013-12-21 14:38:37 +00:00
to your cmake command and 32 bit will be forced.
2014-01-16 17:51:01 +00:00
Compiling for another computer
------------------------------
When compiling for another computer it is important to set cross compiling mode. This tells the compiler not to optimise for your machine. It can be used with debug or release mode. To enable simply add:
-DCROSSCOMPILE=1
to your cmake command.