我正在尝试编译SDL的最新版本,SDL版本2.0.1。我试着从Mercurial编译SDL。在使用以下消息执行./配置时,一切似乎都很好:
checking for working volatile... no
checking for GCC -MMD -MT option... no
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking stdio.h usability... no
checking stdio.h presence... no
checking for stdio.h... no
checking for stdlib.h... (cached) yes
checking stddef.h usability... no
checking stddef.h presence... no
checking for stddef.h... no
checking stdarg.h usability... no
checking stdarg.h presence... no
checking for stdarg.h... no
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking for memory.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking ctype.h usability... no
checking ctype.h presence... no
.
.
.
.
checking dbus/dbus.h usability... no
checking dbus/dbus.h presence... no
checking for dbus/dbus.h... no
checking for Linux 2.4 unified input interface... no
checking for Linux kd.h... no
checking for Touchscreen library support... no
config.status: creating SDL2.spec
config.status: creating sdl2.pc
config.status: creating include/SDL_config.h
config.status: executing libtool commands我收到了大量的no。/configure,当我试图运行时,它会显示以下消息:
Makefile:226: *** missing separator. Stop.这些信息背后的原因是什么?有人知道解决办法吗?
发布于 2014-03-27 20:42:35
我只是有同样的问题(对一个发球),这才是我的工作。
我将未压缩的文件夹放置到另一个文件夹中,其中有一个名称为空格的文件夹,在我的例子中,是一个名为“SDL2.0”的文件夹。当使用配置命令时,它会将make文件中的文件位置分割为两行,这首先出现在第226行。为了解决这个问题,我用下划线重命名了这个违规的文件夹,名为"SDL_2.0“。然后,我能够再次使用配置命令,然后更新的make文件可以工作。
TLDR:在文件名中使用下划线而不是空格。
发布于 2014-04-06 20:18:52
我也有过同样的问题,这就是对我起作用的原因:
在安装SDL之前安装以下库:
sudo apt-get install build-essential mercurial make cmake autoconf
automake \
libtool libasound2-dev libpulse-dev libaudio-dev libx11-dev libxext-dev \
libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxxf86vm-dev \
libxss-dev libgl1-mesa-dev libesd0-dev libdbus-1-dev libudev-dev \
libgles1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev之后,您可以运行./configure、make和make install。注意:我从SDL源代码附带的README.txt文件中获得了所有这些信息,所以您需要习惯于在尝试之前阅读这些文件。希望能帮上忙。
https://stackoverflow.com/questions/19700710
复制相似问题