
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

Clifford Beshers wrote:
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.
Hmmm, HOpenGL 1.03 (http://haskell.org/HOpenGL/releases/HOpenGL-1.03.tar.gz, just to be sure) works with with all official releases of GHC 5.04 (5.04, 5.04.1, 5.04.2), at least on the platforms I have access to (x86 Linux, WinDoze+Cygwin, SPARC-Solaris).
Can someone give a recommendation?
It's a bit hard to guess without further information about your setup. Could you send me a transcript of what you've done, including the output of uname -a ghc --version and the config.log and config.status files? Cheers, S.

Thank you, that did the trick. I had first tried the packages from Debian unstable. They had the redbook examples, but they wouldn't compile because the import commands failed. Then I checked out 5.04.2 from cvs and built that, then tried to compile the redbook examples from the Debian package, but that didn't work either. I think the only thing broken is the documentation and the Debian packaging. There just was no clear path to getting things running. BTW, what exactly am I looking for in a Quake data file to make the QBSP program do something interesting? Thanks, Cliff Sven Panne wrote:
Clifford Beshers wrote:
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.
Hmmm, HOpenGL 1.03 (http://haskell.org/HOpenGL/releases/HOpenGL-1.03.tar.gz, just to be sure) works with with all official releases of GHC 5.04 (5.04, 5.04.1, 5.04.2), at least on the platforms I have access to (x86 Linux, WinDoze+Cygwin, SPARC-Solaris).
Can someone give a recommendation?
It's a bit hard to guess without further information about your setup. Could you send me a transcript of what you've done, including the output of
uname -a ghc --version
and the config.log and config.status files?
Cheers, S.
_______________________________________________ HOpenGL mailing list HOpenGL@haskell.org http://www.haskell.org/mailman/listinfo/hopengl

I wrote:
Hmmm, HOpenGL 1.03 > (http://haskell.org/HOpenGL/releases/HOpenGL-1.03.tar.gz, just to be sure) works with with all official releases of GHC 5.04 (5.04, 5.04.1, 5.04.2), at least on the platforms I have access to (x86 Linux, WinDoze+Cygwin, SPARC-Solaris). [...]
*aaaargl* I've just noticed that the WinDoze release of 5.04.2 doesn't include the GL headers (in mingw\include), while 5.04.1 does! >:-( This is a showstopper for HOpenGL, at least for Joe User. Simon, Sigbjorn: Is there a quick way to fix this? I can see 3 ways: * Repackage 5.04.2 with the missing headers * Make the missing headers available via an *.msi or *.zip * Release 5.04.3 soon Some kind of regression test for those headers would be nice, too. Sorry for my previous misinformation, but testing the whole (hyper-)cube of GHC versions, platforms, GL versions, ... is sometimes a bit too much. :-[ Cheers, S.

After a few (de-)installation cycles I finally figured out the OpenGL header story for the WinDoze versions of GHC: * GHC 5.04 contains a GL subdir with OpenGL headers below include\mingw. Those headers seem to come from a Cygwin distribution, despite of the misleading pathname. * Alas, GHC 5.04.1 and GHC 5.04.2 are not shipped with OpenGL headers. * The WinDoze installer packages for *both* GHC 5.04 and GHC 5.04.1 are called 'ghc-5-04-1.msi'?! This is where part of my confusion came from. I suggest changing this on haskell.org/ghc. * As an aside, the GHC 5.04.2 installer comes with superfluous compilers and support libraries for C++, Objective-C and Fortran77. Leaving these out would reduce the unpacked size of GHC by 6.3MB. :-) Some more confusing facts about MinGW and Cygwin: * MinGW's headers GL/gl{,u,ext}.h are identical to the ones from Cygwin's w32api/GL. The GL/glext.h header is lying about the OpenGL version on WinDoze, pretending it's 1.3. * MinGW comes with a GLUT libraries, but not with a corresponding GL/glut.h header. What to do in all this chaos? As the simplest short-term solution I've packaged the following headers into a ZIP file: include/mingw/GL/gl.h (from Cygwin's w32api/GL == MinGW's GL) include/mingw/GL/glu.h (from Cygwin's w32api/GL == MinGW's GL) include/mingw/GL/glut.h (from Cygwin's GL) include/mingw/GL/glext.h (from Cygwin's w32api/GL == MinGW's GL) It is available at: http://haskell.org/HOpenGL/releases/OpenGL-includes.zip Simply unzip it into the installation directory of GHC 5.04.1 or 5.04.2 (e.g. C:\ghc\ghc-5.04.2 for the default 5.04.2 installation). It would be nice if upcoming WinDoze installers for GHC were shipped with those headers. Cheers, S.
participants (3)
-
Clifford Beshers
-
Sven Panne
-
Sven Panne