nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   cannot find -lGL (http://www.nvnews.net/vbulletin/showthread.php?t=61570)

wilycoder 12-13-05 04:38 PM

cannot find -lGL
 
Hello,

I am a graphics programmer who has made the switch from ATi to nVidia due to Linux support (well performance too). My development platform is an amd64 & 7800GTX-512.

When I try to compile even the simplest of glut apps, the compilation fails.

However,I can run the 64 bit version of ut2004 just fine. So the driver must be in there ok.

Any ideas what is throwing off the linker?

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lGL

driver: 8174

netllama 12-13-05 09:59 PM

Re: cannot find -lGL
 
What are you trying to compile, and what is the command you're using to compile it?

Also, pleae post an nvidia-bug-report.log.

Thanks,
Lonni

pzgren 12-14-05 01:24 AM

Re: cannot find -lGL
 
Quote:

Originally Posted by wilycoder
Any ideas what is throwing off the linker?

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lGL

driver: 8174

This means the include files in /usr/include/GL/* for compiling the app, not the libGL self.
The problem can be the path on a 64bit system, which was /usr/lib64, not /usr/lib on some distributions and/or no xorg-devel / libGL-devel package installed. Which distribution ?

Marcus

wilycoder 12-14-05 11:01 AM

Re: cannot find -lGL
 
Gentoo 2005.1

wilycoder 12-14-05 11:04 AM

Re: cannot find -lGL
 
Quote:

Originally Posted by netllama
What are you trying to compile, and what is the command you're using to compile it?

Also, pleae post an nvidia-bug-report.log.

Thanks,
Lonni


I am trying to compile a particle system demo that I created. The program was previously tested on my laptop, which is also the 64 bit version of Linux, but with a Mobility Radeon 9700.

In short, I haven't really gotten familiar with running nVidia drivers in linux. Does the nVidia driver include the libraries that g++ is looking for?

netllama 12-14-05 11:34 AM

Re: cannot find -lGL
 
I don't believe that you stated which libraries g++ is looking for. The nvidia driver installs OpenGL headers by default, along with libGL.so.

You haven't provided very much information. What is the command and output that you're seeing? Please post the bug report I requested.

Thanks,
Lonni


All times are GMT -5. The time now is 08:01 PM.

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