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" error
Forum Updated to NodeBB v4.3 + New Features

"cannot find -lGL" error

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
10 Posts 3 Posters 2.4k Views 1 Watching
  • 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.
  • R Offline
    R Offline
    rapid84
    wrote on last edited by
    #1

    Hi,
    I am trying to build QT weatherinfo example in my ubuntu machine but i got this error:

    error: cannot find -lGL
    

    What is the reason of this?

    RatzzR 1 Reply Last reply
    0
    • R rapid84

      Hi,
      I am trying to build QT weatherinfo example in my ubuntu machine but i got this error:

      error: cannot find -lGL
      

      What is the reason of this?

      RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by Ratzz
      #2

      @rapid84
      You should nstall package "libgl1-mesa-dev" using:

      sudo apt-get install libgl1-mesa-dev
      

      Sometimes this helps

      sudo apt-get install libglu1-mesa-dev -y

      --Alles ist gut.

      R 1 Reply Last reply
      1
      • RatzzR Ratzz

        @rapid84
        You should nstall package "libgl1-mesa-dev" using:

        sudo apt-get install libgl1-mesa-dev
        

        Sometimes this helps

        sudo apt-get install libglu1-mesa-dev -y
        R Offline
        R Offline
        rapid84
        wrote on last edited by
        #3

        @Ratzz
        Thanks, but now i got this error :

        QSslSocket: cannot resolve SSLv2_client_method
        
        RatzzR 1 Reply Last reply
        0
        • R rapid84

          @Ratzz
          Thanks, but now i got this error :

          QSslSocket: cannot resolve SSLv2_client_method
          
          RatzzR Offline
          RatzzR Offline
          Ratzz
          wrote on last edited by
          #4

          @rapid84
          I think you should upgrade the build machines using

          sudo apt-get install build-essential

          --Alles ist gut.

          R 1 Reply Last reply
          0
          • RatzzR Ratzz

            @rapid84
            I think you should upgrade the build machines using

            sudo apt-get install build-essential
            R Offline
            R Offline
            rapid84
            wrote on last edited by rapid84
            #5

            @Ratzz said:

            sudo apt-get install build-essential

            I have already upgraded my machine but still get the error:

            qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
            qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method
            
            1 Reply Last reply
            0
            • mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi
              I think you need to install SSL in ubuntu if not already install
              maybe
              sudo apt-get install libssl-dev

              R 1 Reply Last reply
              0
              • mrjjM mrjj

                Hi
                I think you need to install SSL in ubuntu if not already install
                maybe
                sudo apt-get install libssl-dev

                R Offline
                R Offline
                rapid84
                wrote on last edited by
                #7

                @mrjj said:

                sudo apt-get install libssl-dev

                I have already done , but still getting error.

                RatzzR 1 Reply Last reply
                0
                • mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  but do u use SSL?

                  1 Reply Last reply
                  0
                  • R rapid84

                    @mrjj said:

                    sudo apt-get install libssl-dev

                    I have already done , but still getting error.

                    RatzzR Offline
                    RatzzR Offline
                    Ratzz
                    wrote on last edited by
                    #9

                    @rapid84
                    what is your Qt and OpenSSL version?

                    --Alles ist gut.

                    R 1 Reply Last reply
                    0
                    • RatzzR Ratzz

                      @rapid84
                      what is your Qt and OpenSSL version?

                      R Offline
                      R Offline
                      rapid84
                      wrote on last edited by
                      #10

                      @Ratzz @mrjj

                      The instructions have solved my problem :

                      https://askubuntu.com/questions/711863/installing-qt-5-5-1-on-ubuntu-14-04-throws-qt-network-ssl-error-on-terminal

                      But when i run it , it holds the "Loading weather data" screen and it does not show anything

                      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