我正在尝试为Haskell安装SDL-image库,它是与同名原始C库相关的绑定集。我已经构建并安装了SDL库及其对应的Haskell包,并将SDL-image库中的文件放入了安装SDL的目录中。现在当我尝试安装SDL-image绑定时,出现以下错误:
$ runghc Setup.lhs configure
Configuring SDL-image-0.6.1...
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
checking for sdl-config... /usr/bin/sdl-config
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... .o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for IMG_Load in -lSDL_image... no
configure: error: *** SDL_image lib not found! Get SDL_image from http://www.libdsl.org/projects/SDL_image/index.html
一些初步的谷歌搜索告诉我应该明确告诉配置文件在哪里找到lib文件,但我不确定如何做到这一点。我尝试使用gcc标志-l[directory],但结果相同。我在Win7x64上使用MinGW。提前感谢任何帮助,并且如果我没有包含足够的信息,请原谅,因为我不太了解问题。
libSDL_image.a
是32位的。 - user824425libSDL_image.a
。我开始怀疑我是否首先构建了SDL_image! - Einar