社区问答

欢迎来到 Audiokinetic 社区问答论坛。在此,Wwise 和 Strata 用户可互帮互助。如需我们团队直接提供协助,请前往技术支持申请单页面。若要报告问题,请在 Audiokinetic Launcher 中选择“报告错误”选项(注意,问答论坛并不会接收错误报告)。我们内部设有专门的错误报告系统,会有专人查看报告并设法解决问题。

要想尽快得到满意的解答,请在提问时注意以下几点:

  • 描述尽量具体:比如,想达到什么样的目的,或者具体哪里有问题。
  • 包含关键细节:比如,Wwise 和游戏引擎版本以及所用操作系统等等。
  • 阐明所做努力:阐明自己为了排除故障都采取了哪些措施。
  • 聚焦问题本身:聚焦于问题本身的相关技术细节,以便别人可以快速找到解决方案。

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!
...