Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cannot find -lGL
QtWS25 Last Chance

Cannot find -lGL

Scheduled Pinned Locked Moved Installation and Deployment
18 Posts 7 Posters 49.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    benjaminpetrenko
    wrote on 18 Dec 2012, 10:58 last edited by
    #1

    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

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on 18 Dec 2012, 11:18 last edited by
      #2

      Just install libGL incl. the dev-packages for it.

      1 Reply Last reply
      0
      • B Offline
        B Offline
        benjaminpetrenko
        wrote on 18 Dec 2012, 11:31 last edited by
        #3

        how to do that?

        1 Reply Last reply
        0
        • H Offline
          H Offline
          hpollak
          wrote on 18 Dec 2012, 11:44 last edited by
          #4

          Which distribution do you use?

          Wich Graphicsdriver? See my post in 3th party for ati readeon graphiccards.

          1 Reply Last reply
          0
          • B Offline
            B Offline
            benjaminpetrenko
            wrote on 18 Dec 2012, 11:48 last edited by
            #5

            ubuntu 12.04
            nvidia

            1 Reply Last reply
            0
            • H Offline
              H Offline
              hpollak
              wrote on 18 Dec 2012, 11:52 last edited by
              #6

              nvidia proprimentar? or "normal"

              open Software-center and search for OpenGL -> install allso -dev packs.

              1 Reply Last reply
              0
              • B Offline
                B Offline
                benjaminpetrenko
                wrote on 18 Dec 2012, 12:03 last edited by
                #7

                how do i find out what kind of driver i have?

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  hpollak
                  wrote on 18 Dec 2012, 12:06 last edited by
                  #8

                  Did you installed the default driver or have you installed explicit the Nvidia?

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    benjaminpetrenko
                    wrote on 18 Dec 2012, 12:09 last edited by
                    #9

                    default

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      benjaminpetrenko
                      wrote on 18 Dec 2012, 12:17 last edited by
                      #10

                      what should i install in software center?

                      1 Reply Last reply
                      0
                      • L Offline
                        L Offline
                        lilian.moraru
                        wrote on 17 Jan 2013, 11:15 last edited by
                        #11

                        Solved the problem by installing the “libglu1-mesa-dev” package.
                        @sudo apt-get install libglu1-mesa-dev -y@

                        1 Reply Last reply
                        5
                        • P Offline
                          P Offline
                          pitonyak
                          wrote on 15 Feb 2013, 21:43 last edited by
                          #12

                          If it matters to you..... On Fedora 18, I used:

                          @yum groupinstall "Development Tools"
                          yum install mesa-libGL-devel@

                          1 Reply Last reply
                          1
                          • E Offline
                            E Offline
                            EverydayDiesel
                            wrote on 27 Feb 2015, 21:11 last edited by
                            #13

                            [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

                            1 Reply Last reply
                            0
                            • E Offline
                              E Offline
                              EverydayDiesel
                              wrote on 27 Feb 2015, 21:11 last edited by
                              #14

                              [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

                              1 Reply Last reply
                              0
                              • JKSHJ Offline
                                JKSHJ Offline
                                JKSH
                                Moderators
                                wrote on 27 Feb 2015, 23:38 last edited by
                                #15

                                [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 )

                                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                                1 Reply Last reply
                                0
                                • JKSHJ Offline
                                  JKSHJ Offline
                                  JKSH
                                  Moderators
                                  wrote on 27 Feb 2015, 23:38 last edited by
                                  #16

                                  [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 )

                                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                                  1 Reply Last reply
                                  0
                                  • E Offline
                                    E Offline
                                    EverydayDiesel
                                    wrote on 28 Feb 2015, 17:52 last edited by
                                    #17

                                    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

                                    1 Reply Last reply
                                    0
                                    • E Offline
                                      E Offline
                                      EverydayDiesel
                                      wrote on 28 Feb 2015, 17:52 last edited by
                                      #18

                                      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

                                      1 Reply Last reply
                                      0

                                      • Login

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • Users
                                      • Groups
                                      • Search
                                      • Get Qt Extensions
                                      • Unsolved