我的OpenAL框架坏了,我该如何解决? (OSX Lion) [英] My OpenAL framework is broken, how can I fix it? (OSX Lion)

查看:71
本文介绍了我的OpenAL框架坏了,我该如何解决? (OSX Lion)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一些游戏代码,并且在Windows和Mac上均可正常运行.声音也完美地运作.我使用OpenAL.

I am developing some game code and it works fine on both windows and mac. Also the sound worked perfectly. I use OpenAL for it.

最近,我从Creative Labs安装了OpenAL OSX安装程序.它已经覆盖了我原来的Apple OpenAL框架,现在我的项目将不再编译(链接器错误,错误的体系结构和类似的东西).

Recently I installed the OpenAL OSX installer from Creative Labs. It has overwritten my original Apple OpenAL framework and now my project won't compile anymore (linker errors, wrong architecture and stuff like that).

真正的问题是:我可以修理它吗?我可以找到原始的Apple OpenAL框架来代替系统上的框架吗?如果不是这样,有人会这样把文件发送给我,以便可以将它们放回去(如果可能的话)吗?

The real question is: can I repair it? Can I find the original Apple OpenAL framework to replace the one on my system? And if not, would someone be so kind to send me the files so that can put them back (if that is even possible)?

推荐答案

除重新安装完整的os之外,几乎尝试了所有方法之后(我重新安装了Lion升级,重新安装了xcode,手动删除了所有内容,...),我发现由广告素材安装程序覆盖的框架是/Library/Frameworks中的框架,而不是/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk中的框架/System/Library/Frameworks

After having tried almost everything except for reinstalling the complete os (I reinstalled the lion upgrade, I reinstalled xcode, removed things by hand, ...), I found out that the framework overwritten by the creative installer was the one located in /Library/Frameworks and not the one in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks

我以为他们是有联系的,但事实并非如此.所以我只复制了10.7sdk中的一个,而不是/Library/Frameworks中的一个,然后一切又重新构建了!

I thought they were symlinked, but they aren't. So I just copied the one in the 10.7sdk over the one in /Library/Frameworks and everything builds again!

最奇怪的是,如果在我的项目中,我右键单击链接的框架和库"列表中的OpenAL框架,然后选择在Finder中显示",则确实会重定向到sdk,但是xcode似乎没有使用它,因为当我从/Library/Frameworks中删除OpenAL.framework时,xcode将框架显示为红色,因此无法构建.所以xcode告诉我它使用sdk文件夹中的那个,但实际上是使用/Library/Frameworks中的那个.

The strangest thing is, that if in my project, I right click on the OpenAL framework in the "Linked frameworks and libraries" list, and I select "Show in Finder", I do get redirected to the sdk, but xcode doesn't seem to use it because when I deleted OpenAL.framework from /Library/Frameworks, xcode showed the framework in red and wouldn't build. So xcode tells me it uses the one in the sdk folder, but is actually using the one in /Library/Frameworks.

我在其他论坛(有关iPhone和其他平台等其他论坛)上读到,人们对此有疑问. XCode告诉他们他们正在使用iPhone sdk中的框架,但实际上他们正在使用/Library/Frameworks中的框架.

I have read on other forums (about other platforms like iPhone and stuff), that people have problems with that. XCode tells them that they are using the framework in the iPhone sdk but actually they are using the one in /Library/Frameworks.

所以这一定是xcode中的错误.

So this must be a bug in xcode.

反正...解决了!

这篇关于我的OpenAL框架坏了,我该如何解决? (OSX Lion)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆