
I am trying to install SDL, and getting (typical?!) Haskell install troubles. I found one suggestion from SO to use a modified SDL.cabal, but that didn't work. I downloaded the current version (0.6.3) from HackageDB and tried to install using the enclosed Windows instructions. I get the error: D:\ftp\New\W7\SDL\SDL-0.6.3>runghc Setup.lhs configure Configuring SDL-0.6.2... configure: WARNING: unrecognized options: --with-compiler, --with-gcc configure: error: cannot find sources (includes/HsSDLConfig.h.in) in /e/plang/Libraries/wxWidgets2.9 or .. I downloaded the current version (0.6.3) from HackageDB. I spent several trips around the install problems with wxWin, and finally did get it working, only to have it alter fail on an upgrade in Haskell Platform version, but again finally got it reinstalled and working. -------------------------------------------

Hi Gergory You want to build the binding under MinGW / SYS using the development headers and libraries from libsdl.org packaged as SDL-devel-1.2.15-mingw32.tar.gz (or a later version if there is one). SDL-devel-1.12.15-mingw32.tar.gz installs easily after unpacking (I believe it ships mostly binary components rather than builds anything much from source). To build the Haskell binding you want to tell Cabal to use these libs: Extra-Libraries: SDL.dll SDLmain Additionally point to the extra devel and lib dirs - for me with a vanilla install of SDL-devel-1.12.15-mingw32.tar.gz they located in these directories: Include-Dirs: C:\msys\1.0\include\SDL SDL includes the toplevel header SDL.h, plus others. Extra-Lib-Dirs: C:\msys\1.0\lib which should contain libSDL.dll.a, libSDL.la, and libSDLmain.a I modified my local SDL.cabal file to include these changes (otherwise I'd likely forget them if I needed to rebuild), but you should be able to pass them as options to "runhaskell Set.lhs configure" Regards Stephen
participants (2)
-
Gregory Guthrie
-
Stephen Tetley