Prepare Engine (Linux) - xavier150/MMVS GitHub Wiki
- Dev Notes: Dev Notes
- Windows: Prepare Engine (Windows)
Open console from /media/[USER]/MMVS_EngineFiles (Skip if it already exists)
git clone [email protected]:EpicGames/UnrealEngine.git
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 to the bottom of the page.
- Press the 'q' button to exit 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;
For disabling 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 setting IDE on Linux open BaseEngine.ini
nano ./Engine/Config/BaseEngine.ini
And include the following:
[/Script/SourceCodeAccess.SourceCodeAccessSettings]
PreferredAccessor=VisualStudioCodeFor speeding up Engine Compiling open BaseEngine.ini
nano ./Engine/Config/BaseEngine.ini
Search for WorkerProcessPriority and change it from -1 to 1
Use command
make
OR
- Open "UE5.code-workspace"
- Set Launch UnrealEditor (Development)
- Run Build (Ctrl+F5)
MMVS use CPU Lightmass.
./Engine/Build/BatchFiles/Linux/Build.sh UnrealLightmass Linux Development -verbose
MMVS use some external plugins. The following plugin need to be installed in the engine, not in the project.
Please note: Fab store is not available on Linux... So you need download it on Windows first then copy the files in Linux. Discussion about Fab on Linux: https://forums.unrealengine.com/t/downloading-3rd-party-plugins-from-fab-in-linux/2086192
Assets Cleaner - Project Cleaning Tool
- Install it from Fab in Unreal Engine 5.4 Fab link
- Then copy the folder "AssetsCleaner" from Unreal Engine 5.4 to the build from source folder in
/media/[USER]/MMVS_EngineFiles/UnrealEngine/Engine/Plugins/Marketplace
CesiumForUnreal
- Install it from Fab in Unreal Engine 5.4 Fab link
- then copy the folder "CesiumForUnreal_5.4" from Unreal Engine 5.4 to the build from source folder in
/media/[USER]/MMVS_EngineFiles/UnrealEngine/Engine/Plugins/Marketplace
./Engine/Binaries/Linux/UnrealEditor
https://github.com/EpicGames/UnrealEngine https://youtu.be/Pt8oudvCPUA?si=CVZyrb8ixdmLFTGG https://voithos.io/articles/building-unreal-engine-from-source-for-vscode/