[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [46457] trunk/blender/source/blender/ python: classic compile error: GLEW_STATIC needs to be define when we use opengl functions

Antony Riakiotakis kalast at gmail.com
Wed May 9 11:49:24 CEST 2012


Revision: 46457
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=46457
Author:   psy-fi
Date:     2012-05-09 09:49:24 +0000 (Wed, 09 May 2012)
Log Message:
-----------
classic compile error: GLEW_STATIC needs to be define when we use opengl functions

Modified Paths:
--------------
    trunk/blender/source/blender/python/SConscript
    trunk/blender/source/blender/python/generic/CMakeLists.txt

Modified: trunk/blender/source/blender/python/SConscript
===================================================================
--- trunk/blender/source/blender/python/SConscript	2012-05-09 09:41:27 UTC (rev 46456)
+++ trunk/blender/source/blender/python/SConscript	2012-05-09 09:49:24 UTC (rev 46457)
@@ -18,7 +18,7 @@
 env.BlenderLib( libname = 'bf_python_bmesh', sources = Split(sources), includes = Split(incs), defines = defs, libtype = ['core','player'], priority = [362,165])
 
 # generic
-defs = []
+defs = ['GLEW_STATIC']
 
 if is_debug:
     defs.append('_DEBUG')

Modified: trunk/blender/source/blender/python/generic/CMakeLists.txt
===================================================================
--- trunk/blender/source/blender/python/generic/CMakeLists.txt	2012-05-09 09:41:27 UTC (rev 46456)
+++ trunk/blender/source/blender/python/generic/CMakeLists.txt	2012-05-09 09:49:24 UTC (rev 46457)
@@ -46,4 +46,6 @@
 	py_capi_utils.h
 )
 
+add_definitions(-DGLEW_STATIC)
+
 blender_add_lib(bf_python_ext "${SRC}" "${INC}" "${INC_SYS}")




More information about the Bf-blender-cvs mailing list