Nicolas.Oury | 5 Dec 2002 16:06
Picon
Picon

HOpenGL fo 5.04

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
Sven Panne | 6 Dec 2002 08:39
Picon

Re: HOpenGL fo 5.04

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.
Simon Marlow | 6 Dec 2002 10:34
Picon
Favicon

RE: HOpenGL fo 5.04


> 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.

That's not true - 5.04.2 still supports ForeignObj as an argument to a
foreign function.  The functionality has been removed in the HEAD,
though.

I'm not aware of any API changes in 5.04.2 relative to 5.04.1.

Cheers,
	Simon
Nicolas.Oury | 6 Dec 2002 11:25
Picon
Picon

Re: HOpenGL fo 5.04


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?

(Continue reading)

Sven Panne | 6 Dec 2002 11:31
Picon

Re: HOpenGL fo 5.04

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.
Nicolas.Oury | 6 Dec 2002 11:39
Picon
Picon

Re: HOpenGL fo 5.04


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,
(Continue reading)

Simon Marlow | 6 Dec 2002 11:42
Picon
Favicon

RE: HOpenGL fo 5.04


> 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.

Aha, it looks like you got the sources from the HEAD rather than the
5.04 branch (which the recent 5.04.2 release was taken from).

To get the 5.04.2 sources, you do this:

	cvs checkout -r ghc-5-04-2 ...

to get the latest from the 5.04 branch, do this:

	cvs checkout -r ghc-5-04-branch ...

(Continue reading)

Sven Panne | 9 Dec 2002 12:59
Picon

Re: HOpenGL fo 5.04

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.
Nicolas.Oury | 9 Dec 2002 13:14
Picon
Picon

Re: HOpenGL fo 5.04


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 <at> haskell.org
> http://www.haskell.org/mailman/listinfo/hopengl
>
(Continue reading)

Clifford Beshers | 14 Dec 2002 06:23

Stable version


I'm trying to find a stable combination of ghc and hopengl, without 
success so far.  I've tried a variety of 5.04 setups without success. 
 Can someone give a recommendation?

Thanks,

Cliff

Gmane