A step by step guide of build CRYENGINE for the first time.
Before you are able to build the CRYENGINE , you will need to configure the WAF Build System to your needs.
To do so, you will need to locate the cry_waf exectuable file. It is worth noticing that all interaction with the WAF Build System will be handled by this file.
When you run CryWAF the first time, the WAF Interface will ask you for a selection of user specific configuration options. The following section will guide you thorough the most important one.
Each selection can be changed individually after the configuration step has finished.
Automatic Solution Generation:
If enabled WAF is able to create a project for your favorite IDE.
The CRYENGINE is collection of many modules which interact with each other in various ways. The more you get to know the CRYENGINE , the more modules you will discover and potentially use.
WAF allows you to categorize all modules within the CRYENGINE space into Specs. Depending on your Specs selection, you will be able to see the various dependent modules in the final generates solution.
There are two Specs which should be of initial interest to you:
If you are working on the game as well as the editor. Select both Specs. This allows you to quickly switch between buildpipelines. After all if you are working on the game only, you are not interested on waiting for the Editor to re-compile.
Example result in Visual Studio
Once Cry WAF is configured you will be able to compile the various CRYENGINE components. This can be done via the WAF Command-Line Interface or from within the chosen IDE.
Using the WAF Command-Line Interface is straight forward but requires some knowledge about how the WAF Command is put together.
In the previous section we already located the cry_waf entry point executable. This time you will instruct it to build the CryEngine component you are interested in.
A build command is made of the following component:
cry_waf has to be executed from the root of the CryEngine SDK folder!
To generate a Visual Studio solution execute <SDK_DIR>/cry_waf.exe and select Regenerate -> Visual Studio Solution from the WAF Interface.
WAF will generate a Visual Studio Solution file for you which can be found in <CRY_SDK>/Solutions called CRYENGINE.sln.
Once you have opened the solution, ensure that you have the spec and platform selected that you want to build, as well as the correct startup project.
Example compile and launch GameSDK [Profile] - X64:
If you startup the game and you are faced with a black screen. Check that you've installed all needed assets into your source code root directory.
Only use Build-> Build Solution
Do not use the IncrediBuild Build Interface.