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:
- 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.
- 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.
- Add the appropriate CAAutoDisposer.h file to the Public Utility project folder.
- Do a Clean on the project to prevent nasty vtable errors
Basic diagnosis from the coreaudio-api listserv
精彩评论