Skip to content

Prepare Engine (Linux)

BleuRaven edited this page Sep 1, 2025 · 16 revisions

Get sources from GitHub

Open console from /media/[USER]/MMVS_EngineFiles (Skip if it already exists)

git clone [email protected]:EpicGames/UnrealEngine.git

Prepare Files

Open console from the /media/[USER]/MMVS_EngineFiles/UnrealEngine folder or move to folder cd UnrealEngine Update local references with the latest changes from the server:

git fetch

Reset all local changes and switch branches:

git clean -fdx;
git reset --hard HEAD;
git stash clear;

Check is clean with:

git status

List available tags and update:

  • Press 'Space' to move at the down of the page.
  • Press the 'q' button to exit from interactive mode.
git tag
git checkout 5.4.4-release

Prepare Linux

sudo apt update
sudo apt install mono-complete

Run the setup and project files generation scripts for Unreal Engine:

./Setup.sh;
./GenerateProjectFiles.sh ~vscode;
./Engine/Build/BatchFiles/Linux/SetupToolchain.sh;

Set Engine Config

For disable git check open BuildConfiguration.xml

nano ./Engine/Saved/UnrealBuildTool/BuildConfiguration.xml

And replace its content with:

<?xml version="1.0" encoding="utf-8" ?>
<Configuration xmlns="https://www.unrealengine.com/BuildConfiguration">
  <ProjectFileGenerator>
    <Format>VisualStudioCode</Format>
  </ProjectFileGenerator>
  <SourceFileWorkingSet> 
    <Provider>None</Provider> 
    <RepositoryPath></RepositoryPath> 
    <GitPath></GitPath> 
  </SourceFileWorkingSet>
</Configuration>

For set IDE on Linux open BaseEngine.ini

nano ./Engine/Config/BaseEngine.ini

And include the following:

[/Script/SourceCodeAccess.SourceCodeAccessSettings]
PreferredAccessor=VisualStudioCode

For speed up Engine Compiling open BaseEngine.ini

nano ./Engine/Config/BaseEngine.ini

Search and WorkerProcessPriority and change it from -1 to 1

Build Engine

Use command

make

OR

  • Open "UE5.code-workspace"
  • Set Launch UnrealEditor (Development)
  • Run Build (Ctrl+F5)

Open Editor

./Engine/Binaries/Linux/UnrealEditor

More Infos

https://github.com/EpicGames/UnrealEngine https://youtu.be/Pt8oudvCPUA?si=CVZyrb8ixdmLFTGG https://voithos.io/articles/building-unreal-engine-from-source-for-vscode/

Clone this wiki locally