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

Including AkSoundEngine.h won't compile in Unreal

+2 votes
My Unreal project builds fine.

Your plugin builds fine.

Now when we try to use it, In code,(not like all your videos think is happening..), it wont compile.

RE: your CHM file indicates to add this line:

#include <AK/SoundEngine/Common/AkSoundEngine.h>

Without the include, everything builds fine:

1>------ Build started: Project: ShaderCompileWorker, Configuration: Development_Program x64 ------
1>  Target is up to date
1>  Copying D:\Dev\UE4\Engine\Binaries\Win64\ShaderCompileWorker.exe to D:\Dev\UE4\Engine\Binaries\Win64\XGEControlWorker.exe
1>          1 file(s) copied.
1>  Deploying ShaderCompileWorker Win64 Development...
1>  Total build time: 0.14 seconds (NoActionsToExecute executor: 0.00 seconds)
2>------ Build started: Project: AO, Configuration: Development_Editor x64 ------
2>  Performing 3 actions (12 in parallel)
2>  AudioManager.cpp
2>  [2/3] Link UE4Editor-AO.dll
2>  [3/3] Link UE4Editor-AO.lib
2>     Creating library D:\Dev\UE4\AO\Intermediate\Build\Win64\UE4Editor\Development\AO\UE4Editor-AO.lib and object D:\Dev\UE4\AO\Intermediate\Build\Win64\UE4Editor\Development\AO\UE4Editor-AO.exp
2>     Creating library D:\Dev\UE4\AO\Intermediate\Build\Win64\UE4Editor\Development\AO\UE4Editor-AO.suppressed.lib and object D:\Dev\UE4\AO\Intermediate\Build\Win64\UE4Editor\Development\AO\UE4Editor-AO.suppressed.exp
2>  Deploying AOEditor Win64 Development...
2>  Total build time: 3.31 seconds (Local executor: 1.33 seconds)
========== Build: 2 succeeded, 0 failed, 2 up-to-date, 0 skipped ==========

 

But simply including your header, everything blows up:

2>C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(536): warning C4005: 'TEXT': macro redefinition
2>  d:\dev\ue4\engine\source\runtime\core\public\HAL/Platform.h(854): note: see previous definition of 'TEXT'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(17005): warning C4668: '_APISET_RTLSUPPORT_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\interlockedapi.h(73): warning C4668: '_APISET_INTERLOCKED_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\processthreadsapi.h(1170): warning C4668: '_WIN32_WINNT_WINTHRESHOLD' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(357): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(472): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(1302): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8618): warning C4668: 'NTDDI_WIN7SP1' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'

Have you guys actually done that?  Have you actually used your plugin as you direct others to use it?

Because so far its been many hours of modifying your code to get your plugin to actually plug in to unreal and compile and this is just one more rung in a long ladder.
asked Feb 4, 2019 in General Discussion by Dan H. (120 points)
edited Feb 5, 2019 by Bernard R. (Audiokinetic)
Running into these exact issues. Did you find a workaround?

Please sign-in or register to answer this question.

...