menu
 

Audiokinetic의 커뮤니티 Q&A는 사용자가 Wwise와 Strata 커뮤니티 내에서 서로 질문과 답변을 하는 포럼입니다. Audiokinetic의 기술 지원팀에게 문의하고 싶으신 경우 지원 티켓 페이지를 사용해주세요.

0 투표

Hello.

After reading through the docs and examples I spent around two days trying to integrate Wwise into our custom engine with less than great success. I'm running Visual Studio 2017 with a CPP project that compiles into a binary (.exe) file

#include <AK/SoundEngine/Common/AkSoundEngine.h>
#include <AK/IBytes.h>
#include <AK/SoundEngine/Common/AkModule.h>
#include <AK/SoundEngine/Common/AkMemoryMgr.h>

Those were both used with "$(WWISESDK)\include" or a direct path to the SDK on the drive, both yielding the same results: as soon as I try to use a namespace method the build fails with:

AK::MemoryMgr::GetDefaultSettings(memSettings); // SETUP MEMORY MANAGER FAILS WITH LINE:

Error    LNK2019    unresolved external symbol "void __cdecl AK::MemoryMgr::GetDefaultSettings(struct AkMemSettings &)" (?GetDefaultSettings@MemoryMgr@AK@@YAXAEAUAkMemSettings@@@Z) referenced in function "bool __cdecl InitWwiseEngine(void)" (?InitWwiseEngine@@YA_NXZ)    infEngine    E:\Games\INFINITE\engine\src\d_main.obj

I am by no means a master of CPP so my VS setup might be less than perfect, but having Wwise integrated would be a dream feature of ours. It would be of a great help if anybody would be kind enough to give me some pointers, after two days of failure to complie I feel a bit stuck.

Platform: Windows 7x64 / intel PC / Visual Studio 2017 15.9.17 / Wwise 2021.1.4.7707 x64

Thank you for your time,

James.

General Discussion James K. (110 포인트) 로 부터

1 답변

+1 투표

Unresolved symbols means that the linker is unable to find a defined function's implementation: make sure to add the link dependencies to your project (Wwise's libraries).

You can use the following working example solution for Visual Studio 2017 as reference: "%WWISEROOT%/SDK/samples/IntegrationDemo/Windows/IntegrationDemo_Windows_vc150.sln".

Right-click on your project, select Properties and go to the Input section under Linker. Make sure to add the required libraries in each Configuration and Platform target (i.e., architecture).

See Define Various Settings for Your C++ Project in the SDK documentation for more C++ related details.

Samuel L. (Audiokinetic) (23.6k 포인트) 로 부터
...