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. Can`t compile any projects
Forum Update on Monday, May 27th 2025

Can`t compile any projects

Scheduled Pinned Locked Moved Unsolved General and Desktop
15 Posts 2 Posters 2.0k 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.
  • T Offline
    T Offline
    tarasf
    wrote on last edited by
    #1

    After installiation don`t compile any projects.
    Here is the compile output:

    g++ -Wl,-rpath,/home/taras/Qt/5.11.0/gcc_64/lib -o application main.o mainwindow.o qrc_application.o moc_mainwindow.o -L/home/taras/Qt/5.11.0/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
    /usr/bin/x86_64-linux-gnu-ld: cannot find -lGL
    Makefile:260: recipe for target 'application' failed
    collect2: error: ld returned 1 exit status
    make: *** [application] Error 1
    16:10:26: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project application (kit: Desktop Qt 5.11.0 GCC 64bit)
    The kit Desktop Qt 5.11.0 GCC 64bit has configuration issues which might be the root cause for this problem.
    When executing step "Make"
    16:10:26: Elapsed time: 00:00.

    Thank all!

    aha_1980A 1 Reply Last reply
    0
    • T tarasf

      After installiation don`t compile any projects.
      Here is the compile output:

      g++ -Wl,-rpath,/home/taras/Qt/5.11.0/gcc_64/lib -o application main.o mainwindow.o qrc_application.o moc_mainwindow.o -L/home/taras/Qt/5.11.0/gcc_64/lib -lQt5Widgets -lQt5Gui -lQt5Core -lGL -lpthread
      /usr/bin/x86_64-linux-gnu-ld: cannot find -lGL
      Makefile:260: recipe for target 'application' failed
      collect2: error: ld returned 1 exit status
      make: *** [application] Error 1
      16:10:26: The process "/usr/bin/make" exited with code 2.
      Error while building/deploying project application (kit: Desktop Qt 5.11.0 GCC 64bit)
      The kit Desktop Qt 5.11.0 GCC 64bit has configuration issues which might be the root cause for this problem.
      When executing step "Make"
      16:10:26: Elapsed time: 00:00.

      Thank all!

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      hi @tarasf,

      just google for 'qt -lGL'. you need to install a dependency.

      regards

      Qt has to stay free or it will die.

      1 Reply Last reply
      1
      • T Offline
        T Offline
        tarasf
        wrote on last edited by
        #3

        @aha_1980 said in Can`t compile any projects:

        qt -lGL

        I didnt found any usefull information. Nothing dont help.

        aha_1980A 1 Reply Last reply
        0
        • T tarasf

          @aha_1980 said in Can`t compile any projects:

          qt -lGL

          I didnt found any usefull information. Nothing dont help.

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @tarasf

          e.g. https://forum.qt.io/topic/67082/ubuntu-16-04-qt-5-6-cannot-find-lgl/2

          seems like you need to quote "-lGL" for google...

          Qt has to stay free or it will die.

          T 1 Reply Last reply
          3
          • T Offline
            T Offline
            tarasf
            wrote on last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • aha_1980A aha_1980

              @tarasf

              e.g. https://forum.qt.io/topic/67082/ubuntu-16-04-qt-5-6-cannot-find-lgl/2

              seems like you need to quote "-lGL" for google...

              T Offline
              T Offline
              tarasf
              wrote on last edited by
              #6

              @aha_1980
              I have already tried it but didn`t help.

              aha_1980A 1 Reply Last reply
              0
              • T tarasf

                @aha_1980
                I have already tried it but didn`t help.

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @tarasf

                • which distro are you using?
                • what did you to solve the problem?

                regards

                Qt has to stay free or it will die.

                T 1 Reply Last reply
                0
                • aha_1980A aha_1980

                  @tarasf

                  • which distro are you using?
                  • what did you to solve the problem?

                  regards

                  T Offline
                  T Offline
                  tarasf
                  wrote on last edited by
                  #8

                  @aha_1980
                  Ubuntu 18.04 LTS
                  I tried everything that I saw in google.

                  aha_1980A 1 Reply Last reply
                  0
                  • T tarasf

                    @aha_1980
                    Ubuntu 18.04 LTS
                    I tried everything that I saw in google.

                    aha_1980A Offline
                    aha_1980A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @tarasf said in Can`t compile any projects:

                    @aha_1980
                    Ubuntu 18.04 LTS
                    I tried everything that I saw in google.

                    this also: sudo apt-get install libgl1 ?

                    Qt has to stay free or it will die.

                    T 1 Reply Last reply
                    0
                    • aha_1980A aha_1980

                      @tarasf said in Can`t compile any projects:

                      @aha_1980
                      Ubuntu 18.04 LTS
                      I tried everything that I saw in google.

                      this also: sudo apt-get install libgl1 ?

                      T Offline
                      T Offline
                      tarasf
                      wrote on last edited by
                      #10

                      @aha_1980
                      Yes

                      aha_1980A 1 Reply Last reply
                      0
                      • T tarasf

                        @aha_1980
                        Yes

                        aha_1980A Offline
                        aha_1980A Offline
                        aha_1980
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @tarasf

                        And also this one? sudo apt-get install libgl1-mesa-dev

                        Qt has to stay free or it will die.

                        T 1 Reply Last reply
                        0
                        • aha_1980A aha_1980

                          @tarasf

                          And also this one? sudo apt-get install libgl1-mesa-dev

                          T Offline
                          T Offline
                          tarasf
                          wrote on last edited by
                          #12

                          @aha_1980
                          Yes, this too.

                          aha_1980A 1 Reply Last reply
                          0
                          • T tarasf

                            @aha_1980
                            Yes, this too.

                            aha_1980A Offline
                            aha_1980A Offline
                            aha_1980
                            Lifetime Qt Champion
                            wrote on last edited by
                            #13

                            @tarasf

                            thats a tough one!

                            The kit Desktop Qt 5.11.0 GCC 64bit has configuration issues which might be the root cause for this problem.

                            please have a look at Tools > Options > Build&Run > Kits if you see anything strange. best provide a screenshot

                            Qt has to stay free or it will die.

                            T 1 Reply Last reply
                            0
                            • aha_1980A aha_1980

                              @tarasf

                              thats a tough one!

                              The kit Desktop Qt 5.11.0 GCC 64bit has configuration issues which might be the root cause for this problem.

                              please have a look at Tools > Options > Build&Run > Kits if you see anything strange. best provide a screenshot

                              T Offline
                              T Offline
                              tarasf
                              wrote on last edited by
                              #14

                              @aha_1980
                              0_1531937009410_Screenshot from 2018-07-18 20-03-00.png image url)
                              0_1531937030855_Screenshot from 2018-07-18 20-03-05.png 0_1531937034240_Screenshot from 2018-07-18 20-03-08.png

                              aha_1980A 1 Reply Last reply
                              0
                              • T tarasf

                                @aha_1980
                                0_1531937009410_Screenshot from 2018-07-18 20-03-00.png image url)
                                0_1531937030855_Screenshot from 2018-07-18 20-03-05.png 0_1531937034240_Screenshot from 2018-07-18 20-03-08.png

                                aha_1980A Offline
                                aha_1980A Offline
                                aha_1980
                                Lifetime Qt Champion
                                wrote on last edited by
                                #15

                                Hi @tarasf,

                                I just have installed Qt 5.11.1 and Creator 4.7.0 on a fresh Ubuntu 18.04.

                                The only things I installed beside Qt (and git) are:

                                sudo apt install build-essential libglu1-mesa-dev
                                

                                Compiling works perfectly for me here.

                                Regards

                                Qt has to stay free or it will die.

                                1 Reply Last reply
                                2

                                • Login

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