Cannot find -lGL
-
i have downloaded qt libraries from http://qt-project.org/downloads > Qt libraries 5.0 RC 2 for Linux 64-bit (382 MB) and installed them.
when i try to build a Qt Gui Application project with auto-generated files mainwindow.h, mainwindow.cpp and main.cpp i get these messages "cannot find -lGL" and "collect2: ld returned 1 exit status". how to fix it?
ubuntu 12.04 -
Just install libGL incl. the dev-packages for it.
-
how to do that?
-
Which distribution do you use?
Wich Graphicsdriver? See my post in 3th party for ati readeon graphiccards.
-
ubuntu 12.04
nvidia -
nvidia proprimentar? or "normal"
open Software-center and search for OpenGL -> install allso -dev packs.
-
how do i find out what kind of driver i have?
-
Did you installed the default driver or have you installed explicit the Nvidia?
-
default
-
what should i install in software center?
-
Solved the problem by installing the “libglu1-mesa-dev” package.
@sudo apt-get install libglu1-mesa-dev -y@ -
If it matters to you..... On Fedora 18, I used:
@yum groupinstall "Development Tools"
yum install mesa-libGL-devel@ -
[quote author="pitonyak" date="1360964600"]If it matters to you..... On Fedora 18, I used:
@yum groupinstall "Development Tools"
yum install mesa-libGL-devel@
[/quote]Did you ever get this resolved? I installed this on 64bit centos and ran the two commands above to install those rpms but it still does not work
-
[quote author="pitonyak" date="1360964600"]If it matters to you..... On Fedora 18, I used:
@yum groupinstall "Development Tools"
yum install mesa-libGL-devel@
[/quote]Did you ever get this resolved? I installed this on 64bit centos and ran the two commands above to install those rpms but it still does not work
-
[quote author="EverydayDiesel" date="1425071488"]
[quote author="pitonyak" date="1360964600"]If it matters to you..... On Fedora 18, I used:@yum groupinstall "Development Tools"
yum install mesa-libGL-devel@
[/quote]Did you ever get this resolved? I installed this on 64bit centos and ran the two commands above to install those rpms but it still does not work[/quote]Different distros package their software differently. The commands that pitonyak ran were for Fedora 18, not CentOS.
You need to find out what packages you need to build OpenGL programs in CentOS (e.g. try http://www.qtcentre.org/threads/58151-IGL-error-in-CentOS-6 )
-
[quote author="EverydayDiesel" date="1425071488"]
[quote author="pitonyak" date="1360964600"]If it matters to you..... On Fedora 18, I used:@yum groupinstall "Development Tools"
yum install mesa-libGL-devel@
[/quote]Did you ever get this resolved? I installed this on 64bit centos and ran the two commands above to install those rpms but it still does not work[/quote]Different distros package their software differently. The commands that pitonyak ran were for Fedora 18, not CentOS.
You need to find out what packages you need to build OpenGL programs in CentOS (e.g. try http://www.qtcentre.org/threads/58151-IGL-error-in-CentOS-6 )
-
Thanks for the reply.
I have ran these commands
@yum install mesa-libGL-devel mesa-libGLU-devel
yum install qt
yum install qt-creator@and then installed Qt 5.4.1 for Android (Linux 64-bit, 616 MB)
I am on centos 7 x64 but it still does not work
-
Thanks for the reply.
I have ran these commands
@yum install mesa-libGL-devel mesa-libGLU-devel
yum install qt
yum install qt-creator@and then installed Qt 5.4.1 for Android (Linux 64-bit, 616 MB)
I am on centos 7 x64 but it still does not work