简体   繁体   English

我的OpenAL框架坏了,如何解决? (OSX Lion)

[英]My OpenAL framework is broken, how can I fix it? (OSX Lion)

I am developing some game code and it works fine on both windows and mac. 我正在开发一些游戏代码,并且在Windows和Mac上均可正常运行。 Also the sound worked perfectly. 声音也完美工作。 I use OpenAL for it. 我使用OpenAL。

Recently I installed the OpenAL OSX installer from Creative Labs. 最近,我从Creative Labs安装了OpenAL OSX安装程序。 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? 我可以找到原始的Apple OpenAL框架来代替系统上的框架吗? And if not, would someone be so kind to send me the files so that can put them back (if that is even possible)? 如果不是,那么有人会把文件发送给我,以便可以将它们放回去(如果可能的话)吗?

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 在尝试了几乎所有内容之后,除了重新安装了完整的os(我重新安装了lion升级,我重新安装了xcode,手动删除了所有内容,...)之后,我发现创意安装程序覆盖的框架是/ Library中的框架。 / Frameworks,而不是/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/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! 所以我只复制了10.7sdk中的一个,而不是/ 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. 最奇怪的是,如果在我的项目中,我右键单击“链接的框架和库”列表中的OpenAL框架,然后选择“在Finder中显示”,则确实会重定向到sdk,但xcode不会似乎使用它是因为当我从/ Library / Frameworks中删除OpenAL.framework时,xcode将框架显示为红色,因此无法构建。 So xcode tells me it uses the one in the sdk folder, but is actually using the one in /Library/Frameworks. 所以xcode告诉我它使用sdk文件夹中的那个,但实际上是使用/ Library / Frameworks中的那个。

I have read on other forums (about other platforms like iPhone and stuff), that people have problems with that. 我在其他论坛(关于iPhone和其他平台等其他论坛)上读到,人们对此有疑问。 XCode tells them that they are using the framework in the iPhone sdk but actually they are using the one in /Library/Frameworks. XCode告诉他们,他们正在使用iPhone sdk中的框架,但实际上,他们正在/ Library / Frameworks中使用框架。

So this must be a bug in xcode. 因此,这一定是xcode中的错误。

Anyway... SOLVED! 无论如何...解决了!

Add the framework to your project. 将框架添加到您的项目。 You're including the files so it compiles, but you have to specify which frameworks to link against. 您要包括文件以便进行编译,但是必须指定要链接的框架。 It's in /System/Library/Frameworks/. 在/ System / Library / Frameworks /中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 OSX lion/launchd 中,python/serial 坏了 - python/serial broken in OSX lion / launchd 我可以在OSX 10.8(Mountain Lion)上使用ipfw吗 - Can I use ipfw on OSX 10.8 (Mountain Lion) osx - 我的应用程序在运行时没有出现在 Dock 中。 我怎样才能解决这个问题? - osx - My application doesn't appear in the Dock when running. How can I fix this? 模板已损坏-OpenAL.framework--UPDATE--如何手动创建新的Mac项目? - The template is broken -OpenAL.framework--UPDATE--How to create new mac project manually? 我在osx上的pip3安装非常混乱,我该如何解决? - my pip3 installation on osx is very confused, how can i fix it? 如何在Mac osx Lion中创建.conf文件? - How do I create a .conf file in Mac osx Lion? 如何在mac osx上修复Titanium的破碎菜单栏 - How to fix Titanium's broken menu bar on mac osx OSx 更新后如何修复损坏的 python 2.7.11 - How to fix broken python 2.7.11 after OSx updates 在OSX Mountain Lion上重新安装损坏的Clang ++ - Re-installing broken Clang++ on OSX Mountain Lion 我的 Pip 安装坏了,我不知道如何重新安装它 [MAC/OSX] - My Pip installation is broken and I don't know how to reinstall it [MAC/OSX]
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM