【问题标题】:Where is sdl-config installed on MacOS 10.6 (Snow Leopard)MacOS 10.6 (Snow Leopard) 上的 sdl-config 安装在哪里
【发布时间】:2010-01-23 07:45:21
【问题描述】:

在 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,但是当存在预构建的包时,为什么我必须这样做?

【问题讨论】:

    标签: macos sdl


    【解决方案1】:

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

    http://www.macports.org/

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

    它将在 /opt/local/bin 安装 sdl-config

    【讨论】:

      【解决方案2】:

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

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

      • /sw/bin/sdl-config

      • /opt/local/bin/sdl-config

      在位于 /sw/bin 的那个中,我将前缀更改为 /opt/local — 然后它就起作用了。

      【讨论】:

        【解决方案3】:

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

        要直接回答您的问题,您应该在 /Library/Frameworks/ 中找到这些库。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2010-11-30
          • 2013-07-15
          • 2011-11-12
          • 1970-01-01
          • 1970-01-01
          • 2011-01-25
          • 2013-02-24
          • 2010-12-01
          相关资源
          最近更新 更多