Re: [Haskell-cafe] libSDL [Tetris]

2007-11-22 Thread Andrew Coppin

Bit Connor wrote:

Hello Andrew,

  

...yep, configure fails because it can't find sh. (Again.)



This error can safely be ignored on windows.
  


Apparently so. (A bit confusing then, no?)


I'm rather loathed to install a Unix emulator just so I can install
things from Hackage.



cygwin is not required to build hsSDL on windows.
  


Glad to hear it. :-)


By the way, it turns out that SDL at least comes with a little text file
explaining how to build it on Windows. (I overlooked this the first
time.) Sadly, after following the instructions I still can't build it.
The changes it told me to make didn't seem to have any effect. (And
manually editing configuration files and C headers isn't my idea of a
good time anyway...)



What error are you getting?
  


Many pages of them. Mostly about undefined symbols. I've deleted all the 
files now; I'll maybe have another go at it later so I can tell you the 
exact error.



The next version of hsSDL (or current darcs) will not require editing
of C headers.
  


Good. :-)


Editing the cabal config file is necessary so that the SDL include
files and libs can be found.
  


...because Windows uses DLLs instead of [whatever it is that Unix does]?


Out of curiosity, is there a reason I'm trying to compile the code
myself in the first place? Is it just because that's the Unix way, or
is there some deep reason why we can't just download prebuilt binaries?



I am in favour of the idea of providing prebuilt binaries. Do you
think something like the gtk2hs windows installer would be good?
  


Gtk2hs is certainly drop-dead easy to install, no doubt about that. 
(Modulo some tricky path fiddling if you install Glade seperately as 
well... but that's no fault of the Haskell package.)


Personally, given how tricky it generally is to build *most* things from 
source code (you have to have all the right tools to do it), I'd prefer 
to see *all* packages available in binary form. However, I guess the 
number of packages and possible target platforms makes this prohibitive...


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] libSDL [Tetris]

2007-11-22 Thread Bit Connor
On Nov 22, 2007 9:39 PM, Andrew Coppin [EMAIL PROTECTED] wrote:
  Editing the cabal config file is necessary so that the SDL include
  files and libs can be found.
 

 ...because Windows uses DLLs instead of [whatever it is that Unix does]?

The reason is that on Unix, there are standard location for header
files and libraries. On windows, they can be anywhere, and in the case
of SDL, they are inside the directory where SDL was installed.

  Out of curiosity, is there a reason I'm trying to compile the code
  myself in the first place? Is it just because that's the Unix way, or
  is there some deep reason why we can't just download prebuilt binaries?
 
 
  I am in favour of the idea of providing prebuilt binaries. Do you
  think something like the gtk2hs windows installer would be good?
 

 Gtk2hs is certainly drop-dead easy to install, no doubt about that.
 (Modulo some tricky path fiddling if you install Glade seperately as
 well... but that's no fault of the Haskell package.)

 Personally, given how tricky it generally is to build *most* things from
 source code (you have to have all the right tools to do it), I'd prefer
 to see *all* packages available in binary form. However, I guess the
 number of packages and possible target platforms makes this prohibitive...

On GNU/Linux it is usually not tricky at all to build things from
source, and a lot of people prefer it over installing binaries.

I do agree that binary packages should be available for windows.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] libSDL [Tetris]

2007-11-21 Thread Andrew Coppin

Radosław Grzanka wrote:

2007/11/20, Bit Connor [EMAIL PROTECTED]:
  

GLUT should work fine on windows, but another alternative is SDL,
which works on Windows, GNU/Linux, and Mac

The haskell bindings are here:

http://hackage.haskell.org/cgi-bin/hackage-scripts/package/SDL-0.5.1



Last time I checked it I couldn't compile it. But I see the version
number has gone up much since that! Cool. I will give it a shot!
  


I'm pretty sure I've tried to install this before and failed. Let me go 
check...


...yep, configure fails because it can't find sh. (Again.)

It's a pitty - it looks like you can do sound with SDL, and that's 
something which greatly interests me.


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] libSDL [Tetris]

2007-11-21 Thread Andrew Coppin

Jorge Marques Pelizzoni wrote:

Andrew Coppin escreveu:
  

...yep, configure fails because it can't find sh. (Again.)



You are probably not using cygwin, are you? I mean, it includes sh and
should get you going. Just make sure to check all you need in the cygwin
setup.
  


I'm rather loathed to install a Unix emulator just so I can install 
things from Hackage.


By the way, it turns out that SDL at least comes with a little text file 
explaining how to build it on Windows. (I overlooked this the first 
time.) Sadly, after following the instructions I still can't build it. 
The changes it told me to make didn't seem to have any effect. (And 
manually editing configuration files and C headers isn't my idea of a 
good time anyway...)


Out of curiosity, is there a reason I'm trying to compile the code 
myself in the first place? Is it just because that's the Unix way, or 
is there some deep reason why we can't just download prebuilt binaries?


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] libSDL [Tetris]

2007-11-21 Thread Jorge Marques Pelizzoni


Andrew Coppin escreveu:
 ...yep, configure fails because it can't find sh. (Again.)

You are probably not using cygwin, are you? I mean, it includes sh and
should get you going. Just make sure to check all you need in the cygwin
setup.

Cheers,

Jorge.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe