I can't get this to work. With a clean git pull and makepkg -sirc, it errors out partway through on:
cp: cannot stat '$REPO/src/unreal-engine/LocalBuilds/Engine/Linux/*': No such file or directory
(the $REPO is just marking the path of the repo, somewhere in ~/Downloads, not literally in the output.)
There's a big scary red line just a bit further up:
Unhandled exception: One or more errors occurred. (The type initializer for 'UnrealBuildBase.Unreal' threw an exception.)
(I tried a bit more fiddling, e.g. creating that directory or putting a file in, but it just ends up hanging later on, with no error message and no CPU usage. I figure it's probably caused by the same problem.)
Pinned Comments
alexbelm48 commented on 2026-03-28 22:40 (UTC) (edited on 2026-05-16 08:26 (UTC) by alexbelm48)
I currently recommend building
5.6.1over any version of5.7as this branch holds a notoriously broken Vulkan RHI implementation, leading to unexpectedVK_ERROR_DEVICE_LOSTcrashes due to a race condition. Just modifypkgveron your end with the aformentioned version and you should be good to go.A discussion here goes into detail about the issue, but no proper fix is currently planned by Epic.A merge request has also been proposed here, but the fix itself was in the end apparently not very effective.The Vulkan crashes were recently fixed in
5.8, check here.You can still try on your own if you still insist on using
5.7.x, especially if you're motivated to fix this issue on your side. If so, don't hesitate to send a comment with your patch, I could add you as a contributor to this package if you are interested.Reducing crashes can be done by doing the following two steps:
DefaultEngine.ini(either in your project or the editor's installation dir,/opt/unreal-engine/Engine/Config/DefaultEngine.iniby default)ConsoleVariables.inifile (/opt/unreal-engine/Engine/Config/ConsoleVariables.iniby default):alexbelm48 commented on 2026-03-20 16:42 (UTC) (edited on 2026-03-28 23:25 (UTC) by alexbelm48)
Do note that using Wayland for Unreal Engine is currently not recommended as half of the UI interactions are broken. This is due to a recent upgrade to SDL3 which defaults the use of Wayland protocols over X11 when launching on a Wayland-based session.
You can work around this (or at least improve your experience) while still being on Wayland by opening a separate Xorg windowed server:
You can, of course, replace
kwin_x11with your desktop environment window manager (GNOME ismutterfor example).Neko-san commented on 2022-11-01 02:32 (UTC) (edited on 2023-06-25 01:19 (UTC) by Neko-san)
@juancarlospaco this is easily done on your own system, not in a PKGBUILD, given that building packages runs as root:
Permission issues like this are already mentioned on the UE Arch wiki page: https://wiki.archlinux.org/title/Unreal_Engine_4#Installing_from_the_AUR
This is a user system problem; I already did what I could without needing users to do the above by giving the
777permissions. If it still gives you trouble, you'll have to use the example to solve it or change the install location to somewhere you have user permissions by default (as I cannot do this for you).