c++ -c -g -g -O2 -DNEW_VIDEOFILM -fPIC -mmmx -I../ -I/usr/local/include/avifile-0.7 -I/usr/local/include/FTGL/ -I/usr/include/freetype2/ -I/usr/local/include/ -fno-builtin -O3 -funroll-loops -ffast-math GEMglBitmap.cpp -o GEMglBitmap.o GEMglBindProgramARB.cpp: In member function `virtual void GEMglBindProgramARB::render(GemState*)': GEMglBindProgramARB.cpp:48: error: `glBindProgramARB' undeclared (first use this function) GEMglBindProgramARB.cpp:48: error: (Each undeclared identifier is reported only once for each function it appears in.) make[1]: *** [GEMglBindProgramARB.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/home/patrick/src/Gem/src/openGL' make: *** [subdirs] Error 255
?????? patrick
...this is a f-asked-q, but unfortunately also a f-unanswered-q...
On Feb 2, 2005, at 10:30 AM, patrick wrote:
c++ -c -g -g -O2 -DNEW_VIDEOFILM -fPIC -mmmx -I../ -I/usr/local/include/avifile-0.7 -I/usr/local/include/FTGL/ -I/usr/include/freetype2/ -I/usr/local/include/ -fno-builtin -O3 -funroll-loops -ffast-math GEMglBitmap.cpp -o GEMglBitmap.o GEMglBindProgramARB.cpp: In member function `virtual void GEMglBindProgramARB::render(GemState*)': GEMglBindProgramARB.cpp:48: error: `glBindProgramARB' undeclared (first use this function) GEMglBindProgramARB.cpp:48: error: (Each undeclared identifier is reported only once for each function it appears in.) make[1]: *** [GEMglBindProgramARB.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/home/patrick/src/Gem/src/openGL' make: *** [subdirs] Error 255
...well, you're either on linux or windoze, because this works on osx...what version of opengl are your headers? It just occurred to me that we only check for GL_ARB_vertex_program in the preprocessor, and then assume it's ok to use glBindProgramARB later...however it may be that you have a gl 2.0 implementation, and need to use glBindProgram without the ARB...
...just guessing: could you search your gl.h/glext.h for VERSION and then also for glBindProgram?
l8r, jamie
hi james,
true, i didn't check the archive before posting the question... sorry! well, yes i'm on linux / fedora core 3 / with free-glut, 2.6.10.
gl.h * Mesa 3-D graphics library * Version: 6.1
glext.h (not sure what version so) ** Version 1.2.1, released January 26, 2000, developed by Silicon #define GL_GLEXT_VERSION 24 #ifndef GL_VERSION_1_2
what do i have to upgrade? patrick
james tittle wrote:
...this is a f-asked-q, but unfortunately also a f-unanswered-q...
On Feb 2, 2005, at 10:30 AM, patrick wrote:
c++ -c -g -g -O2 -DNEW_VIDEOFILM -fPIC -mmmx -I../ -I/usr/local/include/avifile-0.7 -I/usr/local/include/FTGL/ -I/usr/include/freetype2/ -I/usr/local/include/ -fno-builtin -O3 -funroll-loops -ffast-math GEMglBitmap.cpp -o GEMglBitmap.o GEMglBindProgramARB.cpp: In member function `virtual void GEMglBindProgramARB::render(GemState*)': GEMglBindProgramARB.cpp:48: error: `glBindProgramARB' undeclared (first use this function) GEMglBindProgramARB.cpp:48: error: (Each undeclared identifier is reported only once for each function it appears in.) make[1]: *** [GEMglBindProgramARB.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/home/patrick/src/Gem/src/openGL' make: *** [subdirs] Error 255
...just guessing: could you search your gl.h/glext.h for VERSION and
then also for glBindProgram?
hi james,
don't want to spam you and the list with my problem, but for your information i was able to compile gem from cvs before (like two month ago) with my red hat 9:
* Mesa 3-D graphics library * Version: 4.0.4
#define GL_GLEXT_VERSION 17
i did try tonight to compile it with red hat 9, but unfortunately i can't anymore neither with fedora core 3.
can i diasable something in the configure script and what will i miss (GEMglBitmap.cpp) ???
patrick
hi all,
can someone fix the file GemBase.h in the cvs:
// I hate Microsoft...I shouldn't have to do this! #ifdef _WINDOWS #include <windows.h> #endif
#include "config.h" #include "Base/CPPExtern.h" #include "Base/GemState.h"
#ifdef __APPLE__ # include <OpenGL/gl.h> # include <OpenGL/glext.h> #else # include "config.h" # define GL_GLEXT_LEGACY # include <GL/gl.h> # if defined INCLUDE_GLEXT || defined __linux__
// stupid hack, as nvidia has erroneous glext-headers! # define boolean GLboolean
# define GL_GLEXT_PROTOTYPES 1 # include <GL/glext.h>
# endif /* GLEXT */ #endif // __APPLE__
i don't have anymore the problem on linux with glBindProgramARB(). thanks to james and IOhannes!
patrick