From 6be4ab7a5b74b9a8248b9ea6c6852cab92e6fca3 Mon Sep 17 00:00:00 2001 From: Mamadou Babaei Date: Wed, 10 May 2023 21:13:37 +0200 Subject: [PATCH] fix linux aarch64 build issues and for older unreal engine versions --- .../SenseGloveConnectImpl/SenseGloveConnectImpl.Build.cs | 8 ++++++++ Source/SenseGloveCoreImpl/SenseGloveCoreImpl.Build.cs | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/Source/SenseGloveConnectImpl/SenseGloveConnectImpl.Build.cs b/Source/SenseGloveConnectImpl/SenseGloveConnectImpl.Build.cs index e6f72a5e..2ba8ab57 100644 --- a/Source/SenseGloveConnectImpl/SenseGloveConnectImpl.Build.cs +++ b/Source/SenseGloveConnectImpl/SenseGloveConnectImpl.Build.cs @@ -159,7 +159,11 @@ public class SenseGloveConnectImpl : ModuleRules LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64")); } +#if UE_5_1_OR_LATER else if (Target.Platform == UnrealTargetPlatform.LinuxArm64) +#else + else if (Target.Platform == UnrealTargetPlatform.LinuxAArch64) +#endif { LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "linux")); LibraryName = string.Format("lib{0}.a", LibraryName); @@ -309,7 +313,11 @@ public class SenseGloveConnectImpl : ModuleRules LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64")); } +#if UE_5_1_OR_LATER else if (Target.Platform == UnrealTargetPlatform.LinuxArm64) +#else + else if (Target.Platform == UnrealTargetPlatform.LinuxAArch64) +#endif { LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "linux")); LibraryName = string.Format("lib{0}.a", LibraryName); diff --git a/Source/SenseGloveCoreImpl/SenseGloveCoreImpl.Build.cs b/Source/SenseGloveCoreImpl/SenseGloveCoreImpl.Build.cs index 0304e4d2..bf8f5f27 100644 --- a/Source/SenseGloveCoreImpl/SenseGloveCoreImpl.Build.cs +++ b/Source/SenseGloveCoreImpl/SenseGloveCoreImpl.Build.cs @@ -165,7 +165,11 @@ public class SenseGloveCoreImpl : ModuleRules LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "x86-64")); } +#if UE_5_1_OR_LATER else if (Target.Platform == UnrealTargetPlatform.LinuxArm64) +#else + else if (Target.Platform == UnrealTargetPlatform.LinuxAArch64) +#endif { LibraryPath = Path.GetFullPath(Path.Combine(LibraryPath, "linux")); LibraryName = string.Format("lib{0}.a", LibraryName);