In this post i want to compile UNREAL ENGINE game ,It is one of most popular engine game. For compiling we use compiler microsoft Visual C++ .Net 2017 in Win8.1.This toturial can be used in compiling UNREAL in Win10.For you can compile source, you should providing some prerequisites that will describe in below.
- For hardware requirements :
|Free Space HardDrive||more than 65 GB|
|Graphic Card||Compatible with Direct X11 or 12|
For more info about DirectX see this link:
For seeing what DX your GPU support in command prompt or power shell type:
In dxdiag you should see that your system support DX11 or DX12.
Supportted DirectX GPU list:
- For software requirement :
- Install SDK Win8.1 or Win10 for more info and guide see this link.
- Install VS2017 or VS2015 with C++ features and MFC.
- Download UNREAL ENGINE SOURCE from this link.
- After it, extract source, the name of source folder should be short for example my name of source folder is :”UnrealEngine” . I emphasize that using short name otherwise you will face with an error same below:
Severity Code Description Project File Line Suppression State
Error System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. UE4 G:\UnrealEngine\Unreal.Engine.v4.17.1.Source_p30download.com\Engine\Intermediate\ProjectFiles\EXEC 1
Error MSB3075 The command “..\..\Build\BatchFiles\Build.bat UE4Editor Win64 Development -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command. UE4 G:\VS2017\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets 44
- Make sure that you have free space more than 65GB, otherwise you can not compile it and you will have below error.
Error C1085 Cannot write compiler generated file: ‘G:\UnrealEngine\Engine\Intermediate\Build\Win64\UE4Editor\Development\MovieScene\Module.MovieScene.cpp.obj’: No space left on device UE4 G:\UnrealEngine\Engine\Intermediate\Build\Win64\UE4Editor\Development\MovieScene\Module.MovieScene.cpp 1
Error C1085 Cannot write compiler generated file: ‘G:\UnrealEngine\Engine\Intermediate\Build\Win64\UE4Editor\Development\LevelEditor\Module.LevelEditor.1_of_3.cpp.obj’: No space left on device UE4 G:\UnrealEngine\Engine\Intermediate\Build\Win64
After you provided upper prerequisites: Do three works.
- Open your source folder in Explorer and run Setup.bat. This will download binary content for the engine, as well as installing prerequisites and setting up Unreal file associations. On Windows 8, a warning from SmartScreen may appear. Click “More info”, then “Run anyway” to continue.A clean download of the engine binaries is currently 3-4gb, which may take some time to complete. Subsequent checkouts only require incremental downloads and will be much quicker.
- Run GenerateProjectFiles.bat to create project files for the engine. It should take less than a minute to complete.
- Load the project into Visual Studio by double-clicking on the UE4.sln file. Set your solution configuration to Development Editor and your solution platform to Win64, then right click on the UE4 target and select Build. It may take anywhere between 10 and 40 minutes to finish compiling, depending on your system specs.
- After compiling finishes, you can load the editor from Visual Studio by setting your startup project to UE4 and pressing F5 to debug.
- You can see in below video compiling UNREAL ENGINE source