CRYENGINE compilation on Linux requires that you have some externally provided packages installed on your system.
We support the Ubuntu distribution. Other distributions will likely work too but the following steps have been tested on Ubuntu 14.
The following table explains how to make sure you have every package required for compilation installed.
|Package||How to install (Ubuntu)|
|Build Essential||sudo apt-get install build-essential|
|SDL2||sudo apt-get install libsdl2-dev|
|NCurses||sudo apt-get install libncurses5-dev libncursesw5-dev|
|Chrpath||sudo apt-get install chrpath|
|Python + TK||sudo apt-get install python python-tk|
|Clang (optional)||sudo apt-get install clang-3.4|
The CRYENGINE runtime and game code can be compiled for 64-bit Linux using the WAF build system.
In order to compile you can enter the following command in a Linux terminal in the root directory:
./cry_waf.sh build_linux_x64_<compiler>_<configuration> --project-spec=<spec>
with the following replacements
|<compiler>||Compiler of choice. Can be either gcc or clang.|
|<configuration>||Build configuration. Possible values are release, performance, profile and debug.|
|<spec>||Name of the chosen project spec (for example gamesdk, gamesdk_and_tools, gamezero...).|
For example, to build the CRYENGINE with the GameSDK project in Profile configuration with GCC, type:
./cry_waf.sh build_linux_x64_gcc_profile --project-spec=gamesdk
This command will produce the binaries for the project in the BinLinux64<compiler> sub-folder (in this case BinLinux64gcc).
Visit WAF Build System for more informations about WAF and more advanced options.
CRYENGINE does not support the open source graphics drivers usually enabled by default in Linux distributions as they are often not fully OpenGL compliant.
Please make sure you install the latest proprietary drivers for your graphics card.
For Ubuntu you can follow these guides to get the correct vendor drivers installed:
- NVIDIA graphics cards: https://help.ubuntu.com/community/BinaryDriverHowto/Nvidia
- AMD graphics cards: https://help.ubuntu.com/community/BinaryDriverHowto/AMD
CRYENGINE on Linux also uses the SDL2 library runtime.
The command to install it on Ubuntu is:
Stack Traces & Core Dumps
Stack traces will be written to a file name backtrace.log in the current working directory of the executable.
To enable core dumps, please run the Launcher with the generated shell script Launch_GameSDK.sh in the BinLinux64<compiler> folder.
These are the current known limitations specific to the Linux version of CRYENGINE:
- Hardware tessellation is not supported.
- CRYENGINE requires at least an OpenGL 4.3 compliant system.
- Some older graphics drivers are not supported. For this reason it is recommended to update your graphics driver before running CRYENGINE.