是安装在Mac OS 10.6(雪豹)SDL-配置
问题描述:
中的MacOS X 10.6(雪豹)安装SDL和SDL-devel,尝试配置需要SDL取得了一些源代码后:是安装在Mac OS 10.6(雪豹)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,但为什么我必须在存在预构建的软件包时?
答
我有完全相同的问题。
我发现SDL-配置被安装在两个位置:
- /SW /斌/ SDL-配置
和
- 的/ opt/local/bin目录/ sdl-config
在位于/ sw/bin中的一个中,我将pre修复/ opt/local - 然后运行。
答
您显示的输出来自automake的unix风格配置。根据此网站:http://www.libsdl.org/faq.php?action=listentries&category=7(第二和第三个问题),您不能直接使用dmg(您显示该链接)作为unix样式安装。请参阅上述页面上的链接以获取DarwinPorts或Fink安装,或者实际上,您必须按照页面上的描述从源代码构建它。
要直接回答您的问题,您应该在/ Library/Frameworks /中找到这些库。
答
可以使用的MacPorts安装MacPorts的后安装libsdl或libsdl-devel的(v1.2或V1.3)
安装libsdl型 port install libsdl
它将安装SDL -config在/ opt/local/bin
这应该是被接受的答案! – 2011-12-31 19:07:04