linux 下生成makefile文件
在linux下安装xx.tar.gz文件
步骤 1:tar -vxzf xx.tar.gz
2: cd xx
3: ./configure
4: make
5: make install
但是在步骤3时就出现了问题,即./configure,这一步生成makefile.func、makefile.am等makefile文件,就是不生成makefile文件,请问是怎么回事儿。。在线等,谢谢
------解决方案--------------------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没安装或版本太低!
configure有错的话是不生成makefile的,因为即使生成出来了也不可能编译通过!
------解决方案--------------------*** 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.
这几句翻译一下就全清楚了.
一般是sdl没安装.
如果是源代码编译安装的.检查sdl 的PREFIX变量. PREFIX/bin是有在你的路径中.
手动设置SDL_CONFIG环境变量.这样可爱的configure才可能找到SDL哦