I’m trying to install SDL within cabal for Haskell, in MinGW, but I got some problems. cabal can’t find the C library, and I don’t know why. Here some info:
- I have downloaded both the dev and runtime library of the SDL1.2 ;
- For the dev version, I
make nativeit: it’s installed in/usr/include/SDLand/usr/lib; - I tried a
cabal install SDL, it failed because it can’t find both the header file and the lib ; - Then, I give it another try with
cabal install SDL --extra-include-dirs=/usr/include/SDL --extra-lib-dirs=/usr/lib. It finds the header file but still not the lib ; - I copied the runtime library
SDL.dllin/usr/lib, still have the same trouble ; - Finally, I added
/usr/libto both thePATHandLD_LIBRARY_PATH, still can’t find that @!#* C lib.
Do you have an idea?