- The flow should be now as simple as ./GenerateProjectFiles.sh + make <target> (you will need OAUTH_TOKEN variable set and you may need to answer "y" occasionally - when removing existing files). - Archvies should be now automatically (re-)downloaded by GetAssets.py script by nycat. They won't be re-downloaded if the files on github have not been updated since the last download. - BuildThirdParty.sh is invoked by the above script and only builds LND (PR #469). It can still be invoked manually to build whatever if desired so, but watch out - you will need to take care not to build against too new glibc so you can distribute your game's binaries, and you will need to match options we built libraries with (e.g. Xinerama/XRandR headers for SDL2). - UpdateDeps.sh now should only be called by GenerateProjectFiles.sh. It does a lot less work and shares variables with GetAssets.py Resolves TTP #347988. [CL 2319227 by Dmitry Rekman in Main branch]
Build scripts for native Linux build
This document describes how to build UE4 natively on a Linux host. So far this has only been tested on Debian/Sid and Ubuntu/Precise.
A wiki page page regarding building on linux is also maintained at https://wiki.unrealengine.com/Building_On_Linux, and public IRC discussion happens on #UE4Linux on FreeNode.
Prerequisites
You will need mono + gmcs and several other packages installed in order to build EU4. The command to install these on Ubundu 12.04 (Precise) is:
$ apt-get install mono-mcs mono-xbuild dos2unix clang-3.3 \
libogg-dev libmono-microsoft-build-tasks-v4.0-4.0-cil \
libmono-system-data-datasetextensions4.0-cil \
libmono-system-web-extensions4.0-cil \
libmono-system-management4.0-cil
Building
-
Download the additional .zip archives for the master branch from Epic's GitHub Releases page at https://github.com/EpicGames/UnrealEngine/releases
-
Download v130 of the Steamworks SDK.
-
Install the downloaded dependencies with:
$ ./UpdateDeps.sh. -
Build third party libraries:
$ ./BuildThirdParty.sh. -
Build UnrealBuildTool (UBT) and generate top level Makefile:
$ ./GenerateProjectFiles.sh -
Build your targets using the top-level Makefile. e.g:
$ make UE4ClientOr by running
Build.shdirectly:$ Engine/Build/BatchFiles/Linux/Build.sh UE4Client Linux Debug