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.

UE4 LogAkPluginActivator looking for wrong target file

0 votes

I'm having an issue where Wwise's post build step is failing to find a target that I think shouldn't exist when making my cooked Client and Server builds. WWise is being used as a project plugin btw.

My cook command is

call RunUAT ^
-ScriptsForProject=%BLAH%/Blah.uproject ^
BuildCookRun ^
-project=%BLAH%/Blah.uproject ^
-noP4 ^
-clientconfig=Development ^
-serverconfig=Development ^
-utf8output ^
-platform=Win64 ^
-client ^
-build ^
-cook ^
-map=BlahA+BlahB+MainMenu ^
-unversionedcookedcontent ^
-compressed ^
-stage ^
-package ^
-stagingdirectory=%STAGING_BUILD_DIR% ^
-compile ^
-SkipCookingEditorContent ^
-server ^
-serverplatform=Linux ^
-pak ^
-unversioned ^
-unattended

This generates

LogAkPluginActivator: Error: Could not read file: ../../../Blah/Binaries/Win64/Blah.target

I have BlahClient.target and BlahServer.target, but not 'Blah.target'. Is this a WWise bug?

 

asked Mar 30 in General Discussion by Erik L. (100 points)

1 Answer

0 votes

I had a similar problem with that log:
"LogAkPluginActivator: Display: AkPluginActivator parameters: Client -run=AkPluginActivator -platform=Win64 -configuration=Profile -targetconfig=Development
LogAkPluginActivator: Display: Plug-ins required for <Windows> platform are: AkRoomVerb
LogAkPluginActivator: Error: Could not read file: C:/build/Binaries/Win64/NewProject.target"

Problem was with PlatformArchitecture. Plugin thought that I was using PlatformArchitecture = "vc140", but I used Visual Studio 2019 / 2017
So I add hardcode to AkWindowsInitializationSettings.cpp use "vc150"
In FillInitializationStructure methode

void UAkWindowsInitializationSettings::FillInitializationStructure(FAkInitializationStructure& InitializationStructure) const
{
#if PLATFORM_64BITS
       #define AK_WINDOWS_ARCHITECTURE "x64_"
#else
       #define AK_WINDOWS_ARCHITECTURE "Win32_"
#endif
       constexpr auto PlatformArchitecture = AK_WINDOWS_ARCHITECTURE "vc150";

#undef AK_WINDOWS_ARCHITECTURE

       InitializationStructure.SetPluginDllPath(PlatformArchitecture);
       InitializationStructure.SetupLLMAllocFunctions();

       CommonSettings.FillInitializationStructure(InitializationStructure);
       CommunicationSettings.FillInitializationStructure(InitializationStructure);
       AdvancedSettings.FillInitializationStructure(InitializationStructure);

#if PLATFORM_WINDOWS
       InitializationStructure.PlatformInitSettings.uSampleRate = CommonSettings.SampleRate;
#endif
}

answered May 16 by Artem M. (160 points)
...