
Hello, is there a version of hopengl working with ghc 5.04? The one from the releases section of your website have some problems with Int/word conversion functions but also a bigger problem with CCallable instance of ForeignObj in file GLU_Quadric.gc . It seems that CCallable is obsolete. Best regards, Nicolas Oury

Nicolas Oury wrote:
Hello, is there a version of hopengl working with ghc 5.04? [...]
I guess you mean the latest and greatest GHC 5.04.2, because earlier versions work quite well with HOpenGL 1.03. Although 5.04.2 is supposed to be a patchlevel release without noticeable API changes, it isn't really: GHC's FFI has been synchronized with the FFI addendum, and there are some subtle changes, e.g. ForeignObjs can't be passed to external functions anymore. I'm quite aware of this and have a version which is "almost" working, including the new GLUT binding with rather extensive Haddock-generated documentation, which is already part of the fptools repository: http://cvs.haskell.org/cgi-bin/cvsweb.cgi/fptools/libraries/GLUT/ I really hope that I can make a new release before Christmas, meanwhile you can either use GHC 5.04.1 or disable GLU quadrics, NURBS, and the tesselator by hand. Cheers, S.

On Fri, 6 Dec 2002, Sven Panne wrote:
Nicolas Oury wrote:
Hello, is there a version of hopengl working with ghc 5.04? [...]
I guess you mean the latest and greatest GHC 5.04.2, because earlier You guess well, as I didn't try with previous and 5.04.2 was a patchlevel release, I had generalized. Sorry...
versions work quite well with HOpenGL 1.03. Although 5.04.2 is supposed to be a patchlevel release without noticeable API changes, it isn't really: GHC's FFI has been synchronized with the FFI addendum, and there are some subtle changes, e.g. ForeignObjs can't be passed to external functions anymore.
That's the bug I have.
I'm quite aware of this and have a version which is "almost" working, including the new GLUT binding with rather extensive Haddock-generated documentation, which is already part of the fptools repository:
http://cvs.haskell.org/cgi-bin/cvsweb.cgi/fptools/libraries/GLUT/
I really hope that I can make a new release before Christmas, meanwhile you can either use GHC 5.04.1 or disable GLU quadrics, NURBS, and the tesselator by hand. I don't need these three, but I wonder : should I use the releases on your website or the CVS?
Best regards, Nicolas.
Cheers, S. _______________________________________________ HOpenGL mailing list HOpenGL@haskell.org http://www.haskell.org/mailman/listinfo/hopengl

Nicolas Oury wrote:
On Fri, 6 Dec 2002, Sven Panne wrote:
[...] ForeignObjs can't be passed to external functions anymore. That's the bug I have.
Hmmm, Simon said this should still be possible with 5.04.2, so I'm a little bit confused. I've just tried HOpenGL 1.03 with GHC 5.04.1 on Solaris and everything worked fine. I don't have a 5.04.2 at hand currently (Simon: What about the Solaris binary?), so I can't figure things out immediately.
I don't need these three, but I wonder : should I use the releases on your website or the CVS?
Definitely the releases, CVS currently only contains a stub OpenGL binding and the new GLUT binding. Cheers, S.

On Fri, 6 Dec 2002, Sven Panne wrote:
Nicolas Oury wrote:
On Fri, 6 Dec 2002, Sven Panne wrote:
[...] ForeignObjs can't be passed to external functions anymore. That's the bug I have.
Hmmm, Simon said this should still be possible with 5.04.2, so I'm a little bit confused. I've just tried HOpenGL 1.03 with GHC 5.04.1 on Solaris and everything worked fine. I don't have a 5.04.2 at hand currently (Simon: What about the Solaris binary?), so I can't figure things out immediately.
In fact, to be precise this is a CVS ghc from the day of parution of 5.04.2. (It is compiled on OS X.) (it is self-numbered 5.05...) I may have take a bad branch. Cheers, Nicolas Oury
I don't need these three, but I wonder : should I use the releases on your website or the CVS?
Definitely the releases, CVS currently only contains a stub OpenGL binding and the new GLUT binding.
Cheers, S. _______________________________________________ HOpenGL mailing list HOpenGL@haskell.org http://www.haskell.org/mailman/listinfo/hopengl

I wrote:
Hmmm, Simon said this should still be possible with 5.04.2, so I'm a little bit confused. I've just tried HOpenGL 1.03 with GHC 5.04.1 on Solaris and everything worked fine. [...]
Just a small update: I've just tested HOpenGL 1.03 with GHC 5.04.2 on Solaris, and it works, too. In a nutshell: HOpenGL 1.03 works with the official releases, but not (yet) with the CVS HEAD. Stay tuned... Sorry for the confusion, S.

On Mon, 9 Dec 2002, Sven Panne wrote:
I wrote:
Hmmm, Simon said this should still be possible with 5.04.2, so I'm a little bit confused. I've just tried HOpenGL 1.03 with GHC 5.04.1 on Solaris and everything worked fine. [...]
Just a small update: I've just tested HOpenGL 1.03 with GHC 5.04.2 on Solaris, and it works, too.
In a nutshell: HOpenGL 1.03 works with the official releases, but not (yet) with the CVS HEAD. Stay tuned...
Sorry for the confusion, S.
I have 5.04.2 and it works fine. Sorry for the confusion, Nicolas. PS: Would it be possible in future releases to disjoin Opengl from GLUT?
_______________________________________________ HOpenGL mailing list HOpenGL@haskell.org http://www.haskell.org/mailman/listinfo/hopengl
participants (2)
-
Nicolas.Oury
-
Sven Panne