well i have finally gotten around to trying to get hopengl to build again. the pthreads problem i had before is gone now :). ok the problem is after doing ./configure gmake depend gmake this message happens "/usr/local/bin/ghc" -o BlendEqn -i../../lib -I../../lib -syslib lang -fglasgow-exts -I/usr/X11R6/include "-#include <GL/glut.h>" -O BlendEqn.o -L../../lib -lHOpenGL -lglut -lGLU -lGL -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lm ../../lib/libHOpenGL.a(GL_PerFragment__57.o): In function `se1V_1_alt': GL_PerFragment__57.o(.text+0x6c): undefined reference to `glBlendEquation' ../../lib/libHOpenGL.a(GL_PerFragment__57.o): In function `se1V_2_alt': GL_PerFragment__57.o(.text+0x9c): undefined reference to `glBlendEquation' ../../lib/libHOpenGL.a(GL_PerFragment__57.o): In function `se1V_3_alt': GL_PerFragment__57.o(.text+0xcc): undefined reference to `glBlendEquation' ../../lib/libHOpenGL.a(GL_PerFragment__57.o): In function `se1V_4_alt': GL_PerFragment__57.o(.text+0xfc): undefined reference to `glBlendEquation' ../../lib/libHOpenGL.a(GL_PerFragment__57.o): In function `se1V_5_alt': 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. hints on how to fix? chris
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.
participants (2)
-
chris -
Sven Panne