Ubuntu can't build, I get "cannot find -lGL" error
Linux - SoftwareThis 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.
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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"
OK, I tried apt-get install libgl-dev, but it says:
Package libgl-dev is a virtual package provided by:
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:
The following extra packages will be installed:
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:
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.
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.
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.
Unpacking nvidia-glx-dev (from .../nvidia-glx-dev_1%3a1.0.9631+22.214.171.124-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+126.96.36.199-16.30_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 2
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
I've never seen anything like this. What can i do?