Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Error on linux, cannot find -lGL

Error on linux, cannot find -lGL

Scheduled Pinned Locked Moved Solved General and Desktop
linuxlglubuntu
7 Posts 4 Posters 4.5k 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.
  • S Offline
    S Offline
    SujaMM
    wrote on 15 May 2015, 16:09 last edited by A Former User
    #1

    Hello,

    I install Qt Creator the news version in ububtu

    But when I try to run a project I'm gettin this error:

     :-1: error: cannot find -lGL
     :-1: error: collect2: error: ld returned 1 exit status
    

    I have no idea what could be caussing this error.

    Another error I got while intalling the Qt creator was this:

      Cannot start '/usr/lib/i386-linux-gnu/qt4/bin/qmake': No such file or directory
    
    1 Reply Last reply
    0
    • H Online
      H Online
      hskoglund
      wrote on 15 May 2015, 16:42 last edited by hskoglund
      #2

      Hi, you're missing some libraries, open Terminal and type
      sudo apt-get install libglu1-mesa-dev

      R 1 Reply Last reply 13 Nov 2015, 02:57
      1
      • S Offline
        S Offline
        SujaMM
        wrote on 15 May 2015, 19:52 last edited by
        #3

        Thanks that fixes the problem I've been having.

        1 Reply Last reply
        0
        • H hskoglund
          15 May 2015, 16:42

          Hi, you're missing some libraries, open Terminal and type
          sudo apt-get install libglu1-mesa-dev

          R Offline
          R Offline
          Renn
          wrote on 13 Nov 2015, 02:57 last edited by
          #4

          @hskoglund How to install the 32-bit version? I am using qt creator 64bit

          J 1 Reply Last reply 16 Nov 2015, 07:05
          0
          • R Renn
            13 Nov 2015, 02:57

            @hskoglund How to install the 32-bit version? I am using qt creator 64bit

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 16 Nov 2015, 07:05 last edited by jsulm
            #5

            @Renn You need the 32bit versions of all the needed libraries (libglu1-mesa-dev:i386 in this case). It doesn't matter whether QtCreator is 32bit or 64bit (it is just an IDE).

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            R 1 Reply Last reply 17 Nov 2015, 01:21
            0
            • J jsulm
              16 Nov 2015, 07:05

              @Renn You need the 32bit versions of all the needed libraries (libglu1-mesa-dev:i386 in this case). It doesn't matter whether QtCreator is 32bit or 64bit (it is just an IDE).

              R Offline
              R Offline
              Renn
              wrote on 17 Nov 2015, 01:21 last edited by
              #6

              @jsulm I have tried it can, but when I run through the terminal, it can only build a 64-bit only.

              R 1 Reply Last reply 17 Nov 2015, 02:37
              0
              • R Renn
                17 Nov 2015, 01:21

                @jsulm I have tried it can, but when I run through the terminal, it can only build a 64-bit only.

                R Offline
                R Offline
                Renn
                wrote on 17 Nov 2015, 02:37 last edited by Renn
                #7

                @jsulm Library file what is very important for building 32-bit?

                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