让 SDL 与 OSX Lion 配合使用
SDL 使用的一些功能在使用 MacOSX10.7 SDK 时不再起作用。我对 MacPorts 不太熟悉,我想知道是否有办法告诉 macports 使用 10.6 SDK 构建 SDL。
如果这是不可能的,我可以下载源代码并自己编译它,但同样,我不熟悉如何设置我需要的标志。我想要一个使用 10.6 SDK 但在 Lion 上运行的 32 位 SDL 版本。
SDL uses some functions that no longer work using the MacOSX10.7 SDK. I am not very familiar with MacPorts and I would like to know if there is a way to tell macports to build SDL using the 10.6 SDK instead.
If this is not possible, I can download the source and compile it myself, but again, I am not familiar with how to set the flags that I need. I would like a 32-bit build of SDL that uses the 10.6 SDK but runs on Lion.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经使用以下差异成功构建了 ppc、i386 和 x86_64 的 SDL 框架: http: //r.research.att.com/sdl-1.2.14.diff
以及
SDL-1.2.14/Xcode/SDL/SDL.xcodeproj
中的项目。 diff 使用 10.5 SDK,因此如果您没有,您可以简单地将 10.5 行更改为 10.6 并删除 ppc。如果您不想构建它,可以在 http://r.research.att.com/libs/SDL-1.2.14-fw-darwin9-bin3.tar.gz - 它适用于 OS X 10.5 及更高版本(即,包括 Lion)。
(我放弃了尝试修复
configure
+make
构建,该构建对于 OS X 来说是损坏的,因为它有很多硬编码的东西已经过时了很多年,因为我很快就需要它......)I have successfully built SDL framework for ppc, i386 and x86_64 using the following diff: http://r.research.att.com/sdl-1.2.14.diff
and the project in
SDL-1.2.14/Xcode/SDL/SDL.xcodeproj
. The diff uses 10.5 SDK so if you don't have that, you can simply change the 10.5 line to 10.6 and remove ppc.If you don't want to build it, a binary is available at http://r.research.att.com/libs/SDL-1.2.14-fw-darwin9-bin3.tar.gz - it works on OS X 10.5 and higher (i.e., including Lion).
(I gave up to trying to fix the
configure
+make
build which is broken for OS X since it has a lot of stuff hard-coded that is many years out of date, because I needed it quickly...)