I've found the problem.
The glew.h from the package mesa and the glew.h from glew itself are colliding with one another.
I've used the glew.h from the package mesa, but Vdrift is requiring the glew.h from glew itself.
I temporariry fix the solution with the patch below:
Code:
Index: vdrift-2010-06-30/include/fbobject.h
===================================================================
--- vdrift-2010-06-30.orig/include/fbobject.h
+++ vdrift-2010-06-30/include/fbobject.h
@@ -6,6 +6,7 @@
#include <OpenGL/gl.h>
#else
#include <GL/glew.h>
+#define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8
#include <GL/gl.h>
#endif
Index: vdrift-2010-06-30/include/fbtexture.h
===================================================================
--- vdrift-2010-06-30.orig/include/fbtexture.h
+++ vdrift-2010-06-30/include/fbtexture.h
@@ -6,6 +6,7 @@
#include <OpenGL/gl.h>
#else
#include <GL/glew.h>
+#define GL_TEXTURE_RECTANGLE 0x84F5
#include <GL/gl.h>
#endif
I don't know if the problem is mesa-based or it is vdrift-based. I just wanted to notice that glew.h is causing the problem.
For more information about including glew.h in mesa:
http://www.mail-archive.com/mesa3d-dev@l...06335.html