在MacOS 10.6(Snow Leopard)上,sdl-config安装在哪里?

6
在MacOS X 10.6(Snow Leopard)安装了SDLSDL-devel之后,尝试配置一些需要SDL的源代码会出现以下情况:
checking for sdl-config... no
checking for SDL - version >= 1.2.0... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
configure: error: *** SDL version 1.2.0 not found!

有人知道在哪里找到sdl-config吗?我猜我可以从源代码构建SDL,但是为什么我必须这样做,当已经存在预构建的软件包呢?

3个回答

15

您可以使用MacPorts来安装libsdl或libsdl-devel(v1.2或v1.3)。

http://www.macports.org/

安装了MacPorts之后,要安装libsdl,请输入以下命令:

port install libsdl

这将在/opt/local/bin中安装sdl-config。


1

我遇到了完全相同的问题。

我发现sdl-config安装在两个位置:

  • /sw/bin/sdl-config

  • /opt/local/bin/sdl-config

在位于/sw/bin的那个中,我将前缀更改为/opt/local - 然后它就可以工作了。


0

你展示的输出是来自于一个用于automake的类Unix风格的配置。根据这个网站:http://www.libsdl.org/faq.php?action=listentries&category=7(第二和第三个问题),你不能直接使用dmg文件(你提供了链接)进行类Unix风格的安装。请参考上述页面中的链接,了解关于DarwinPorts或Fink的安装方法,或者你需要按照页面上的说明从源代码构建它。

直接回答你的问题,你应该在/Library/Frameworks/目录下找到这些库。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接