当前位置: 技术问答>linux和unix
关于Autotools的问题
来源: 互联网 发布时间:2016-07-09
本文导语: configure.ac中检查SDL_image库的代码如下: # Check for SDL_image library AC_CHECK_LIB(SDL_image, IMG_Load, , AC_MSG_ERROR([ *** Unable to find SDL_image libary with PNG support (http://www.libsdl.org/projects/SDL_image/) ]), ‘sdl-config --libs‘) 执行....
configure.ac中检查SDL_image库的代码如下:
# Check for SDL_image library
AC_CHECK_LIB(SDL_image, IMG_Load, , AC_MSG_ERROR([
*** Unable to find SDL_image libary with PNG support
(http://www.libsdl.org/projects/SDL_image/)
]), ‘sdl-config --libs‘)
执行./configure时报这样的错误:
checking for IMG_Load in -lSDL_image... no
configure: error:
*** Unable to find SDL_image libary with PNG support
(http://www.libsdl.org/projects/SDL_image/)
这是什么问题呢?
# Check for SDL_image library
AC_CHECK_LIB(SDL_image, IMG_Load, , AC_MSG_ERROR([
*** Unable to find SDL_image libary with PNG support
(http://www.libsdl.org/projects/SDL_image/)
]), ‘sdl-config --libs‘)
执行./configure时报这样的错误:
checking for IMG_Load in -lSDL_image... no
configure: error:
*** Unable to find SDL_image libary with PNG support
(http://www.libsdl.org/projects/SDL_image/)
这是什么问题呢?
|
既然库已经安装,看来是路径配置错误。
楼主运行
sdl-config --libs
看看输出什么
楼主运行
sdl-config --libs
看看输出什么
|
checking for IMG_Load in -lSDL_image... no
你确认SDL_image库中是有这样的函数IMG_Load()?
再确认一下系统的LIB_LIBRARY_PATH是否正确。
你确认SDL_image库中是有这样的函数IMG_Load()?
再确认一下系统的LIB_LIBRARY_PATH是否正确。
|
Unable to find SDL_image libary with PNG support
这句就是错误原因啊
除了错误先自己看看呀
这句就是错误原因啊
除了错误先自己看看呀