Re: problems compiling hopengl

Sven Panne <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <[email protected]>
chris wrote:
> [...]
> GL_PerFragment__57.o(.text+0x12c): undefined reference to `glBlendEquation'
> gmake[2]: *** [BlendEqn] Error 1
> gmake[1]: *** [all] Error 1
> gmake: *** [all] Error 1
> 
> i am running freebsd 4.7 RC with ghc-5.04.1, mesa-3.4.2_2, and
> green-card-2.04_1.

Hmmm, I assume that you are using the latest HOpenGL version (1.03).
The problem seems to be that your (ancient) Mesa version is lying: It
probably says that it implements OpenGL 1.2, but doesn't actually
provide glBlendEquation. Possible solutions:

   * Improve HOpenGL's autoconf magic to detect this and send me a patch. :-)

   * Upgrade your Mesa.

   * Simply tweak examples/redbook_HS/Makefile{,.in} to exclude
     BlendEqn.hs (variable DONTCOMPILE).

Cheers,
   S.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.