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: 0.79
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 .. 82 Next › Last »

coolitic commented on 2024-12-05 15:32 (UTC) (edited on 2024-12-05 16:44 (UTC) by coolitic)

@Neko-san I just noticed that you build the engine as an Installed Build, but that means that we're forgoing the benefits that Unreal affords for source-built builds, while still having to compile.

This is of-course ok if the intention is to distribute a customized, pre-built version of the engine to team-members (non-customized would be better off w/ unreal-engine-bin), but I imagine that must be a relatively rare use-case for Linux users?

So I'm wondering then if targeting an "installed build" is perhaps a mistake? If it's intentional, then perhaps it would be good to point that out somewhere? (apologies if I simply missed it)

coolitic commented on 2024-12-04 20:34 (UTC)

@KarthikJay I also get that problem; a faster way than compiling single-threaded is to re-run the compilation process several times, which eventually succeeded for me.

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?