You can try, but I can't guarantee that will build.
Search Criteria
Package Details: unreal-engine-4 4.27.2-15
Package Actions
Git Clone URL: | https://aur.archlinux.org/unreal-engine-4.git (read-only, click to copy) |
---|---|
Package Base: | unreal-engine-4 |
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 game-engine ue4 unreal |
Licenses: | custom:UnrealEngine |
Submitter: | Neko-san |
Maintainer: | Neko-san |
Last Packager: | Neko-san |
Votes: | 6 |
Popularity: | 0.000006 |
First Submitted: | 2022-06-30 18:25 (UTC) |
Last Updated: | 2023-11-19 18:57 (UTC) |
Dependencies (24)
- clang (llvm-gitAUR, clang17-binAUR, clang-minimal-gitAUR)
- coreutils (coreutils-gitAUR, coreutils-selinuxAUR, coreutils-uutilsAUR, coreutils-uutils-symlinkAUR)
- dos2unix (dos2unix-gitAUR)
- findutils (findutils-gitAUR, findutils-selinuxAUR)
- icu63AUR (icu-shimAUR)
- lld (llvm-gitAUR)
- openssl (openssl-gitAUR, openssl-staticAUR)
- python (python37AUR, python311AUR, python310AUR)
- sdl2AUR (sdl2-compat-gitAUR, sdl2-gitAUR, sdl2-compat)
- steam
- xdg-user-dirs
- coreutils (coreutils-gitAUR, coreutils-selinuxAUR, coreutils-uutilsAUR, coreutils-uutils-symlinkAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR) (make)
- grep (grep-gitAUR, grep-compatAUR) (make)
- openssh (openssh-gitAUR, openssh-dnatAUR, openssh-gssapiAUR, openssh-hpn-shimAUR, openssh-selinuxAUR) (make)
- sed (sed-gitAUR) (make)
- clionAUR (optional) – IDE for projects
- cmake (cmake3AUR, cmake-gitAUR) (optional) – build system for projects
- codeliteAUR (codeliteAUR, codelite-unstableAUR, codelite-gitAUR, codelite-binAUR) (optional) – IDE for projects
- kdevelop (kdevelop-gitAUR) (optional) – IDE for projects
- pacman-contrib (pacman-contrib-gitAUR) (optional) – for the paccache cleaning hook
- qt5-base (qt5-base-gitAUR, qt5-base-headlessAUR) (optional) – qmake build system for projects
- qtcreator (qtcreator-prereleaseAUR, qtcreator-patchesAUR) (optional) – IDE for projects
Required by (0)
Sources (5)
Neko-san commented on 2025-05-08 16:55 (UTC)
oech3 commented on 2025-05-08 12:45 (UTC)
just spoofing CPATH by symkinks of latest icu?
Neko-san commented on 2025-05-08 12:00 (UTC)
I'd think so, given that Epic stopped working on UE4 a long time ago.
UE4 expects certain Steam $HOME folder dependencies, so it's best to keep it in as a dependency. As for icu63, that was the latest version required for it to build at the time it was last supported (if I recall correctly), and given that Epic has been focused on UE5 that shouldn't have changed.
oech3 commented on 2025-05-08 07:20 (UTC)
Is icu63 and steam still needed?
Neko-san commented on 2023-09-06 22:44 (UTC)
@h0m3 I modified your suggestion to be interactive rather than completely halting makepkg
, so users can add it to srcdir
themselves while the process waits for your confirmation.
h0m3 commented on 2023-09-06 18:33 (UTC) (edited on 2023-09-06 18:36 (UTC) by h0m3)
Hello, since makepkg will refetch the source from git every time it will override Commit.gitdeps.xml
and I need to make a small change on PKGBUILD to copy the file before running ./Setup.sh
I propose the following change (with a better written message) before running ./Setup.sh on prepare:
if [[ -f ${srcdir}/Commit.gitdeps.xml ]]
then
rm -v "${srcdir}/unreal-engine-4/Engine/Build/Commit.gitdeps.xml"
cp -v "${srcdir}/Commit.gitdeps.xml" "${srcdir}/unreal-engine-4/Engine/Build/"
else
echo "Download 'Commit.gitdeps.xml' from 'https://github.com/EpicGames/UnrealEngine/releases/tag/4.27.2-release' into 'src'"
exit 1
fi
./Setup.sh
Its a workaround to a bug introduced by Epic but I think its a good idea to have the process at least partly automated.
AAR072 commented on 2023-07-13 18:47 (UTC)
My solution for others:
I didn't want to run the entire compilation again, so I ran make -j1 -k
. This started again and it compiled.
My steps to install ue4 were: Download zip of release 4.27 Apply xml patch run ./Setup.sh, ./GenerateProjectFiles.sh run make -j1 -k
This may or may not be helpful to you ¯_(ツ)_/¯
Neko-san commented on 2023-07-13 04:45 (UTC)
The nature of your compilation error, from your log, isn't particularly clear to me.
Not exactly sure what's going on there, but if you find someone else who knows the problem and you get back to me, I'll add the fix for the error (not that it'll solve the bigger xml problem though)
AAR072 commented on 2023-07-13 04:38 (UTC)
Also, when building, getting the error AutomationTool exiting with ExitCode=6 (6) as jtljac said a few months ago.
Compiling on arch linux by cloning the package and applying the modification.
Neko-san commented on 2023-07-13 04:35 (UTC)
You download it as an asset file from: https://github.com/EpicGames/UnrealEngine/releases/tag/4.27.2-release
But, again, this information still requires you to manually intervene in the build process; just having this knowledge doesn't stop you from having to figure it out
Pinned Comments
Neko-san commented on 2023-07-13 04:15 (UTC)
The issue with me including the
Commit.gitdeps.xml
alsongside the PKGBUILD manually is that it might be subject to a legal grey area since the UE repo is private and is technically a part of the source;because the repo is private, having the PKGBUILD access it directly isn't a simple task because Github requires the URL request to have a generated timed authentication token that expires.
Meaning that I can't simply grab the URL and paste it into the PKBUILD willy-nilly because it is both not tied to your account and because the links have an expiration attached. I get why Epic chose this approach but their flawed "open-source" methodology is what makes this difficult.
Neko-san commented on 2022-10-15 20:50 (UTC) (edited on 2022-10-15 20:54 (UTC) by Neko-san)
I updated it to not use the Arch Clang compiler by default; I thought I had this opt-out but I didn't - the reason being that for UE4, there's actually a hard-coded reference to look for a Windows compiler (thanks Epic...) and using the Arch compiler has been the solution on the AUR for UE4 for a long time
That said, if it fails to compile by default now (at least if strictly using
makepkg
), the fault is entirely on Epic for not properly having the Unreal Build Tool (UBT) not handle the Linux build properly - proper support for this was implemented in UE5, so they should honestly backport that to UE4's codebaseI left a user toggle-able switch in the PKGBUILD if anyone wants to try the Arch Clang compiler patch again, for whatever reason
If anyone manages to figure out how to this otherwise, let me know and I'll add the fix