Skip to content

Prepare Engine (Linux)

BleuRaven edited this page Nov 16, 2024 · 16 revisions

About Windows: https://github.com/xavier150/MMVS/wiki/Prepare-Engine-(Windows)

Get sources from GitHub

Open console from M:\MMVS_EngineFiles (Skip if it already exists)

git clone git@github.com:EpicGames/UnrealEngine.git

Prepare Files

Open console from the M:\MMVS_EngineFiles\UnrealEngine folder. 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 

List available tags and update: Press the 'q' button to exit from interactive mode.

git tag
git checkout 5.4.4-release

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

.\Setup.bat
.\GenerateProjectFiles.bat

Set Engine Config

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">

<SourceFileWorkingSet> 
<Provider>None</Provider> 
<RepositoryPath></RepositoryPath> 
<GitPath></GitPath> 
</SourceFileWorkingSet>
</Configuration>

Set IDE on Linux Open BaseEngine.ini

nano ./Engine/Config/BaseEngine.ini

And include the following:

[/Script/SourceCodeAccess.SourceCodeAccessSettings]
PreferredAccessor=VisualStudioCode

Build Engine

make

OR ->Open "UE5.code-workspace"

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