Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 02-13-06, 09:10 AM   #1
joevandyk
Registered User
 
Join Date: Feb 2006
Posts: 10
Default undefined reference for glTexSubImage2DEXT

On a machine with a Quadro FX something or other (running RHEL3), our software's failing to build after installing the (latest) Nvidia driver. The software built fine before the install of the driver.

Our software is complaining about not being able to link against 'glTexSubImage2DEXT'. On a RHEL system without the Nvidia driver installed, the function is in /usr/lib/libGL.so.1. The Nvidia driver install overwrites that library and it doesn't contain that function.

Any ideas?

Thanks,
Joe
joevandyk is offline   Reply With Quote
Old 02-13-06, 12:44 PM   #2
joevandyk
Registered User
 
Join Date: Feb 2006
Posts: 10
Default Re: undefined reference for glTexSubImage2DEXT

Please let me know if I can provide more information!

Joe
joevandyk is offline   Reply With Quote
Old 02-13-06, 12:46 PM   #3
joevandyk
Registered User
 
Join Date: Feb 2006
Posts: 10
Default Re: undefined reference for glTexSubImage2DEXT

I guess I should mention that this is probably not a new problem. We've never installed the nvidia drivers on a build machine before. (We used to only install the drivers on the machines that run the software)
joevandyk is offline   Reply With Quote
Old 02-13-06, 01:28 PM   #4
netllama
NVIDIA Corporation
 
Join Date: Dec 2004
Posts: 8,763
Default Re: undefined reference for glTexSubImage2DEXT

The nvidia driver doesn't support the extension EXT_subtexture. However, it does
support subtexture functionality as it was promoted to core functionality in OpenGL 1.1.

An app shouldn't depend on an extension function be present in every implementation. This is especially true for link time dependencies. If your app needs to support OpenGL 1.0 implementations then it should:
- use a function pointer to conditionally reference glTexSubImage2DEXT()
- Check the OpenGL extension string at runtime to see if the substring
"GL_EXT_subtexture" is present.
- If the substring is present then query the function address for
glTexSubImage2DEXT() using glXGetProcAddress(). I'm not entirely sure this step is pratical as glXGetProcAddress() isn't guarenteed to be present in versions older than 1.1. dlsym() might be a viable alternative in this case.

If the extension substring is not present but the OpenGL implementation is version 1.1 or newer then the application can set the function pointer to glTexSubImage2D().

Thanks,
Lonni
netllama is offline   Reply With Quote
Old 02-16-06, 01:49 PM   #5
joevandyk
Registered User
 
Join Date: Feb 2006
Posts: 10
Default Re: undefined reference for glTexSubImage2DEXT

That was quite helpful, thanks! I'm not surprised that our code did things the wrong way. And I believe we can use OpenGL 1.1.

Joe
joevandyk is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
NVIDIA VDPAU Reference Benchmarks News Archived News Items 0 06-11-12 05:30 AM
MSI GeForce GTX 670 Reference and OC Edition Compared ' Overclocked Variants based News Archived News Items 0 05-10-12 06:30 AM
Undefined Device Error - Can't startx linuxdave NVIDIA Linux 2 08-07-02 03:28 PM

All times are GMT -5. The time now is 10:54 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.