在MacOS 10.6(Snow Leopard)上安装sdl-config的位置

时间:2010-01-23 07:45:22

标签: macos sdl

在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 个答案:

答案 0 :(得分:15)

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

http://www.macports.org/

安装macports后安装libsdl类型 port install libsdl

它将在/ opt / local / bin

安装sdl-config

答案 1 :(得分:1)

我遇到了同样的问题。

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

  • / SW / bin中/ SDL-配置

  • 的/ opt / local / bin中/ SDL-配置

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

答案 2 :(得分:0)

您显示的输出来自为automake配置的unix样式。根据此站点:http://www.libsdl.org/faq.php?action=listentries&category=7(第二和第三个问题),您不能直接使用dmg(显示链接)作为unix样式安装。有关DarwinPorts或Fink安装的信息,请参阅上一页上的链接,或者,您必须按照页面上的说明从源代码构建它。

要直接回答您的问题,您应该在/ Library / Frameworks /.

中找到这些库
相关问题