Package Details: unreal-engine 5.5.0-0

Git Clone URL: https://aur.archlinux.org/unreal-engine.git (read-only, click to copy)
Package Base: unreal-engine
Description: A 3D game engine by Epic Games which can be used non-commercially for free.
Upstream URL: https://www.unrealengine.com/
Keywords: 3D engine game ue5 Unreal
Licenses: GPL3, custom:UnrealEngine
Submitter: acerix
Maintainer: Shatur (Neko-san)
Last Packager: Neko-san
Votes: 76
Popularity: 1.12
First Submitted: 2016-05-01 18:37 (UTC)
Last Updated: 2024-11-16 03:10 (UTC)

Dependencies (29)

Required by (1)

Sources (6)

Pinned Comments

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:

sudo groupadd unrealengine-users
sudo usermod -aG unrealengine-users (your-username)
sudo chown -R root:unrealengine-users /opt/unreal-engine
sudo chmod -R 775 /opt/unreal-engine

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 777 permissions. 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).

zerophase commented on 2021-05-27 08:15 (UTC) (edited on 2021-05-30 08:41 (UTC) by zerophase)

Will update to 5.0 when it is released.

Latest Comments

1 2 3 4 5 6 .. 81 Next › Last »

KarthikJay commented on 2024-11-19 15:56 (UTC)

I keep getting generated.h file not found errors when compiling?:

.cache/paru/clone/unreal-engine/src/unreal-engine/Engine/Plugins/Experimental/LearningAgents/Source/Learning/Private/LearningAdamOptimizer.cpp:8:10: fatal error: 'Learning.ispc.generated.h' file not found
    8 | #include "Learning.ispc.generated.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
 Compile Module.Learning.cpp: Exited with error code 1 . The build will fail.

Any ideas on how to get the build graph to build in the right way with multiple threads?

Neko-san commented on 2024-08-11 17:17 (UTC) (edited on 2024-08-11 18:06 (UTC) by Neko-san)

That's really strange because the correct archive URL does seem point to the proper filename (https://github.com/EpicGames/UnrealEngine/blob/cecad67fcf69f0bec08bda2e8d6e1801930962c0/Engine/Build/BatchFiles/Linux/SetupToolchain.sh#L28), but according what you've shown it just ignores it then tries to extract an HTML file instead with a filename missing the native-linux prefix from the cache... For now, I'll implement grabbing the SDK manually in the PKGBUILD.

hurrikhan commented on 2024-08-11 17:02 (UTC) (edited on 2024-08-11 17:03 (UTC) by hurrikhan)

I'm not sure anymore as I've fiddled a bit with everything but I believe the "cd" line may interfere with finding the scripts and their relative paths. (I can't check now as the build is going on now and I'd rather let it finish.) Here I've deleted that line.

Anyway your update fixes half of the problem.

In "SetupToolchain.sh" it does this:

Downloading toolchain.
Using cached toolchain.
Extracting toolchain.
tar: This does not look like a tar archive

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Debugging the script ...

TOOLCHAIN_VERSION=v22_clang-16.0.6-centos7
TOOLCHAIN_URL=http://cdn.unrealengine.com/Toolchain_Linux/native-linux-v22_clang-16.0.6-centos7.tar.gz
Downloading toolchain.
Using cached toolchain.
Extracting toolchain. '../.git/ue4-sdks/v22_clang-16.0.6-centos7.tar.gz'
cmd=tar -xvf ../.git/ue4-sdks/v22_clang-16.0.6-centos7.tar.gz -C Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/
tar: This does not look like a tar archive

The relative path ../.git/ue4-sdks/v22_clang-16.0.6-centos7.tar.gz is correct as the cwd is "Engine".

The file however contains ...

<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>

<center>CloudFront</center> </body> </html>

I've downloaded the archive by hand myself (using wget) and it's a proper tar.gz but it's called native-linux-v22_clang-16.0.6-centos7.tar.gz

wget http://cdn.unrealengine.com/Toolchain_Linux/native-linux-v22_clang-16.0.6-centos7.tar.gz

I've removed the broken file and symbolically linked to the one I've downloaded myself and the build is going further.

So the culprit is thus SetupToolchain.sh and I'm surprised it works for anybody.

Thanks for your help.

Neko-san commented on 2024-08-11 16:06 (UTC)

Let me know if it does it again with this push, and I'll see what I can do from there

Neko-san commented on 2024-08-11 15:47 (UTC)

Okay, so I found the reason and it's pretty stupid. I'll update the PKGBUILD in a moment.

Neko-san commented on 2024-08-11 15:29 (UTC)

If (hopefully) the solution for the issue is just to download and place the toolchain manually (https://forums.unrealengine.com/t/error-plataform-linux-is-not-valid-platform-to-build/471670/3), then I'll try to see what I can do about pre-installing it to that location in the PKGBUILD before the compilation actually starts. I'm not on Arch anymore, but I don't think this should be particularly difficult to solve.

hurrikhan commented on 2024-08-11 15:22 (UTC)

No chroot or anything. I've done my first attempt with "yay", which installed the icu63 package. It failed the way I mentioned.

Then I've cloned https://aur.archlinux.org/unreal-engine.git and did a makepkg inside. If failed the exact same way.

I've installed the dotnet runtime and sdk 7.0 and 6.0 additionally to the 8.0 that was already on my machine : same error.

I've tried to add "--force" next to ./Setup.sh in the PKGBUILD file (as per https://forums.unrealengine.com/t/error-plataform-linux-is-not-valid-platform-to-build/471670/3) And it didn't help.

Neko-san commented on 2024-08-11 15:17 (UTC) (edited on 2024-08-11 15:18 (UTC) by Neko-san)

I find that error odd, because the SDK (Clang compiler, other files) is supposed to be either downloaded or chosen on this line:

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=unreal-engine#n190

And you aren't the first to mention having this error. Are you using a Chroot or something for building?

hurrikhan commented on 2024-08-11 15:00 (UTC) (edited on 2024-08-11 15:06 (UTC) by hurrikhan)

Build fails with:

Log file: /home/mylogin/Library/Logs/Unreal Engine/LocalBuildLogs/UBA-UnrealEditor-Linux-DebugGame.txt
Using 'git status' to determine working set for adaptive non-unity build (/home/mylogin/Downloads/AUR/unreal-engine/src/unreal-engine).
Creating makefile for UnrealEditor (no existing makefile)
Total execution time: 0.36 seconds
Platform Linux is not a valid platform to build. Check that the SDK is installed properly and that you have the necessary platorm support files (DataDrivenPlatformInfo.ini, SDK.json, etc).
Took 0.48s to run dotnet, ExitCode=6
UnrealBuildTool failed. See log for more details. (/home/mylogin/Library/Logs/Unreal Engine/LocalBuildLogs/UBA-UnrealEditor-Linux-DebugGame.txt)
AutomationTool executed for 0h 0m 20s
AutomationTool exiting with ExitCode=6 (6)
RunUAT ERROR: AutomationTool was unable to run successfully. Exited with code: 6
Error: Build failed; try searching the output for suspicious messages.
==> Entering fakeroot environment...
==> Starting package()...
cp: cannot stat '/home/mylogin/Downloads/AUR/unreal-engine/src/unreal-engine/LocalBuilds/Engine/Linux/*': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...

And if I look in the aforementioned log file:

Using 'git status' to determine working set for adaptive non-unity build (/home/mylogin/Downloads/AUR/unreal-engine/src/unreal-engine).
Creating makefile for UnrealEditor (no existing makefile)
Total execution time: 0.36 seconds
Platform Linux is not a valid platform to build. Check that the SDK is installed properly and that you have the necessary platorm support files (DataDrivenPlatformInfo.ini, SDK.json, etc).
BuildException: Platform Linux is not a valid platform to build. Check that the SDK is installed properly and that you have the necessary platorm support files (DataDrivenPlatformInfo.ini, SDK.json, etc).
   at UnrealBuildTool.UEBuildTarget.Create(TargetDescriptor Descriptor, Boolean bSkipRulesCompile, Boolean bForceRulesCompile, Boolean bUsePrecompiled, UnrealIntermediateEnvironment IntermediateEnvironment, ILogger Logger) in /home/mylogin/Downloads/AUR/unreal-engine/src/unreal-engine/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildTarget.cs:line 1269
   at UnrealBuildTool.UEBuildTarget.Create(TargetDescriptor Descriptor, BuildConfiguration BuildConfiguration, ILogger Logger) in /home/mylogin/Downloads/AUR/unreal-engine/src/unreal-engine/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildTarget.cs:line 1226
   at UnrealBuildTool.BuildMode.CreateMakefileAsync(BuildConfiguration BuildConfiguration, TargetDescriptor TargetDescriptor, ISourceFileWorkingSet WorkingSet, ILogger Logger) in /home/mylogin/Downloads/AUR/unreal-engine/src/unreal-engine/Engine/Source/Programs/UnrealBuildTool/Modes/BuildMode.cs:line 1114
   at UnrealBuildTool.BuildMode.BuildAsync(List`1 TargetDescriptors, BuildConfiguration BuildConfiguration, ISourceFileWorkingSet WorkingSet, BuildOptions Options, FileReference WriteOutdatedActionsFile, ILogger Logger, Boolean bSkipPreBuildTargets) in /home/mylogin/Downloads/AUR/unreal-engine/src/unreal-engine/Engine/Source/Programs/UnrealBuildTool/Modes/BuildMode.cs:line 396
   at UnrealBuildTool.BuildMode.ExecuteAsync(CommandLineArguments Arguments, ILogger Logger) in /home/mylogin/Downloads/AUR/unreal-engine/src/unreal-engine/Engine/Source/Programs/UnrealBuildTool/Modes/BuildMode.cs:line 252
   at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in /home/mylogin/Downloads/AUR/unreal-engine/src/unreal-engine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.cs:line 660
WriteFileIfChanged() wrote 0 changed files of 0 requested writes

weirdbeard commented on 2024-08-04 16:30 (UTC) (edited on 2024-08-04 16:30 (UTC) by weirdbeard)

Hi, I've tried the chown, chmod solutions but I'm still getting

chmod: changing permissions of '/opt/unreal-engine/Engine/Build/BatchFiles/Linux/../../../Binaries/ThirdParty/DotNet/6.0.302/linux/dotnet': Operation not permitted

As of updating my Unreal install.