Unreal engine 5.1.1 server configuration build fails

OpsidiumDesigns
Tue, 27 Jun 2023 01:22:57 +0000
Platform & Builds

Im trying to build a dedicated server for my project using these instructions. I am able to build the source unreal engine by itself with the editor, client and server configurations. I can also build the editor through my project solution and launch the project with the built engine. When I switch to a server or client configuration, the following error occurs

  SAutomationWindow.cpp(1665): [C2653] 'PlatformInfo': is not a class or namespace name
  SAutomationWindow.cpp(1665): [C4430] missing type specifier - int assumed. Note: C++ does not support default-int
  SAutomationWindow.cpp(1665): [C2143] syntax error: missing ';' before '*'
  SAutomationWindow.cpp(1665): [C2065] 'TargetPlatformInfo': undeclared identifier
  SAutomationWindow.cpp(1665): [C2653] 'PlatformInfo': is not a class or namespace name
  SAutomationWindow.cpp(1665): [C3861] 'FindPlatformInfo': identifier not found
  SAutomationWindow.cpp(1666): [C2065] 'TargetPlatformInfo': undeclared identifier
  SAutomationWindow.cpp(1667): [C2065] 'TargetPlatformInfo': undeclared identifier
  SAutomationWindow.cpp(1668): [C2065] 'TargetPlatformInfo': undeclared identifier
  SAutomationWindow.cpp(1668): [C2065] 'TargetPlatformInfo': undeclared identifier
  SAutomationWindow.cpp(1669): [C2039] 'GetIconStyleName': is not a member of 'FDataDrivenPlatformInfo'
  DataDrivenPlatformInfoRegistry.h(118): [C2039] see declaration of 'FDataDrivenPlatformInfo'
  SAutomationWindow.cpp(1669): [C2653] 'EPlatformIconSize': is not a class or namespace name
  SAutomationWindow.cpp(1669): [C2065] 'Normal': undeclared identifier

My client and server target files

public class RepressedArenaModeClientTarget : TargetRules
{
	public RepressedArenaModeClientTarget (TargetInfo Target) : base(Target)
	{
		Type = TargetType.Client;
		DefaultBuildSettings = BuildSettingsVersion.V2;
		IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_1;
		ExtraModuleNames.Add("RepressedArenaMode");
	}
}

using UnrealBuildTool;
using System.Collections.Generic;

[SupportedPlatforms(UnrealPlatformClass.Server)]
public class RepressedArenaModeServerTarget : TargetRules
{
	public RepressedArenaModeServerTarget(TargetInfo Target) : base(Target)
	{
		Type = TargetType.Server;
		DefaultBuildSettings = BuildSettingsVersion.V2;
		IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
		BuildEnvironment = TargetBuildEnvironment.Shared;
		ExtraModuleNames.Add("RepressedArenaMode");
	}
}

The PlatformInfo variable seems to be not recognized

1 post - 1 participant