Ubuntu - Compiling the editor

Hello everyone,

I tried compiling the 4.5 preview cloned from GitHub. ran fine (even though re-running causes it to download the 3 files again).

I am running make in the UnrealEngine folder and I get the following output:


In file included from Runtime/Core/Public/HAL/PlatformIncludes.h:20:0,
                 from /home/tom/Development/Cpp/UnrealEngine/Engine/Source/Runtime/Core/Public/Core.h:19,
                 from /home/tom/Development/Cpp/UnrealEngine/Engine/Intermediate/Build/Linux/x86_64-unknown-linux-gnu/UnrealHeaderTool/Development/Core/Module.Core.4_of_5.cpp:2:
Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h:537:60: error: redeclaration ‘static constexpr T FGenericPlatformMath::Abs(T) [with T = float]’ differs in ‘constexpr’
 FORCEINLINE float FGenericPlatformMath::Abs( const float A )


I am curious if anyone has a solution or at least encountered the same problem.

Best regards


You don’t have clang installed. UBT picks up gcc if it’s there (which is what happened in your case), but compilation with gcc is not maintained so you can run into errors like that.

Please install clang, either 3.3 or 3.5 (but NOT 3.4).

I don’t see linux support in the release notes for 4.5, was the experimental support pulled at the last minute?