Re: [Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-12-02 Thread Duncan Coutts
On Tue, 2008-12-02 at 18:04 +, Claus Reinke wrote: > >> ghc --make -package OpenGL -package GLUT something.hs > >> I get nothing but undefined references in the linking phase. > >> C:\Program > >> Files\Haskell\GLUT-2.1.1.2\ghc-6.11.20081202/libHSGLUT-2.1.1.2.a(Window.o):fake: > >> (.t

Re: [Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-12-02 Thread Claus Reinke
I believe these errors are caused by the wrong calling convention being used in the Haskell bindings. This part in the configure script tests the build (host) platform: case "$host" in *-mingw32) CALLCONV=stdcall ;; *) CALLCONV=ccall ;; esac Since it doesn't test for Cygwin, you end up with

Re: [Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-12-02 Thread Pekka Karjalainen
On Tue, Dec 2, 2008 at 6:55 PM, Claus Reinke <[EMAIL PROTECTED]> wrote: > I finally got round to trying cabal-install with OpenGL/GLUT, > using a freshly built ghc head, a cygwin bash, and [...] > C:\Program > Files\Haskell\GLUT-2.1.1.2\ghc-6.11.20081202/libHSGLUT-2.1.1.2.a(Window.o):fake: > (.t

Re: [Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-12-02 Thread Claus Reinke
ghc --make -package OpenGL -package GLUT something.hs I get nothing but undefined references in the linking phase. C:\Program Files\Haskell\GLUT-2.1.1.2\ghc-6.11.20081202/libHSGLUT-2.1.1.2.a(Window.o):fake: (.text+0x15): undefined reference to `glutWarpPointer' Does ghc-pkg describe Ope

Re: [Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-12-02 Thread Duncan Coutts
On Tue, 2008-12-02 at 16:55 +, Claus Reinke wrote: > But when I actually try to build anything using (yes, I know the explicit > package flags aren't needed with --make) > > ghc --make -package OpenGL -package GLUT something.hs > > I get nothing but undefined references in the linking ph

Re: [Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-12-02 Thread Claus Reinke
I finally got round to trying cabal-install with OpenGL/GLUT, using a freshly built ghc head, a cygwin bash, and > http://haskell.org/~duncan/cabal/cabal.exe cabal-install version 0.6.0 using version 1.6.0.1 of the Cabal library > Yes, building it requires mingw/msys, but with it cabal

[Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-11-24 Thread Don Stewart
simonpj: > > | It's sad to see the OpenGL binding being dropped from GHC binary > | installers starting from 6.10. Though this issue has been brought up > | and discussed before, I'm sure a lot of people who based their work on > | OpenGL would share the same sympathy. > > The plan (which we have

[Haskell-cafe] RE: [Haskell] GHC 6.10 and OpenGL

2008-11-24 Thread Simon Peyton-Jones
| It's sad to see the OpenGL binding being dropped from GHC binary | installers starting from 6.10. Though this issue has been brought up | and discussed before, I'm sure a lot of people who based their work on | OpenGL would share the same sympathy. The plan (which we have perhaps not articulate

Re: [Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-11-23 Thread Duncan Coutts
On Sun, 2008-11-23 at 16:41 +0100, Manlio Perillo wrote: > Claus Reinke ha scritto: > > [...] > >>> 2. It still wouldn't work for the OpenGL package on Windows, because > >>> the configure scripts require a Unix-style built environment > >>> (MinGW/MinSys or Cygwin). > >> > > [...] > > - they need

Re: [Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-11-23 Thread Manlio Perillo
Claus Reinke ha scritto: [...] 2. It still wouldn't work for the OpenGL package on Windows, because the configure scripts require a Unix-style built environment (MinGW/MinSys or Cygwin). [...] - they need to install MinGW/MSys - then they can do cabal install OpenGL Does cabal support pre

Re: [Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-11-23 Thread Duncan Coutts
On Sun, 2008-11-23 at 09:24 -0500, Jeff Heard wrote: > Duncan, what kind of help do you need on the Haskell Platform install? > I have access to VMs running windows XP and Vista. The haskell-platform meta-package is here: darcs get http://code.haskell.org/haskell-platform/ This specifies the lis

Re: [Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-11-23 Thread Jeff Heard
Duncan, what kind of help do you need on the Haskell Platform install? I have access to VMs running windows XP and Vista. On Sun, Nov 23, 2008 at 8:12 AM, Duncan Coutts <[EMAIL PROTECTED]> wrote: > On Sun, 2008-11-23 at 08:00 -0500, Paul L wrote: >> On 11/23/08, Duncan Coutts <[EMAIL PROTECTED]>

Re: [Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-11-23 Thread Duncan Coutts
On Sun, 2008-11-23 at 08:00 -0500, Paul L wrote: > On 11/23/08, Duncan Coutts <[EMAIL PROTECTED]> wrote: > >> 2. It still wouldn't work for the OpenGL package on Windows, because > >> the configure scripts require a Unix-style built environment > >> (MinGW/MinSys or Cygwin). > > > > Yes, building i

Re: [Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-11-23 Thread Duncan Coutts
On Sun, 2008-11-23 at 12:30 +, Claus Reinke wrote: > >> >> It's sad to see the OpenGL binding being dropped from GHC binary > >> >> installers starting from 6.10. Though this issue has been brought up > >> >> and discussed before, I'm sure a lot of people who based their work on > >> >> OpenGL

Re: [Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-11-23 Thread Paul L
On 11/23/08, Duncan Coutts <[EMAIL PROTECTED]> wrote: >> 2. It still wouldn't work for the OpenGL package on Windows, because >> the configure scripts require a Unix-style built environment >> (MinGW/MinSys or Cygwin). > > Yes, building it requires mingw/msys, but with it cabal install opengl > rea

Re: [Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-11-23 Thread Claus Reinke
>> It's sad to see the OpenGL binding being dropped from GHC binary >> installers starting from 6.10. Though this issue has been brought up >> and discussed before, I'm sure a lot of people who based their work on >> OpenGL would share the same sympathy. > > $ cabal install OpenGL Nice except

Re: [Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-11-23 Thread Duncan Coutts
On Sat, 2008-11-22 at 23:34 -0500, Paul L wrote: > On 11/22/08, Don Stewart <[EMAIL PROTECTED]> wrote: > > ninegua: > >> Hi everyone, > >> > >> It's sad to see the OpenGL binding being dropped from GHC binary > >> installers starting from 6.10. Though this issue has been brought up > >> and discuss

[Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-11-22 Thread Paul L
On 11/22/08, Don Stewart <[EMAIL PROTECTED]> wrote: > ninegua: >> Hi everyone, >> >> It's sad to see the OpenGL binding being dropped from GHC binary >> installers starting from 6.10. Though this issue has been brought up >> and discussed before, I'm sure a lot of people who based their work on >>

Re: [Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-11-22 Thread Conal Elliott
That post is by David Sankel (camior on #haskell), not by me. My last name has two "t"s. Good luck, - Conal (Elliott) On Sat, Nov 22, 2008 at 4:06 PM, Greg Fitzgerald <[EMAIL PROTECTED]> wrote: > >$ cabal install OpenGL > > HOpenGL installs easily with cabal-install, but most HOpenGL exam

Re: [Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-11-22 Thread Jeff Heard
I'm not sure.. can MSVC compiled libraries be intermixed with mingwin libraries? I see Conal has advised installing mingwin as part of his GLUT packaging. -- Jeff On Sat, Nov 22, 2008 at 7:06 PM, Greg Fitzgerald <[EMAIL PROTECTED]> wrote: >>$ cabal install OpenGL > > HOpenGL installs easil

Re: [Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-11-22 Thread Greg Fitzgerald
>$ cabal install OpenGL HOpenGL installs easily with cabal-install, but most HOpenGL examples and tutorials also use GLUT, which is not so painless on Windows. Luckily Conal Elliot just recently posted detailed instructions of how to do it: http://netsuperbrain.com/blog/posts/freeglut-windows

[Haskell-cafe] Re: [Haskell] GHC 6.10 and OpenGL

2008-11-22 Thread Don Stewart
ninegua: > Hi everyone, > > It's sad to see the OpenGL binding being dropped from GHC binary > installers starting from 6.10. Though this issue has been brought up > and discussed before, I'm sure a lot of people who based their work on > OpenGL would share the same sympathy. $ cabal install