A step-by-step guide to building Unreal Engine 5.8 from source on Ubuntu 24.04. This article focuses on environment setup only and does not cover runtime issues such as Vulkan rendering, GPU memory, or project-specific troubleshooting.
Introduction
Unlike Windows, Unreal Engine on Linux is typically built directly from source because Epic Games Launcher is not available.
This article documents the complete environment setup process, including:
- Obtaining Unreal Engine source access
- Downloading the source code
- Installing dependencies
- Building the engine
- Configuring the NVIDIA driver
- Launching Unreal Editor
This guide intentionally excludes runtime troubleshooting, which will be covered separately.
Prerequisites
Before starting, make sure you have:
- Ubuntu 24.04 LTS
- Git
- A GitHub account
- An Epic Games account
You must link your GitHub account to your Epic Games account.
After accepting Epic’s GitHub organization invitation, you’ll gain access to the Unreal Engine repository.
1. Clone Unreal Engine
Create a workspace:
mkdir -p ~/projects_ue5cd ~/projects_ue5
Clone the engine:
git clone https://github.com/EpicGames/UnrealEngine.git
The initial clone requires tens of gigabytes of disk space, so ensure sufficient free storage before starting.
2. Download Dependencies
Enter the source directory:
cd UnrealEngine
Run:
./Setup.sh
This script automatically downloads:
- Third-party libraries
- Toolchains
- ShaderCompileWorker dependencies
- Platform SDKs
During execution, you may notice references to distributions such as Rocky Linux.
This is completely normal.
The script downloads dependencies for multiple supported Linux environments, even when running on Ubuntu.
3. Generate Project Files
Run:
./GenerateProjectFiles.sh
During the first execution, Unreal Engine automatically downloads and configures the required .NET SDK.
If the output reports that the Android SDK is missing, it can safely be ignored unless Android development is required.
4. Build Unreal Engine
The simplest build command is:
make -j$(nproc)
Alternatively, Unreal provides its own build script:
Engine/Build/BatchFiles/Linux/Build.sh UnrealEditor Linux Development
The initial build can take anywhere from tens of minutes to several hours depending on your hardware.
After a successful build, the editor executable is located at:
Engine/Binaries/Linux/UnrealEditor
5. Launch Unreal Editor
Launch the editor:
Engine/Binaries/Linux/UnrealEditor
Or open a specific project:
Engine/Binaries/Linux/UnrealEditor MyProject.uproject
The first launch usually takes significantly longer than subsequent launches because Unreal Engine needs to perform several initialization tasks, including:
- Starting ShaderCompileWorker
- Compiling shaders
- Initializing the Derived Data Cache (DDC)
This behavior is expected.
6. NVIDIA Driver Considerations
When launching Unreal Engine, you may encounter a warning similar to:
Installed Driver: xxx.xxRecommended Driver: xxx.xx
Avoid upgrading the driver immediately.
Instead, check the Unreal Editor log first.
If the log explicitly reports missing Vulkan extensions, then upgrading the NVIDIA driver is appropriate.
After upgrading, verify the installation using:
nvidia-smi
It is also recommended to verify the Vulkan runtime:
vulkaninfo
Ensure that Vulkan initializes correctly before attempting to launch Unreal Engine again.
7. Verify the Environment
After completing the previous steps, create a new Unreal Engine project.
For the initial verification, it is recommended to use:
- Games
- Blank
- Blueprint
This provides the simplest project configuration for confirming that the development environment has been built successfully.
Once the editor opens correctly, the environment setup is complete.
Useful Commands
Check the NVIDIA driver
nvidia-smi
Check the Vulkan runtime
vulkaninfo
Find large directories
sudo du -xh --max-depth=1 /
Conclusion
Building Unreal Engine 5.8 on Ubuntu mainly consists of the following steps:
- Obtain Epic Games source access
- Clone the Unreal Engine repository
- Run
Setup.sh - Run
GenerateProjectFiles.sh - Build the engine
- Verify or update the NVIDIA driver if necessary
- Launch Unreal Editor and create a test project
Although Linux requires source compilation, the overall workflow is straightforward once the environment has been configured correctly.
This article focuses solely on setting up the development environment. Runtime topics such as Vulkan configuration, rendering features, GPU memory management, and Linux-specific troubleshooting will be covered in separate articles.