Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-11-2008, 04:23 PM
|
#1
|
|
Member
Registered: Oct 2006
Location: California, USA
Distribution: Antix 12, Mythbuntu 11.10, Kubuntu 11.10, but mostly Lubuntu 12.10
Posts: 461
Rep:
|
Ubuntu can't build, I get "cannot find -lGL" error
Hello. I'm trying to build mythtv. I am getting the following error during the "make" process:
/usr/bin/ld: cannot find -lGL
I've installed all kinds of dependencies and packages and now just don't know what to do.
Ubuntu 7.04 desktop is the os.
Does anyone have any ideas what this means? I googled it and found next to nothing except for a couple of guys saying install so and so package which i did.
-Thanks
-Steve
|
|
|
|
03-11-2008, 04:46 PM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
well it's after the OpenGL library, and to compile against it you need to headers for it. for just mesaGL, install libgl-dev and you should be ok, but are you not aware that mythtv is in apt under ubuntu? no need to compile anything yourself... "sudo apt-get install mythtv"
|
|
|
|
03-11-2008, 05:19 PM
|
#3
|
|
Member
Registered: Oct 2006
Location: California, USA
Distribution: Antix 12, Mythbuntu 11.10, Kubuntu 11.10, but mostly Lubuntu 12.10
Posts: 461
Original Poster
Rep:
|
OK, I tried apt-get install libgl-dev, but it says:
Code:
Package libgl-dev is a virtual package provided by:
libgl1-mesa-swx11-dev 6.5.2-3ubuntu8
libgl1-mesa-dev 6.5.2-3ubuntu8
You should explicitly select one to install.
E: Package libgl-dev has no installation candidate
i tried an apt-get install libgl1-mesa-dev, but it is already installed.
Upon trying atp-get install libgl1-mesa-swx11-dev, i got this:
Code:
The following extra packages will be installed:
libgl1-mesa-swx11
The following packages will be REMOVED:
libgl1-mesa-dev libgl1-mesa-dri libgl1-mesa-glx libgl1-mesa-glx-dbg
nvidia-glx ubuntu-desktop xorg
The following NEW packages will be installed:
libgl1-mesa-swx11 libgl1-mesa-swx11-dev
0 upgraded, 2 newly installed, 7 to remove and 99 not upgraded.
Need to get 1961kB of archives.
After unpacking 49.2MB disk space will be freed.
Do you want to continue [Y/n]?
That doesn't look good to me. i don't want to remove that stuff.
Any ideas?
The main reason i'm trying to build it myself is to learn how to do linux builds, also, i want to run the svn version of mythtv.
-Thanks
|
|
|
|
03-12-2008, 08:42 AM
|
#4
|
|
Member
Registered: Jul 2005
Location: France
Distribution: Arch Linux
Posts: 530
Rep:
|
Quote:
|
/usr/bin/ld: cannot find -lGL
|
This message means that ld needs the libGL.la library.
It is provided by the nvidia-glx-dev package.
As I see you already have the nvidia-glx package installed, you only need to add the nvidia-glx-dev package to get the needed file.
I hope that it will be enough to build mythtv.
|
|
|
|
03-12-2008, 10:18 AM
|
#5
|
|
Member
Registered: Oct 2006
Location: California, USA
Distribution: Antix 12, Mythbuntu 11.10, Kubuntu 11.10, but mostly Lubuntu 12.10
Posts: 461
Original Poster
Rep:
|
Very Odd...
I tried a "sudo apt-get install nvidia-glx-dev"
And got this message:
(trimmed)
Code:
Unpacking nvidia-glx-dev (from .../nvidia-glx-dev_1%3a1.0.9631+2.6.20.6-16.30_i386.deb) ...
dpkg-divert: `diversion of /usr/lib/libGL.so to /usr/lib/nvidia/libGL.so.xlibmesa by nvidia-glx-dev' clashes with `diversion of /usr/lib/libGL.so to /usr/lib/nvidia/libGL.so.xlibmesa by nvidia-glx'
dpkg: error processing /var/cache/apt/archives/nvidia-glx-dev_1%3a1.0.9631+2.6.20.6-16.30_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/nvidia-glx-dev_1%3a1.0.9631+2.6.20.6-16.30_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I've never seen anything like this. What can i do?
-Thanks
|
|
|
|
03-13-2008, 11:18 AM
|
#6
|
|
Member
Registered: Oct 2006
Location: California, USA
Distribution: Antix 12, Mythbuntu 11.10, Kubuntu 11.10, but mostly Lubuntu 12.10
Posts: 461
Original Poster
Rep:
|
OK, so i figured it out. Your nvidia problem pointed me in the right direction. Here's what i did:
apt-get install nvidia-glx-new
Then
delete /usr/lib/libGL.so
then run
cd /usr/lib/
sudo ln -s libGL.so.1.0.9755 libGL.so
Now i can compile just fine.
-Thanks again for the help
|
|
|
|
05-18-2008, 03:26 PM
|
#7
|
|
LQ Newbie
Registered: May 2008
Posts: 1
Rep:
|
Or instead of changing files yourself, you could after you've installed
apt-get install nvidia-glx-new
install
apt-get install nvidia-glx-new-dev
And everything should work.
//R
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:58 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|