在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

0 投票

Hi,

I've been following the basic integration documentation as well as Guy Somberg's Game Audio Programming books to try and integrate the Sound engine in Xcode 14 to post some basic events. 

I've included the /lib and /include folders in my Xcode project's header search paths as well as dependencies/frameworks. No errors with the #include preprocessor commands, but as soon as I create an instance of a class contained in the AK namespace (e.g: AK::SoundEngine::RegisterGameObj), I get an error - Undefined symbol: AK::SoundEngine::RegisterGameObj(unsigned long long).

I understand this is quite basic but any advise would be appreciated. Here are some screenshots to show how I've done the includes.

https://1drv.ms/u/s!AtQjCLbBoYxCgbdTBGvgBN-kT_-GNg?e=cDiDv5

https://1drv.ms/u/s!AtQjCLbBoYxCgbdUP2xmE9KyaiDHdA?e=XmRGAf

https://1drv.ms/i/s!AtQjCLbBoYxCgbdVKtqdzzJwupLgDw?e=jZ7SW5

Thanks
 

分类:General Discussion | 用户: Anantha G. (200 分)

1个回答

0 投票

To link with the libraries, you need to specify which libraries to link: in your 2nd screenshot you added directories in the Framework/Libraries section, but it expects actual library and framework files.

You can see how the IntegrationDemo.xcodeproj is set up (found under SDK/samples/IntegrationDemo/Mac). Notably, in the Build Settings section of the project:

* The include directories need to go under "Header Search Paths"
* The library path need to go under "Library Search Paths"

You can refer to the frameworks listed in the "Frameworks, Libraries and Embedded Content" to know which are required, since parts of the Sound Engine rely on them. See Build Configuration SDK documentation page for an up-to-date list of dependencies.

用户: Samuel L. (Audiokinetic) (23.6k 分)
Thanks so much Samuel, I'm not hitting the errors anymore for the AK:: class instances. :D
However, I'm now seeing an undefined symbol error when creating an instance of CAkDefaultIOHookBlocking.
Is there anything different to be done to include this ? I can see that the file is in /samples/SoundEngine/POSIX which is part of my include paths
Those are samples which are not built into the regular Sound Engine libraries: the implementation files (.cpp) should be added to the source to be compiled in your project.
Thanks so much!
...