开发者

Error "SysError 0 during open of "AUResources.r"" When Compiling an AudioUnit

In the default AudioUnit project shell that XCode creates, there is a line at the very bottom of your AUEffect .r file:

#include "AUResources.r"

When compiling under Mac OS X 10.6 Snow Leopard, this line causes the following error:

SysError 0 during open of "AUResources.r"

Note, this error o开发者_开发知识库ccurs in a completely empty project shell, ie, it's a bug in the XCode project template.

Why?


XCode generated your project template targeted at the 10.5 platform, which has a different resource path that 10.6. Unhelpfully, the path names are silly:

  • 10.6: /Developer/Extras/CoreAudio
  • 10.5: /Developer/Examples/CoreAudio

To fix:

  1. Get Info on the AUPublic folder in your project source, and change the Path to the correct CoreAudio/AudioUnit/AUPublic folder for your OS/Build target.
  2. Get Info on every file in the Public Utility project folder and hange the paths to the the correct path for your OS. Yes, all of them.
  3. Add the appropriate CAAutoDisposer.h file to the Public Utility project folder.
  4. Do a Clean on the project to prevent nasty vtable errors

Basic diagnosis from the coreaudio-api listserv

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜