Community Q&A

Where Wwise users help each other out!

Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Unreal Engine 4.21 Plugin Integration FAILED BUILDING ENGINE [closed]

+2 votes

I have the new Unreal Engine 4.21 version and I have downloaded the WWise Plugin to integrate with Unreal Engine 4.20 version. When trying to use it with the UE4.21, the following error appears:

2>Parsing headers for UE4Editor
2>  Running UnrealHeaderTool UE4Editor "E:\bla\UnrealEngine\Engine\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors
2>E:/bla/UnrealEngine/Engine/Plugins/Wwise/Source/AkAudio/Classes/MovieSceneAkAudioRTPCSection.h(33): error : 'virtual void Serialize(FArchive& Ar) override;' must not be inside preprocessor blocks, except for WITH_EDITORONLY_DATA
2>EXEC : error : UnrealHeaderTool failed for target 'UE4Editor' (platform: Win64, module info: E:\bla\UnrealEngine\Engine\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor.uhtmanifest, exit code: OtherCompilationError (5)).
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command "..\..\Build\BatchFiles\Build.bat UE4Editor Win64 Development -WaitMutex -FromMsBuild" exited with code 5. Please verify that you have sufficient rights to run this command.
2>Done building project "UE4.vcxproj" -- FAILED.

I've moved the Serialize method outside the scope of the "#if UE_4_20_OR_LATER" but then more errors appear. 

Before:

#if UE_4_20_OR_LATER

        virtual void PostLoad() override;

       virtual void Serialize(FArchive& Ar) override;

#endif

After:

#if UE_4_20_OR_LATER

        virtual void PostLoad() override;

#endif

       virtual void Serialize(FArchive& Ar) override;

I think the correct thing would be to wait for the update of the plugin to work with version 4.21. When is it expected to be available?

closed with the note: Fixed
asked Nov 9, 2018 in General Discussion by Helghast T. (260 points)
closed Nov 26, 2018 by Helghast T.

1 Answer

+1 vote
...