#4096: screen.cpp:264:72: error: ‘glGetQueryObjectui64v’ was not declared in
this
scope
----------------------------------------+-------------------------
Reporter: rbt | Owner:
Type: bug | Status: new
Priority: normal | Milestone: unspecified
Component: Build System Issues | Version: git/master
Operating System: All/Non-Specific |
----------------------------------------+-------------------------
\
\
This error has been around for a bit and exists in master 0428d5d14.
A bit of research shows my drivers should support glGetQueryObjectui64v as
they are part of OpenGL3. Video card information follows.
{{{
$ fglrxinfo
display: :0 screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: ATI Mobility Radeon HD 5400 Series
OpenGL version string: 4.2.12337 Compatibility Profile Context 8.96.7
}}}
Relevant snippet of compilation errors.
{{{
make[2]: Entering directory `/home/rbt/warzone2100/lib/ivis_opengl'
g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/libpng12
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DDEBUG
-DWZ_DATADIR="\"/usr/local/share/warzone2100\""
-DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -I../../3rdparty
-I../../3rdparty/quesoglc -I/usr/include/libdrm -DQT_SHARED
-I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui
-I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtScript -O0 -g -Werror
-Wno-enum-compare -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare
-Wcast-align -Wwrite-strings -Wpointer-arith -Wno-format-security
-DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtScript -fstack-protector -MT screen.o -MD -MP -MF
.deps/screen.Tpo -c -o screen.o screen.cpp
screen.cpp: In function ‘void wzPerfFrame()’:
screen.cpp:264:72: error: ‘glGetQueryObjectui64v’ was not declared in this
scope
glGetQueryObjectui64v(perfpos[i], GL_QUERY_RESULT, &store.counters[i]);
^
screen.cpp: In function ‘void wzPerfBegin(PERF_POINT, const char*)’:
screen.cpp:291:15: error: ‘GL_TIME_ELAPSED’ was not declared in this scope
glBeginQuery(GL_TIME_ELAPSED, perfpos[pp]);
^
screen.cpp: In function ‘void wzPerfEnd(PERF_POINT)’:
screen.cpp:303:13: error: ‘GL_TIME_ELAPSED’ was not declared in this scope
glEndQuery(GL_TIME_ELAPSED);
^
make[2]: *** [screen.o] Error 1
make[2]: Leaving directory `/home/rbt/warzone2100/lib/ivis_opengl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rbt/warzone2100'
make: *** [all] Error 2
}}}
Thanks!
\
\
\
--
Ticket URL: <http://developer.wz2100.net/ticket/4096>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project