Packaging Problem ('STEAM_SDK_INSTALLED' is not defined)

Hi!

I’m trying to develop a multiplayer VR simulation application for Quest 3. Everything was going well in the forehead. I installed the Advanced session plugin and I think I have done all the SDK that needs to be added regularly. I received the following error message during the packaging phase. I can’t figure this out. If anyone has an idea for a solution and shares it, I would be very grateful.

UATHelper: Packaging (Android (ASTC)): Building VR_fire…
UATHelper: Packaging (Android (ASTC)): [Upgrade]
UATHelper: Packaging (Android (ASTC)): [Upgrade] Using backward-compatible include order. The latest version of UE has changed the order of includes, which may require code changes. The current setting is:
UATHelper: Packaging (Android (ASTC)): [Upgrade] IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_0
UATHelper: Packaging (Android (ASTC)): [Upgrade] Suppress this message by setting ‘IncludeOrderVersion = EngineIncludeOrderVersion.Latest;’ in VR_fire.Target.cs.
UATHelper: Packaging (Android (ASTC)): [Upgrade] Alternatively you can set this to ‘EngineIncludeOrderVersion.Latest’ to always use the latest include order. This will potentially cause compile errors when integrating new versions of the engine.
UATHelper: Packaging (Android (ASTC)): [Upgrade]
UATHelper: Packaging (Android (ASTC)): Determining max actions to execute in parallel (6 physical cores, 12 logical cores)
UATHelper: Packaging (Android (ASTC)): Executing up to 6 processes, one per physical core
UATHelper: Packaging (Android (ASTC)): Requested 1.5 GB memory per action, 6.19 GB available: limiting max parallel actions to 4
UATHelper: Packaging (Android (ASTC)): ------ Building 3 action(s) started ------
LogUObjectHash: Compacting FUObjectHashTables data took 1.33ms
LogUObjectHash: Compacting FUObjectHashTables data took 1.59ms
UATHelper: Packaging (Android (ASTC)): [1/3] Compile [arm64] Module.AdvancedSteamSessions.cpp
UATHelper: Packaging (Android (ASTC)): In file included from D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Intermediate/Build/Android/a/UnrealGame/Development/AdvancedSteamSessions/Module.AdvancedSteamSessions.cpp:2:
UATHelper: Packaging (Android (ASTC)): In file included from D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Intermediate/Build/Android/UnrealGame/Inc/AdvancedSteamSessions/UHT/AdvancedSteamFriendsLibrary.gen.cpp:8:
UATHelper: Packaging (Android (ASTC)): D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Source/AdvancedSteamSessions/Classes/AdvancedSteamFriendsLibrary.h(28,5): error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): #if STEAM_SDK_INSTALLED && (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX)
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): In file included from D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Intermediate/Build/Android/a/UnrealGame/Development/AdvancedSteamSessions/Module.AdvancedSteamSessions.cpp:4:
UATHelper: Packaging (Android (ASTC)): In file included from D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Intermediate/Build/Android/UnrealGame/Inc/AdvancedSteamSessions/UHT/AdvancedSteamWorkshopLibrary.gen.cpp:8:
UATHelper: Packaging (Android (ASTC)): D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Source/AdvancedSteamSessions/Classes/AdvancedSteamWorkshopLibrary.h(9,5): error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): #if STEAM_SDK_INSTALLED && (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX)
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Source/AdvancedSteamSessions/Classes/AdvancedSteamWorkshopLibrary.h(24,5): error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): #if STEAM_SDK_INSTALLED && (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX)
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Source/AdvancedSteamSessions/Classes/AdvancedSteamWorkshopLibrary.h(226,5): error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): #if STEAM_SDK_INSTALLED && (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX)
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): In file included from D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Intermediate/Build/Android/a/UnrealGame/Development/AdvancedSteamSessions/Module.AdvancedSteamSessions.cpp:5:
UATHelper: Packaging (Android (ASTC)): In file included from D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Intermediate/Build/Android/UnrealGame/Inc/AdvancedSteamSessions/UHT/SteamNotificationsSubsystem.gen.cpp:8:
UATHelper: Packaging (Android (ASTC)): D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Source/AdvancedSteamSessions/Classes/SteamNotificationsSubsystem.h(8,5): error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): #if STEAM_SDK_INSTALLED && (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX)
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Source/AdvancedSteamSessions/Classes/SteamNotificationsSubsystem.h(43,5): error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): #if STEAM_SDK_INSTALLED && (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX)
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Source/AdvancedSteamSessions/Classes/SteamNotificationsSubsystem.h(59,5): error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): #if STEAM_SDK_INSTALLED && (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX)
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Source/AdvancedSteamSessions/Classes/SteamNotificationsSubsystem.h(79,5): error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): #if STEAM_SDK_INSTALLED && (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX)
UATHelper: Packaging (Android (ASTC)): ^
PackagingResults: Error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
PackagingResults: Error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
PackagingResults: Error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
PackagingResults: Error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
PackagingResults: Error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
PackagingResults: Error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
PackagingResults: Error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
PackagingResults: Error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): In file included from D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Intermediate/Build/Android/a/UnrealGame/Development/AdvancedSteamSessions/Module.AdvancedSteamSessions.cpp:6:
UATHelper: Packaging (Android (ASTC)): In file included from D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Intermediate/Build/Android/UnrealGame/Inc/AdvancedSteamSessions/UHT/SteamRequestGroupOfficersCallbackProxy.gen.cpp:8:
UATHelper: Packaging (Android (ASTC)): D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Source/AdvancedSteamSessions/Classes/SteamRequestGroupOfficersCallbackProxy.h(18,5): error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): #if STEAM_SDK_INSTALLED && (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX)
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Source/AdvancedSteamSessions/Classes/SteamRequestGroupOfficersCallbackProxy.h(90,5): error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): #if STEAM_SDK_INSTALLED && (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX)
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): In file included from D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Intermediate/Build/Android/a/UnrealGame/Development/AdvancedSteamSessions/Module.AdvancedSteamSessions.cpp:7:
UATHelper: Packaging (Android (ASTC)): In file included from D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Intermediate/Build/Android/UnrealGame/Inc/AdvancedSteamSessions/UHT/SteamWSRequestUGCDetailsCallbackProxy.gen.cpp:8:
UATHelper: Packaging (Android (ASTC)): D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Source/AdvancedSteamSessions/Classes/SteamWSRequestUGCDetailsCallbackProxy.h(19,5): error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): #if STEAM_SDK_INSTALLED && (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX)
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Source/AdvancedSteamSessions/Classes/SteamWSRequestUGCDetailsCallbackProxy.h(75,5): error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): #if STEAM_SDK_INSTALLED && (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX)
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): In file included from D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Intermediate/Build/Android/a/UnrealGame/Development/AdvancedSteamSessions/Module.AdvancedSteamSessions.cpp:8:
UATHelper: Packaging (Android (ASTC)): D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Source/AdvancedSteamSessions/Private/AdvancedSteamFriendsLibrary.cpp(62,5): error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): #if STEAM_SDK_INSTALLED && (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX)
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Source/AdvancedSteamSessions/Private/AdvancedSteamFriendsLibrary.cpp(93,5): error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): #if STEAM_SDK_INSTALLED && (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX)
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Source/AdvancedSteamSessions/Private/AdvancedSteamFriendsLibrary.cpp(135,5): error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): #if STEAM_SDK_INSTALLED && (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX)
UATHelper: Packaging (Android (ASTC)): ^
PackagingResults: Error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
PackagingResults: Error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
PackagingResults: Error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
PackagingResults: Error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
PackagingResults: Error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
PackagingResults: Error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
PackagingResults: Error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Source/AdvancedSteamSessions/Private/AdvancedSteamFriendsLibrary.cpp(156,5): error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): #if STEAM_SDK_INSTALLED && (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX)
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Source/AdvancedSteamSessions/Private/AdvancedSteamFriendsLibrary.cpp(178,5): error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): #if STEAM_SDK_INSTALLED && (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX)
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Source/AdvancedSteamSessions/Private/AdvancedSteamFriendsLibrary.cpp(203,5): error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): #if STEAM_SDK_INSTALLED && (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX)
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): D:/UE-Projects/VR_fire/Plugins/AdvancedSteamSessions/Source/AdvancedSteamSessions/Private/AdvancedSteamFriendsLibrary.cpp(216,5): error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
UATHelper: Packaging (Android (ASTC)): #if STEAM_SDK_INSTALLED && (PLATFORM_WINDOWS || PLATFORM_MAC || PLATFORM_LINUX)
UATHelper: Packaging (Android (ASTC)): ^
UATHelper: Packaging (Android (ASTC)): fatal error: too many errors emitted, stopping now [-ferror-limit=]
UATHelper: Packaging (Android (ASTC)): 20 errors generated.
UATHelper: Packaging (Android (ASTC)): Total time in Parallel executor: 85.57 seconds
UATHelper: Packaging (Android (ASTC)): Total execution time: 90.06 seconds
UATHelper: Packaging (Android (ASTC)): Took 90.35s to run dotnet.exe, ExitCode=6
UATHelper: Packaging (Android (ASTC)): UnrealBuildTool failed. See log for more details. (C:\Users\erdem\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+UE+UE_5.3\UBT-VR_fire-Android-Development.txt)
UATHelper: Packaging (Android (ASTC)): AutomationTool executed for 0h 1m 33s
UATHelper: Packaging (Android (ASTC)): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Android (ASTC)): BUILD FAILED
PackagingResults: Error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
PackagingResults: Error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
PackagingResults: Error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
PackagingResults: Error: ‘STEAM_SDK_INSTALLED’ is not defined, evaluates to 0 [-Werror,-Wundef]
PackagingResults: Error: too many errors emitted, stopping now [-ferror-limit=]
PackagingResults: Error: Unknown Error

1 Like

i have the same errors did you figureded it out ?

Hey Did you ever figure out what caused this? Doesn’t give much to go on

if you have such an issue, make sure that the STEAM_SDK_INSTALLED macro is defined correctly in the .Build.cs file.
In the case of the VRExpansionPlugin Plugin, look for the AdvancedSteamSessions.Build.cs file associated with your project or the AdvancedSteamSessions plugin.

Add the following logic inside the TargetRules method in that file:
if (Target.Platform == UnrealTargetPlatform.Win64 || Target.Platform == UnrealTargetPlatform.Android)
{
PublicDefinitions.Add(“STEAM_SDK_INSTALLED=1”);
}
else
{
PublicDefinitions.Add(“STEAM_SDK_INSTALLED=0”);
}
In any case, below, “AdvancedSteamSessions.Build.cs” in its entirety:

using UnrealBuildTool;
using System.IO;

public class AdvancedSteamSessions : ModuleRules
{
public AdvancedSteamSessions(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
//bEnforceIWYU = true;

    PublicDefinitions.Add("WITH_ADVANCED_STEAM_SESSIONS=1");

    PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "OnlineSubsystem", "CoreUObject", "OnlineSubsystemUtils", "Networking", "Sockets", "AdvancedSessions"/*"Voice", "OnlineSubsystemSteam"*/ });
    PrivateDependencyModuleNames.AddRange(new string[] { "OnlineSubsystem", "Sockets", "Networking", "OnlineSubsystemUtils" /*"Voice", "Steamworks","OnlineSubsystemSteam"*/});

    if ((Target.Platform == UnrealTargetPlatform.Win64) || (Target.Platform == UnrealTargetPlatform.Linux) || (Target.Platform == UnrealTargetPlatform.Mac))
    {
        PublicDependencyModuleNames.AddRange(new string[] { "SteamShared", "Steamworks"/*, "OnlineSubsystemSteam"*/ });
        //PublicIncludePaths.AddRange(new string[] { "../Plugins/Online/OnlineSubsystemSteam/Source/Private" });// This is dumb but it isn't very open
    }

if (Target.Platform == UnrealTargetPlatform.Win64 || Target.Platform == UnrealTargetPlatform.Android)
{
PublicDefinitions.Add(“STEAM_SDK_INSTALLED=1”);
}
else
{
PublicDefinitions.Add(“STEAM_SDK_INSTALLED=0”);
}
}
}

Cheers

Giovanni Messina