[Bf-committers] How to tell cmake to use system glew
Richard Shaw
hobbes1069 at gmail.com
Tue Apr 5 21:28:23 CEST 2011
On Tue, Apr 5, 2011 at 2:14 PM, pete larabell <xgl.asyliax at gmail.com> wrote:
> RIchard,
>
> so far as I know, blender needs it's own glew implementation. It is
> not the same as the system version. It is not something that can be
> turned off, since blender itself draws to the screen with OpenGL.
Strange then... I have patches from the current Fedora blender
maintainer that seems to do this but for scons, not cmake...
Here's a snippit of the patch for one file:
diff -up blender/source/blender/editors/include/BIF_gl.h.ext
blender/source/blender/editors/include/BIF_gl.h
--- blender/source/blender/editors/include/BIF_gl.h.ext 2011-03-23
18:31:29.545937006 +0100
+++ blender/source/blender/editors/include/BIF_gl.h 2011-03-23
18:31:54.026936914 +0100
@@ -35,7 +35,7 @@
#ifndef BIF_GL_H
#define BIF_GL_H
-#include "../../../../extern/glew/include/GL/glew.h"
+#include <GL/glew.h>
/*
* these should be phased out. cpack should be replaced in
And then a bunch of entries taking glew out of the includes in SConscript files.
The resulting package works or I think there would be more complaints...
Richard
More information about the Bf-committers
mailing list