How to install unreal engine 4 on linux

Unreal Engine 4

Unreal Engine 4 is the latest version of the videogame Engine Created By Epic Games

The content of this article was originally written on Unreal Engine wiki and adapted specifically for Arch Linux.

Contents

Prerequisites

Gain access to the source code

To gain access, login or register at Epic Games Accounts and provide an accessible GitHub username at the bottom of the Epic Games ‘Connected Accounts Dashboard’ page. You will then receive an invite to access the private Github repository.

Compilation

You can compile manually from a downloaded GitHub release or install from AUR.

Compile manually from source code

You can get the most recent releases [dead link 2021-05-17 ⓘ] on GitHub as zips.

Generate project files:

This will compile the Unreal Engine and the Unreal Editor.

Installing from the AUR

Unreal Engine 4 is available in the AUR as the unreal-engine AUR package. You might have to fix permissions for UE4 to precompile shaders on first launch:

70 GiB installed (after compiling shaders on first launch) and needs

120 GiB to build with an output ABS package of

9 GiB when compressed. This AUR package downloads

10 GiB of source files plus

5 GiB of dependencies.

Since the repository is private, you can set up an SSH key so your GitHub account is used to download the source.

For a smaller download you can use .zip releases [dead link 2021-05-17 ⓘ] as a source for PKGBUILD. Note that this link will not work unless you first follow the steps outlined above.

Compilation time

The compilation can take from 20 minutes up to a few hours depending on your machine. As an example on a AMD FX-8350 (8 threads) with 16GB DDR3 on a SSD and Clang 3.8.1 takes roughly 40 minutes. (This does not include shaders compilation)

Troubleshooting

Compilation problems

If the compilation fails you should try building the Editor using the Debug profile[1]:

However, this might have some performance impact.

Another approach would be to use different clang version (e.g. 3.8 or 4.0)

Loading times

The editor takes a long time to load. A patched version of glibc , glibc-dso AUR , can be used to alleviate this issue. Once the package is installed, enable the optimization by setting the following environment variable[2]:

Runtime problems

If the editor does not start from the menu, or something does not work right, start it in a console and check the output for errors.

C++ code project problems

After creating a code project, the new project opens in a text editor instead of in UE4Editor as it should. After re-launching the editor, the new project shows up and can be opened, but on the first run, it takes a half-hour or so to compile, and since this happens in the background (no GUI) it might not seem to be doing anything. The CPU usage should show that it is still compiling, and you may want to launch the editor from a console to see progress.

Читайте также:  Узнать марку процессора linux

If while trying to open the project in UE for the first time, you get a message about editor modules being out of date, you need to build the UE4Editor target in your IDE. Do not abort this build, or you will brick UE4 and will need to reinstall unreal-engine . Afterward, it will open and ask you to rebuild the project class, after which you can actually start working on your new project.

Note that completing both of these rebuilds can very well take over an hour, depending on your system specs.

Engine modules are out of date, and cannot be compiled while the engine is running. Please build through your IDE

First, in your source folder in your project, check that .Target.cs and Editor.Target.cs has «DefaultBuildSettings = BuildSettingsVersion.V2;» in the section base(Target) < . >If it does not work, check the file Engine/Source/Developer/DesktopPlatform/Private/DesktopPlatformBase.cpp in your Unreal Engine source code, look for the line `Arguments += » -Progress -NoEngineChanges -NoHotReloadFromIDE»;` et remove the two last options : `Arguments += » -Progress»;`

— Re-compile Unreal Engine — Launch your project and accept the rebuild

Disable Tooltips

UE4’s mouse-over tooltips might be rendered very slow. They can be disabled by adding to

Random freeze under KDE

Disable index file content in the KDE file search options.

Slow rendered tooltips in KDE

Epic suggests allowing compositing for the Unreal Editor, which is stopped by default. Source: https://www.ue4community.wiki/Legacy/Linux_Known_Issues#KDE

Blank window in Blueprint with multi-monitor configuration

To fix the big blank window go to Edit Preferences -> User interface -> Enable Window Animation and activate the checkbox

Additional Content

Starter Content

The StarterContent project is installed to /opt/unreal-engine/Samples/StarterContent/StarterContent.uproject, you can browse to it from the launcher.

Marketplace Apps

The launcher with the Unreal Marketplace is not available for Linux yet[3], so apps like the ContentExamples project cannot be installed from Linux[4].

The marketplace apps can be downloaded using the launcher on Windows (or Mac), they are stored in /Program Files (x86)/Epic Games/Launcher/VaultCache/ .

There are several options to download Marketplace content natively:

  • use lutris and the Epic Games Store installer, with disabled sandbox you can add content directly into your projects
  • use Epic Asset Manager from flathub or eam-gitAUR which lets you download the assets to the vault
  • there is an implementation of UE4 Marketplace Downloader written in JS.

Источник

Unreal Engine 4 (Русский)

Unreal Engine 4 — последняя версия движка для видеоигр, созданная Epic Games

Содержимое этой статьи было первоначально написано на этой странице и адаптировано специально для Arch Linux.

Contents

Минимальные требования

  • Intel или Amd CPU@2.5GHz Quad Core 64 бит
  • GPU: NVIDIA GeForce GTX 470 или AMD Radeon 6870 HD series
  • RAM: 8 GB

Установка

Установка из AUR

Unreal Engine 4 доступен в AUR как пакет unreal-engine AUR .

Пакет весит 22 ГБ после установки, поэтому для сборки требуется около 100 ГБ свободного места. Существует около 7 ГБ исходных файлов для загрузки, а компиляция может занять несколько часов.

Поскольку репозиторий является приватным, вы можете настроить SSH-ключ, чтобы ваша учетная запись GitHub использовалась для загрузки источника.

Так-же рекомендуется увеличить размер папки tmp (исходный размер 7.8), либо сменить каталог сборки.

Для уменьшения размера загрузки, вы можете скачать релиз как tar.gz [устаревшая ссылка 2020-08-06] после входа в github.com, а затем использовать этот файл в качестве источника в PKGBUILD.

Читайте также:  Как выключить процесс windows

Установка из исходного кода

Получение

Сначала зарегистрируйтесь на UnrealEngine.com и перечислите свою учетную запись GitHub в свою учетную запись Epic Games. После регистрации вы сможете просмотреть исходный код [устаревшая ссылка 2020-08-06] .

Компиляция

Исправление проблем

Проблемы с компиляцией

Если компиляция не удалась, попробуйте собрать редактор с помощью профиля Debug:

Проблемы во время выполнения

Если редактор не запускается из меню, или что-то не работает правильно, запустите его в консоли и проверьте вывод на наличие ошибок.

Проблемы с проектом кода на C++

После создания проекта кода новый проект открывается в текстовом редакторе, а не в UE4Editor, как это должно быть. После повторного запуска редактора новый проект появляется и может быть открыт, но при первом запуске для компиляции требуется около получаса, и поскольку это происходит в фоновом режиме (без GUI), это может показаться недействительным. Использование ЦП должно показывать, что оно все еще компилируется, и вы можете запустить редактор с консоли, чтобы увидеть прогресс.

Отключение всплывающих подсказок

Наведение указателя мыши на всплывающие подсказки UE4 может оказаться очень медленной процедурой. Их можно отключить, добавив

Случайное зависание под KDE

Отключите содержимое индексного файла в параметрах поиска файлов KDE.

Пустой огромный квадрат в Blueprint

Если вы используете мультимониторную конфигурацию и переместили blueprint на второй экран, и при вызове контекстного меню (ПКМ в blueprint) у вас проявляется данный баг, то откройте Edit Preferences -> User interface и поставьте галочку напротив Enable Window Animation и перезапустите UnrealEngine.

Дополнительный контент

Стартовый контент

Проект StarterContent установлен в /opt/unreal-engine/Samples/StarterContent/StarterContent.uproject, вы можете перейти к нему с панели запуска.

Приложения marketplace

Лаунчер с Unreal Marketplace недоступен для Linux еще [1], поэтому приложения, такие как проект ContentExamples, не могут быть установлены из Linux[2].

Приложения marketplace можно загрузить с помощью лаунчера в Windows (в Mac также может работать), они хранятся в:

Источник

Unreal Engine 4 Сборка проектов на Linux

Вступление

При написании данной статьи использовался движок Unreal Engine 4.19.2, который был собран из исходных файлов, склонированных с официального репозитория Epic Games на GitHub. Напоминаю, что репозиторий Epic Games приватный, потребуется связать профиль Unreal с профилем GitHub, чтобы получить доступ. Делается это через настройки.

Клонирование и сборка движка проводилась согласно инструкции по статье документации на официальном сайте Unreal Engine.

Подготовка к сборке

Чтобы произвести сборку проекта, необходимо сделать предварительные настройки, учесть особенности.

  1. Интерпретатор компилятора не работает с кириллицей, поэтому старайтесь избегать имён папок и файлов на кириллице.
  2. Если окружение вашего рабочего стола русифицировано, то не создавайте и не храните проекты в стандартном их расположении (/home/Документы/UnrealProjects), т. к. это противоречит первому пункту.
  3. Было замечено, что на Linux компиляция шейдеров проходит заметно медленнее, чем на Windows. Вероятно, процесс компиляции не до конца оптимизирован.
  4. Первая сборка проекта будет проходить долго, последующие повторные сборки будут быстрее.
  5. Нельзя называть проект именем «test», по неизвестным причинам проект уходит в бесконечную компиляцию. Скорее всего, это банальный баг.

Сборка

Выберете пункт в меню, чтобы начать сборку: File/Package Project/Linux

Дождитесь окончания сборки.

По окончанию сборки исполнительный файл будет находится по такому пути:

Время сборки зависит от мощности вашего компьютера и от сложности (объёма) самого проекта.

Сборка может идти даже более двух часов, запаситесь терпением.

Источник

Installing Unreal Engine

Steps for installing Unreal Engine

This page assumes you have prior knowledge of the following topics. Please read them before proceeding.

This page describes how to download and install Unreal Engine.

The instructions below are for Windows and macOS. We currently don’t provide a binary installer of Unreal Engine for Linux.

To use Unreal Engine on Linux, you can compile it from source. For more information, see theВ Linux Quick Start Guide В documentation.

Читайте также:  Linux adb no permissions

To download and install Unreal Engine, you need to:

Download and install the Epic Games Launcher.

Sign up for an Epic Games account, if you don’t have one.

Sign in to the Epic Games Launcher.

Install Unreal Engine.

Download and Install the Epic Games Launcher

The Unreal Engine tab in the Epic Games Launcher is where you manage all of your Unreal Engine (UE) installations. You can have multiple versions of UE installed on the same computer.

To download and install the Launcher, follow these steps:

Select the license type that best matches how you intend to use UE.

There are two types of licenses available:

Publishing, if you plan to make games.

Creators, if you plan to make other types of content.

You can learn more about the different kinds of licensing available from the Unreal Engine FAQ .

Click the DOWNLOAD NOW button that corresponds to the license type you selected. This will download the Launcher installer to your computer. Depending on your operating system settings, you might be asked to select a save location, or have to approve a security prompt before the download can start.

After the download finishes, run the installer and wait for it to complete.

In addition to the Launcher, this may also install other programs you require to run Unreal Engine, such as DirectX.

Create an Epic Games Account

After the setup program installs the Epic Games Launcher on your machine, you will be prompted to sign in with your Epic Games account.

If you have an account, sign in to the Launcher and continue to the next section.

If you don’t have an account, click Sign Up to create one. You can sign up for an Epic Games account with your email, or with a supported social media or gaming platform account.

You can also proceed without creating an account by clicking Sign In Later. However, you will not be able to download or use Unreal Engine without an account.

Your account information is processed in accordance with the Epic Games Privacy Policy .

After you’ve created your account, Sign In to the Launcher.

Install Unreal Engine

Now that you’ve signed in to the Epic Games Launcher, you’re ready to install Unreal Engine.

Click the Unreal Engine tab inside the Epic Games Launcher, then click the Install Engine button.

(Optional) Click the Browse button to change the install path.

Click the Options button to select which Engine components you want to install. This is where you select components such as:

engine source code

You can add or remove components from an installed version of Unreal Engine at any time, by clicking the drop-down arrow next to the Launch button for that version, then selecting Options.

Before you install Unreal Engine, make sure you have enough disk space. Requirements vary depending on the engine components you select. The Options screen will show you how much space you need for the installer download, as well as the engine itself.

After you finish selecting the engine components you need, click the Apply button.

Click the Install button and wait for the installation to complete. Depending on your system specifications and Internet connection speed, downloading and installing Unreal Engine can take between 10 to 40 minutes, sometimes longer.

You can have multiple versions of Unreal Engine installed. To add more versions, in the Library tab, click the + button next to ENGINE VERSIONS, then select the Engine version you want to install from the drop-down and click Install.

Источник

Оцените статью