2025-07-18 05:39 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002217Spring engineGeneralpublic2010-11-17 15:26
Reporterhoijui 
Assigned Tohoijui 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusresolvedResolutionfixed 
Product Version0.82.6.1 
Target VersionFixed in Version 
Summary0002217: rts/lib/gml/gmlfun.h:1401: error: ÔÇÿglMapBufferRangeÔÇÖ was not declared in this scope
Descriptionlooks like this guy (Spell@IRC in #sy) is missing that function.
i made him insert a dummy for it, and then compiling worked fine.

https://github.com/spring/spring/blob/0.82.6.1/rts/lib/gml/gmlfun.h#L1401

http://www.opengl.org/registry/specs/ARB/map_buffer_range.txt
Additional InformationIn file included from rts/lib/gml/gml.h:30,
                 from rts/lib/gml/ThreadSafeContainers.h:18,
                 from rts/lib/gml/ThreadSafeContainers.cpp:1:
rts/lib/gml/gmlfun.h: In function ÔÇÿGLvoid* gmlMapBufferRange(GLenum, GLintptr, GLsizeiptr, GLbitfield)ÔÇÖ:
rts/lib/gml/gmlfun.h:1401: error: ÔÇÿglMapBufferRangeÔÇÖ was not declared in this scope
make[3]: *** [rts/lib/gml/CMakeFiles/gml.dir/ThreadSafeContainers.cpp.o] Error 1


[ 20%] Building CXX object rts/builds/default/CMakeFiles/engine-default.dir/__/__/Rendering/GL/PBO.cpp.o
rts/Rendering/GL/PBO.cpp: In static member function ÔÇÿstatic bool PBO::IsSupported()ÔÇÖ:
rts/Rendering/GL/PBO.cpp:26:42: error: ÔÇÿGLEW_ARB_map_buffer_rangeÔÇÖ was not declared in this scope
rts/Rendering/GL/PBO.cpp: In member function ÔÇÿGLubyte* PBO::MapBuffer(GLintptr, GLsizeiptr, GLbitfield)ÔÇÖ:
rts/Rendering/GL/PBO.cpp:137:13: error: ÔÇÿGL_MAP_WRITE_BITÔÇÖ was not declared in this scope
rts/Rendering/GL/PBO.cpp:137:32: error: ÔÇÿGL_MAP_INVALIDATE_RANGE_BITÔÇÖ was not declared in this scope
rts/Rendering/GL/PBO.cpp:137:62: error: ÔÇÿGL_MAP_UNSYNCHRONIZED_BITÔÇÖ was not declared in this scope
rts/Rendering/GL/PBO.cpp:140:13: error: ÔÇÿGL_MAP_READ_BITÔÇÖ was not declared in this scope
rts/Rendering/GL/PBO.cpp:149:82: error: ÔÇÿglMapBufferRangeÔÇÖ was not declared in this scope
make[2]: *** [rts/builds/default/CMakeFiles/engine-default.dir/__/__/Rendering/GL/PBO.cpp.o] Error 1
make[1]: *** [rts/builds/default/CMakeFiles/engine-default.dir/all] Error 2
make: *** [all] Error 2
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0005855

hoijui (reporter)

[00:45:09] <Spell@IRC> sry, the problem was simply an outdated GLEW version
[00:46:15] <Spell@IRC> maybe the CMakefile should be simply changed to check the version of GLEW and return an Warning if its not new enough
[00:47:19] <Spell@IRC> previously I had glew 1.5.0 installed
[00:47:30] <Spell@IRC> now with 1.5.6 it works fine

is this a good idea?
if so, tell me (jk, Kloot or zerver), and i can implement it.. or do it yourself, if you like.

~0005867

zerver (reporter)

Good idea, but I'm not sure how to obtain GLEW version at compile time.

~0005869

hoijui (reporter)

fixed in commit:
https://github.com/spring/spring/commit/1e0e85d87da79c990390fdbcefc4aecec0118ad5
+Notes

-Issue History
Date Modified Username Field Change
2010-11-10 22:39 hoijui New Issue
2010-11-10 22:47 Spell0r File Added: visualinfo.log
2010-11-10 23:03 hoijui Additional Information Updated
2010-11-10 23:44 hoijui Note Added: 0005855
2010-11-17 01:26 zerver Note Added: 0005867
2010-11-17 15:26 hoijui Note Added: 0005869
2010-11-17 15:26 hoijui Status new => resolved
2010-11-17 15:26 hoijui Resolution open => fixed
2010-11-17 15:26 hoijui Assigned To => hoijui
+Issue History