Since version 4.20 I get a compilation error :
In file included from /opt/data1/ediazfer/UnrealEngineBuilder/src/UnrealEngine/Engine/Intermediate/Build/Linux/B4D820EA/UnrealVersionSelector/Shipping/UnrealVersionSelector/Module.UnrealVersionSelector.cpp:6:
In file included from /opt/data1/ediazfer/UnrealEngineBuilder/src/UnrealEngine/Engine/Source/Programs/UnrealVersionSelector/Private/UnrealVersionSelector.cpp:4:
In file included from /opt/data1/ediazfer/UnrealEngineBuilder/src/UnrealEngine/Engine/Source/Runtime/Launch/Public/RequiredProgramMainCPPInclude.h:9:
/opt/data1/ediazfer/UnrealEngineBuilder/src/UnrealEngine/Engine/Source/Runtime/Launch/Private/LaunchEngineLoop.cpp:180:9: error: 'LOCTEXT_NAMESPACE' macro redefined [-Werror,-Wmacro-redefined]
#define LOCTEXT_NAMESPACE "LaunchEngineLoop"
^
/opt/data1/ediazfer/UnrealEngineBuilder/src/UnrealEngine/Engine/Source/Programs/UnrealVersionSelector/Private/Linux/LinuxPlatformInstallation.cpp:12:9: note: previous definition is here
#define LOCTEXT_NAMESPACE "UnrealVersionSelector"
(I'm not on Arch anymore, but I still use the AUR for some packages) I don't know if others are affected but I've made a small patch around it so the redefinition overwrites the previous one seamlessly.
--- LaunchEngineLoop.cpp 2018-07-27 16:15:56.000000000 +0200
+++ LaunchEngineLoop.cpp.patched 2018-08-04 07:30:37.915401059 +0200
@@ -177,6 +177,10 @@
#include "DesktopPlatformModule.h"
#endif
+#ifdef LOCTEXT_NAMESPACE
+#undef LOCTEXT_NAMESPACE
+#endif
+
#define LOCTEXT_NAMESPACE "LaunchEngineLoop"
#if PLATFORM_WINDOWS
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:
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.