PDA

View Full Version : Which library includes 'glBindProgramNV' etc?



BGM
02-06-2004, 01:58 AM
When compiling tests and examples of BrookGPU I get many of the following errors:

undefined reference to `glBindProgramNV'
undefined reference to `glProgramNamedParameter4fNV'
undefined reference to `glLoadProgramNV'
undefined reference to `glGenProgramsNV'
undefined reference to `glXChooseFBConfig'
undefined reference to `glXDestroyPbuffer'
undefined reference to `glXCreatePbuffer'
undefined reference to `glXCreateNewContext'

used LDFLAGS:
-lpthread -L/usr/X11R6/lib -L../../../bin -lbrook -lcpu -lnv30gl -lX11 -lXmu -lXt -lGL -lGLU.

Are there any version conflicts of OpenGL?

pkaler
02-06-2004, 12:01 PM
Make sure you have the latest drivers for your video card.

Those will be defined in -lGL if your driver supports them. Try glxinfo. If NV_fragment_program and SGIX_pbuffer aren't listed then you are SOL.

Actually, I believe Mesa supports those extensions in software.

idr
02-06-2004, 10:55 PM
If the example code is trying to bind to those functions at link time, it's crap. The whole reason glXGetProcAddressARB exists is to deal with issues like this. Sigh...