在linux下源码安装 SDL+FreeType+SDL_ttf库时遇到的问题
错误提示:
checking for SDL - version >= 2.0.8... no
*** The sdl2-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 SDL2_CONFIG environment variable to the
*** full path to sdl2-config.
configure: error: *** SDL version 2.0.8 not found!
这个问题其实是提示你,该版本的SDL2_ttf安装包需要依赖 2.0.8 版本的SDL包,得先安装2.0.8 版本的SDL包后才能安装 目前版本的这 SDL2_ttf 包,
解决:
去官网(http://www.libsdl.org/release/)下载 对应版本的 SDL 安装包(这里是2.0.8),安装好再来继续 SDL2_ttf 的安装