GNOME Bugzilla – Bug 590351
Compile issue on GLEW version.
Last modified: 2009-08-10 23:26:17 UTC
Hi: When compile gstreamer-plugins-gl on ubuntu 8.04, It will fail at /gst-libs/gst/gl/gstgldisplay.c. The error report is "GLEW_VERSION_MAJOR and GLEW_VERSION_MINOR not declared", in the /usr/include/GL/glew.h, the two macros not defined.
which glew version are you using ? (type: glewinfo | grep "GLEW version" is you have installed glew-utils or type: ls /usr/lib/libGLEW.so.* or type: cat /usr/include/GL/glew.h | grep "GLEW_VERSION ") I am using 1.5. I think those variables are defined at least in 1.5.0. You can defined them by yourself or install glew 1.5.0. You could also make a patch in configure.ac to make sure those variables are defined.
I used GLEW version 1.4.0 on my ubuntu 8.04 :). I Compiled the package on ubuntu 9.04 which GLEW version is 1.5, It don't have this issue, I check the head file. It defined the GLEW_VERSION_MAJOR.
commit 6186ec509d32030041ffb5a89aae2b53d8a5e63d Author: Julien Isorce <julien.isorce@gmail.com> Date: Mon Aug 3 17:52:31 2009 +0200 define missing glew macro on older versions