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

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-12-02, 09:14 PM   #1
superconti
Registered User
 
Join Date: Sep 2002
Posts: 5
Default Problem when compiling with SDL on Nvidia/Nforce...

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
superconti is offline   Reply With Quote
Old 09-12-02, 11:03 PM   #2
superconti
Registered User
 
Join Date: Sep 2002
Posts: 5
Default

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
superconti is offline   Reply With Quote
Old 09-12-02, 11:49 PM   #3
MacSlow
Registered User
 
MacSlow's Avatar
 
Join Date: Jul 2002
Location: Aachen, Germany
Posts: 76
Send a message via ICQ to MacSlow Send a message via AIM to MacSlow Send a message via MSN to MacSlow
Default

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
MacSlow is offline   Reply With Quote
Old 09-13-02, 12:25 AM   #4
superconti
Registered User
 
Join Date: Sep 2002
Posts: 5
Default

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.
superconti 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
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

All times are GMT -5. The time now is 12:17 AM.


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