ValveSoftware / steam-audio

Steam Audio
https://valvesoftware.github.io/steam-audio/
Apache License 2.0
2.2k stars 152 forks source link

[UE5.3.2] Failed to compile the plugin #316

Closed AdamTmHun closed 3 months ago

AdamTmHun commented 4 months ago

System Information Please provide the following information about your system:

Issue Description I am trying to compile the plugin for UE version 5.3.2 but it is failing with the following error:

RunUAT.bat BuildPlugin -plugin="C:\Users\Adam\Downloads\SteamAudio\SteamAudio.uplugin" -package="C:\Users\Adam\Downloads\SteamAudio\NewSteamAudio"

[...]

Building UnrealGame...
Using Visual Studio 2022 14.38.33133 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130) and Windows 10.0.22621.0 SDK (C:\Program Files (x86)\Windows Kits\10).
Determining max actions to execute in parallel (4 physical cores, 4 logical cores)
  Executing up to 4 processes, one per physical core
------ Building 1 action(s) started ------
[1/1] Compile [x64] Module.SteamAudio.cpp
C:\Users\Adam\Downloads\SteamAudio\NewSteamAudio\HostProject\Plugins\SteamAudio\Source\SteamAudio\Private\SteamAudioGeometryComponent.cpp(93): error C2027: use of undefined type 'FStaticMeshRenderData'
C:\Program Files\Epic Games\UE_5.3\Engine\Source\Runtime\Engine\Classes\Engine\StaticMesh.h(593): note: see declaration of 'FStaticMeshRenderData'
C:\Users\Adam\Downloads\SteamAudio\NewSteamAudio\HostProject\Plugins\SteamAudio\Source\SteamAudio\Private\SteamAudioGeometryComponent.cpp(93): error C2530: 'LODModel': references must be initialized
C:\Users\Adam\Downloads\SteamAudio\NewSteamAudio\HostProject\Plugins\SteamAudio\Source\SteamAudio\Private\SteamAudioGeometryComponent.cpp(95): error C2027: use of undefined type 'FStaticMeshLODResources'
C:\Program Files\Epic Games\UE_5.3\Engine\Source\Runtime\Engine\Classes\Engine\StaticMesh.h(46): note: see declaration of 'FStaticMeshLODResources'
C:\Users\Adam\Downloads\SteamAudio\NewSteamAudio\HostProject\Plugins\SteamAudio\Source\SteamAudio\Private\SteamAudioGeometryComponent.cpp(96): error C2027: use of undefined type 'FStaticMeshLODResources'
C:\Program Files\Epic Games\UE_5.3\Engine\Source\Runtime\Engine\Classes\Engine\StaticMesh.h(46): note: see declaration of 'FStaticMeshLODResources'
Total time in Parallel executor: 12.52 seconds
Total execution time: 20.96 seconds
Took 21.10s to run dotnet.exe, ExitCode=6
UnrealBuildTool failed. See log for more details. (C:\Users\Adam\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.3\UBT-UnrealGame-Win64-Development.txt)
AutomationTool executed for 0h 2m 37s
AutomationTool exiting with ExitCode=6 (6)
BUILD FAILED

Steps To Reproduce Steps to reproduce the behavior:

  1. Download SteamAudio v4.3.2 extract and keep unreal/SteamAudio folder
  2. Attempt to compile the plugin with Unreal's build tool located at UnrealInstallFolder\Engine\Build\BatchFiles\RunUAT.bat RunUAT.bat BuildPlugin -plugin="C:\Users\Adam\Downloads\SteamAudio\SteamAudio.uplugin" -package="C:\Users\Adam\Downloads\SteamAudio\NewSteamAudio"
  3. Wait a minute or two and the compilation should fail at build phase, error located above.
lakulish commented 3 months ago

This was due to a missing #include, and has been fixed.