ghc-6.11 + OpenGL/GLUT crashes on WinXP

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ghc-6.11 + OpenGL/GLUT crashes on WinXP

Conal Elliott
I'm getting crashes from ghc-6.10.0.20081007 and ghc-6.11.20081024 when doing a very simple GLUT program (below) with OpenGL-2.2.1.1 and GLUT-2.1.1.2 (the latest from Hackage), running on WinXP.  It works fine on ghc-6.9.20080622 .

I'd appreciate hearing about other attempts with these versions on Windows systems.

Thanks,  - Conal


import Graphics.UI.GLUT

main :: IO ()
main = do putStrLn "Initializing"
          getArgsAndInitialize
          return ()


_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: [Haskell-cafe] ghc-6.11 + OpenGL/GLUT crashes on WinXP

Conal Elliott
Thanks, David.  Helpful data point.

I am using glut32 rather than freeglut (and no need for patching the darcs GLUT).  I wonder if glut32-vs-freeglut could account for crash-vs-nocrash on 6.10 and 6.11 but not 6.9.  I'd love to hear from someone on Windows and glut32.

Please do post a wiki page on freeglut + ghc on windows and let us know here.

Could you integrate your glutWin32 patch into the darcs GLUT?

   - Conal

On Tue, Oct 28, 2008 at 8:48 AM, David Sankel <[hidden email]> wrote:
My setup worked:
  • Windows XP.
  • ghc-6.11.20081024
  • freeglut 2.4.0
  • darcs version of GLUT (with patched glutGetProcAddress [attached])
  • darcs version of OpenGL
Getting freeglut going with ghc on windows is a bit involved. I could write a walkthrough if there's enough interest.

David

2008/10/25 Conal Elliott <[hidden email]>
I'm getting crashes from ghc-6.10.0.20081007 and ghc-6.11.20081024 when doing a very simple GLUT program (below) with OpenGL-2.2.1.1 and GLUT-2.1.1.2 (the latest from Hackage), running on WinXP.  It works fine on ghc-6.9.20080622 .

I'd appreciate hearing about other attempts with these versions on Windows systems.

Thanks,  - Conal


import Graphics.UI.GLUT

main :: IO ()
main = do putStrLn "Initializing"
          getArgsAndInitialize
          return ()


_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe



_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: [Haskell-cafe] Re: ghc-6.11 + OpenGL/GLUT crashes on WinXP

Conal Elliott
No display lists.  The crash happens during the GLUT call "initialize".  I can trigger it from ghci with the following simple incantation:

     Prelude> import Graphics.UI.GLUT
     Prelude Graphics.UI.GLUT> initialize "foo" []

And no trouble under ghc 6.9.20080622.

Stumped.  :(

    - Conal

On Tue, Oct 28, 2008 at 3:14 PM, Jefferson Heard <[hidden email]> wrote:
Conal, are you using display lists at all?  I've had problems with
allocating lists, but you seem to be able to leave off the allocation
step in Windows on nVidia cards so long as you're careful not to
conflict names yourself.

On Tue, Oct 28, 2008 at 4:03 PM, Matti Niemenmaa
<[hidden email]> wrote:
> Conal Elliott wrote:
>> I am using glut32 rather than freeglut (and no need for patching the darcs
>> GLUT).  I wonder if glut32-vs-freeglut could account for crash-vs-nocrash on
>> 6.10 and 6.11 but not 6.9.  I'd love to hear from someone on Windows and
>> glut32.
>
> Windows XP with SP3
> ghc-6.10.20081007
> glut32
>
> Works fine for me.
>
> Taking a look at my GL headers, I did have to mess with at least glut.h to get
> something to work---whether it was to build HOpenGL, to make programs linkable,
> or to make them runnable, I'm not sure. In any case, what I did was force
> GLUTAPIENTRY to be #defined as __stdcall.
>
> _______________________________________________
> Haskell-Cafe mailing list
> [hidden email]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>



--
I try to take things like a crow; war and chaos don't always ruin a
picnic, they just mean you have to be careful what you swallow.

-- Jessica Edwards
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe


_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: [Haskell-cafe] ghc-6.11 + OpenGL/GLUT crashes on WinXP

David Sankel
In reply to this post by Conal Elliott
With ghc 6.10.1, the patches aren't necessary for the lasted releases of the bindings. I've put a walkthrough on my blog for the process of getting `freeglut+GLUT binding+GL binding+ghc 6.10.1` up and running.

http://netsuperbrain.com/blog/

David

On Tue, Oct 28, 2008 at 10:48 AM, David Sankel <[hidden email]> wrote:
My setup worked:
  • Windows XP.
  • ghc-6.11.20081024
  • freeglut 2.4.0
  • darcs version of GLUT (with patched glutGetProcAddress [attached])
  • darcs version of OpenGL
Getting freeglut going with ghc on windows is a bit involved. I could write a walkthrough if there's enough interest.

David

2008/10/25 Conal Elliott <[hidden email]>
I'm getting crashes from ghc-6.10.0.20081007 and ghc-6.11.20081024 when doing a very simple GLUT program (below) with OpenGL-2.2.1.1 and GLUT-2.1.1.2 (the latest from Hackage), running on WinXP.  It works fine on ghc-6.9.20080622 .

I'd appreciate hearing about other attempts with these versions on Windows systems.

Thanks,  - Conal


import Graphics.UI.GLUT

main :: IO ()
main = do putStrLn "Initializing"
          getArgsAndInitialize
          return ()


_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe



_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users