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

Newegg Daily Deals

Reply
 
Thread Tools
Old 12-11-02, 03:59 PM   #1
Littleman
Registered User
 
Join Date: Dec 2002
Posts: 9
Question Compiling Opengl source

Hi there,
I succesfully installed the nvidia drivers on my dell inspiron 8200...no real problems, which actually surprised me
Now, of course i want to go further and compile things...
My first attempts where with Nehe's opengl tutorials...
Unsuccessful, because apparently the complier could not find some GL headers...
After reading the Docs from Nvidia (hehe i never read them BEFORE anything goes wrong) i found that i had nothing in my usr/include/GL directory, so i put nvidia's headers in there

now, "lesson01.c:14:20: GL/glx.h: No such file or directory
lesson01.c:15:19: GL/gl.h: No such file or directory
lesson01.c:16:20: GL/glu.h: No such file or directory"

have disappeared from compilation but i still get :

lesson01.c:17:38: X11/extensions/xf86vmode.h: No such file or directory
lesson01.c:18:24: X11/keysym.h: No such file or directory

errr where do i find that ??? Thank you for your replies and i hope that's the only thing i have to do to compile simple stuff...
Littleman is offline   Reply With Quote
Old 12-11-02, 04:35 PM   #2
mtrr
Registered User
 
Join Date: Jul 2002
Location: Germany
Posts: 234
Send a message via ICQ to mtrr
Default

what about installing the development packages from
your friendly distributor? xlibs-devel, or xdevel, xfree86
devel or something like that.


cheers
mtrr is offline   Reply With Quote
Old 12-11-02, 04:43 PM   #3
Littleman
Registered User
 
Join Date: Dec 2002
Posts: 9
Default

Good idea that's what i did 5 minutes after this post
err now i've got a whole bunch of new errors, and of course i don't understand anything about them
Littleman is offline   Reply With Quote
Old 12-11-02, 04:54 PM   #4
Littleman
Registered User
 
Join Date: Dec 2002
Posts: 9
Default Wohoo, news

Ok, apparently, with those X headers, i installed SDL stuff too...
So i downloaded the tutorial called lesson01-sdl code
And i get only ONE mystake now, when i try to 'MAKE' :

gcc -Wall -ansi lesson01.c -o lesson01 -lGL -lGLU `sdl-config --cflags --libs`
/usr/bin/ld: cannot find -lGL

does it ring a bell ?
Littleman is offline   Reply With Quote
Old 12-11-02, 05:09 PM   #5
mtrr
Registered User
 
Join Date: Jul 2002
Location: Germany
Posts: 234
Send a message via ICQ to mtrr
Default

gcc -Wall -ansi lesson01.c -o lesson01 -L/usr/X11R6/lib -lGL -lGLU `sdl-config --cflags --libs` ?

could be....

cheers
mtrr is offline   Reply With Quote
Old 12-13-02, 06:47 PM   #6
Littleman
Registered User
 
Join Date: Dec 2002
Posts: 9
Default

same error, and i checked in my usr/X11R6/lib directory, and i have GL libs in there...........
Littleman is offline   Reply With Quote
Old 12-14-02, 06:36 AM   #7
mtrr
Registered User
 
Join Date: Jul 2002
Location: Germany
Posts: 234
Send a message via ICQ to mtrr
Default

are you trying to compile the glx, or the gl lesson?

both are working for me ...

btw: on my system GLU is in /usr/X11R6/lib, and
GL sits in /usr/lib



cheers
mtrr is offline   Reply With Quote
Old 12-14-02, 08:30 AM   #8
bwkaz
Registered User
 
Join Date: Sep 2002
Posts: 2,262
Default

What does find /usr -name libGL.so tell you?

Does it help to specify GLU and GL in reverse order, i.e. -lGLU -lGL? Since GLU depends on GL, this is the order that they are required to be in, but I don't know if that will fix your problem or not...
__________________
Registered Linux User #219692
bwkaz is offline   Reply With Quote

Old 12-14-02, 12:19 PM   #9
Littleman
Registered User
 
Join Date: Dec 2002
Posts: 9
Talking

The find commmand gave me :

/usr/lib/libGL.so
/usr/X11R6/lib/libGL.so

Are those the same libraries ? Or one is for the X system ??? Are they in the right place ? Is it gonna snow for christmas ???

Reversing the GLU and GL order does not change anything apparently...

What would help maybe, would be to tell me what the GLU lib name is and where it should be, if it needs to be in a specific path etc.

I typed ldconfig once, checked the path in /etc/ld/so/conf -- Same error

I installed SDL's latest GLU lib...same error

Here is a full paste :

make
gcc -Wall -ansi lesson01.c -o lesson01 -lGLU -lGL `sdl-config --cflags --libs`
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
make: *** [all] Error 1

dum de dum, i can fell that i'm not far from compiling...and yet so far
Littleman is offline   Reply With Quote
Old 12-14-02, 01:18 PM   #10
Littleman
Registered User
 
Join Date: Dec 2002
Posts: 9
Talking

Who's the man ? who's the man ? errr Littleman ?
YEEEAHHHHHH !!!

After reading the nvidia kernel and GLX README veeeeeeery carefully this time, they do say that most problems come from conflicts in libs, linux and ld thinking they are using the right lib, while they are not. The point is : i only had to download the latest kernel and glx sources from nvidia. Compiling the source was a good way to put the right libs in the right place

So now i can compile that Nehe tutorial, AND i have theh latest Nvidia driver running

Thx for your help everybody.
Littleman 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
December 2012 OpenGL status News Archived News Items 0 12-30-12 11:20 AM
Open Source OpenGL 4 Graphics Engine available News Archived News Items 0 10-03-12 10:50 AM
Interview: Edd Dumbill on the Drivers of Open Source at OSCON News Archived News Items 0 07-15-12 02:40 AM
Team Fortress 2, Counter-Strike: Source, Day of Defeat: Source and Half-Life 2: Death News Archived News Items 0 07-03-12 03:30 AM
What is the Current Status of the iZ3D Driver Open Source Project News Archived News Items 0 06-30-12 08:50 AM

All times are GMT -5. The time now is 06:29 AM.


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