
================================================================ C:\Windows\system32>cabal install SDL Resolving dependencies... [1 of 1] Compiling Main ( C:\Users\LIERYA~1\AppData\Local\Temp\SDL-0.5.93108\SDL-0.5.9\Setup.lhs, C:\Users\LIERYA~1\AppData\Local\Temp\SDL-0.5.93108\SDL-0.5.9\dist\setup\Main.o ) C:\Users\LIERYA~1\AppData\Local\Temp\SDL-0.5.93108\SDL-0.5.9\Setup.lhs:2:2: Warning: In the use of `defaultUserHooks' (imported from Distribution.Simple): Deprecated: "Use simpleUserHooks or autoconfUserHooks, unless you need Cabal-1.2 compatibility in which case you must stick with defaultUserHooks" Linking C:\Users\LIERYA~1\AppData\Local\Temp\SDL-0.5.93108\SDL-0.5.9\dist\setup\setup.exe ... Warning: defaultUserHooks in Setup script is deprecated. Configuring SDL-0.5.9... setup.exe: sh: runGenProcess: does not exist (No such file or directory) cabal: Error: some packages failed to install: SDL-0.5.9 failed during the configure step. The exception was: exit: ExitFailure 1 ================================================================ I searched on google, it says some modules (e.g. SDL) requires a unix-shell to run the ./configure script. I do have Cygwin on the machine, but I installed GHC/Haskell Platform on the host machine (not on Cygwin). If I installed the SDL package inside cygwin using cabal, would cabal installs the SDL on the Cygwin environment or on the host machine? (i.e. can I use the resultant SDL-binding outside Cygwin?)

2009/12/27 Lie Ryan
[SNIP...] (i.e. can I use the resultant SDL-binding outside Cygwin?)
Hi The short answers is "yes" - once you have the Haskell binding installed will need only the .exe of your (Haskell) application compiled by GHC and the SDL.dll [1]. The long answer is that this was true for whichever GHC I was using a year ago (probably 6.10.1) so should still be true now but isn't guaranteed. Installing the development packages for SDL was a bit convoluted a year ago - cygwin needs the DirectX headers[2]. Also I think you might have to compile to an exe each time - I seem to remember you couldn't develop with SDL and GHCi. [1] http://www.libsdl.org/release/SDL-1.2.14-win32.zip [2] http://www.libsdl.org/extras/win32/cygwin/README.txt Best wishes Stephen
participants (2)
-
Lie Ryan
-
Stephen Tetley