|
|
#1 | |
|
Registered User
Join Date: Sep 2002
Posts: 5
|
Hi,
The nvdia drivers are well installed on my machine, i can run glxinfo, glxgears and everything is fine, the problem is when i try to compile an application using SDL and Opengl (i am using Kdevelop), so i have added -lGL-lGLU -lSDL -lpthread (linker option) in order to the source to compile and link, no problem, but when i run the exe, i got the windows opened but no Opengl rendering functions seem to work, i just got a screen full of garbage (probably some video data from precendent application). What's wrong ? Is that possible that some lib are not the right ones to link with ? I am stuck, help. P.S. i have attached the small source i do use for test |
|
|
|
|
|
|
#2 | |
|
Registered User
Join Date: Sep 2002
Posts: 5
|
Wanted to add that :
when i do link with -lSDL, ldd does not show any reference to /usr/lib/libGL.so.1 and /usr/lib/libGLcore.so.1 as it should be (on Nvidia) ???? if i don't link with -lSDL then the linker will use that libraries, of course SDL is not use. So i do suspect -lSDL to link with a kind of "static" wrong opengl lib at the link time, but i am just guessing..... Does anyone have the same problem ? Help is needed. Thanks |
|
|
|
|
|
|
#3 |
|
Registered User
|
Hm... did you compile the SDL library you're using yourself (after you installed the nvidia-driver) or do you use a precompiled binary distribution of SDL?
Best regards... MacSlow |
|
|
|
|
|
#4 | |
|
Registered User
Join Date: Sep 2002
Posts: 5
|
Well, it came from a distribution redhat 7.3, but i found out the problem, i had to rename/delete some libgl and libglcore.a, then i ran again sdl-config --lib and i got new flags, now it does work.
So, some conflict between Nvidia Opengl and Mesa Opengl. Thanks for answering. |
|
|
|
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Post working out problem with 40.xx trying to work problem out, ONLY system specs | b5fan | NVIDIA Windows Graphics Drivers | 11 | 10-19-02 09:17 AM |
| Sony SDM-S51 monitor and GeForce4 problem | hassasin | NVIDIA GeForce 7, 8, And 9 Series | 4 | 10-12-02 04:10 PM |
| nv30 problem rumor | bob747b | Rumor Mill | 37 | 10-10-02 03:14 PM |
| NV kernel compiling problem | Marius | NVIDIA Linux | 4 | 09-04-02 01:25 PM |
| Nvidia Go on laptop, black border within XFree86 problem | raxip | NVIDIA Linux | 3 | 07-31-02 10:58 AM |