Where is sdl-config installed on MacOS 10.6 (Snow Leopard)

Jos*_*ver 6 macos sdl

After installing SDL and SDL-devel in MacOS X 10.6 (Snow Leopard), trying to configure some source code that requires SDL yields:

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!
Run Code Online (Sandbox Code Playgroud)

Does anyone know where to find sdl-config? I guess I can build SDL from source, but why should I have to, when there exist pre-built packages?

ufk*_*ufk 15

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

http://www.macports.org/

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

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


wal*_*rra 1

我有同样的问题。

\n\n

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

\n\n
    \n
  • /sw/bin/sdl-config
  • \n
\n\n

\n\n
    \n
  • /opt/local/bin/sdl-config
  • \n
\n\n

在位于 /sw/bin 的目录中,我将前缀更改为 /opt/local \xe2\x80\x94 然后它就起作用了。

\n