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.

Cannot package UE 4.23 with AkAudio plugin (Wwise 2019.1)

0 votes

Following the discussion here https://www.audiokinetic.com/qa/5770/ue4-lnk2001-and-lnk2019, I added the implementation for memory management hooks in the game project. The project can compile and play in the Editor.

But when I packaged the game to Windows (x64), I got these errors:

UATHelper: Packaging (Windows (64-bit)):   MyAudioSystem.cpp.obj : error LNK2005: "void * __cdecl AK::AllocHook(unsigned __int64)" (?AllocHook@AK@@YAPEAX_K@Z) already defined in Module.AkAudio.cpp.obj
UATHelper: Packaging (Windows (64-bit)):   MyAudioSystem.cpp.obj : error LNK2005: "void __cdecl AK::FreeHook(void *)" (?FreeHook@AK@@YAXPEAX@Z) already defined in Module.AkAudio.cpp.obj
UATHelper: Packaging (Windows (64-bit)):   MyAudioSystem.cpp.obj : error LNK2005: "void * __cdecl AK::VirtualAllocHook(void *,unsigned __int64,unsigned long,unsigned long)" (?VirtualAllocHook@AK@@YAPEAXPEAX_KKK@Z) already defined in AkWindowsInitializationSettings.cpp.obj
UATHelper: Packaging (Windows (64-bit)):   MyAudioSystem.cpp.obj : error LNK2005: "void __cdecl AK::VirtualFreeHook(void *,unsigned __int64,unsigned long)" (?VirtualFreeHook@AK@@YAXPEAX_KK@Z) already defined in AkWindowsInitializationSettings.cpp.obj

If I removed the implementation from the game project, I got "unresolved symbols" errors when compiling.

Anyone knows how to solve the problem?

 

asked Jan 9 in General Discussion by River L. (100 points)

Please sign-in or register to answer this question.

...