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. Installing Qt on Ubuntu...
Forum Updated to NodeBB v4.3 + New Features

Installing Qt on Ubuntu...

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 5 Posters 10.2k Views 3 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.
  • S Offline
    S Offline
    SPlatten
    wrote on 12 Dec 2023, 14:01 last edited by SPlatten 12 Dec 2023, 14:04
    #1

    I'm trying to install Qt on a virtual machine where I have set-up Linux 6.2.0-37-generic #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2 X84_64 X86_64 X86_64 GNU/Linux

    Thats the version text returned from console when entering uname -a.

    I've been following the answer here:
    https://stackoverflow.com/questions/48147356/install-qt-on-ubuntu

    When I get to:

    sudo apt-get install qt5-default
    

    The final response is:

    Package qt5-default is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or is only available from another source
    
    E: Package 'qt5-default' has no installation candidate
    

    Can anyone help?

    Just found this, seems to be working:
    https://askubuntu.com/questions/1404263/how-do-you-install-qt-on-ubuntu22-04

    Kind Regards,
    Sy

    M J J 3 Replies Last reply 12 Dec 2023, 14:31
    0
    • S SPlatten
      12 Dec 2023, 14:01

      I'm trying to install Qt on a virtual machine where I have set-up Linux 6.2.0-37-generic #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2 X84_64 X86_64 X86_64 GNU/Linux

      Thats the version text returned from console when entering uname -a.

      I've been following the answer here:
      https://stackoverflow.com/questions/48147356/install-qt-on-ubuntu

      When I get to:

      sudo apt-get install qt5-default
      

      The final response is:

      Package qt5-default is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or is only available from another source
      
      E: Package 'qt5-default' has no installation candidate
      

      Can anyone help?

      Just found this, seems to be working:
      https://askubuntu.com/questions/1404263/how-do-you-install-qt-on-ubuntu22-04

      M Offline
      M Offline
      mpergand
      wrote on 12 Dec 2023, 14:31 last edited by mpergand 12 Dec 2023, 14:34
      #2

      @SPlatten
      I never installed Qt from the command line, always with installers provide by Qt itself.

      Nowadays, we have to use the online installer app.
      Then after, you may have to install the dev tools:

      sudo apt-get install build-essential
      

      and the opengl lib:

      sudo apt-get install libgl-dev libglu-dev
      or
      sudo apt-get install libglu1-mesa-dev -y
      
      S 1 Reply Last reply 12 Dec 2023, 14:33
      1
      • M mpergand
        12 Dec 2023, 14:31

        @SPlatten
        I never installed Qt from the command line, always with installers provide by Qt itself.

        Nowadays, we have to use the online installer app.
        Then after, you may have to install the dev tools:

        sudo apt-get install build-essential
        

        and the opengl lib:

        sudo apt-get install libgl-dev libglu-dev
        or
        sudo apt-get install libglu1-mesa-dev -y
        
        S Offline
        S Offline
        SPlatten
        wrote on 12 Dec 2023, 14:33 last edited by
        #3

        @mpergand , thank you, however the second link I posted works and I have Qt Creator installed now.

        Kind Regards,
        Sy

        1 Reply Last reply
        0
        • S SPlatten
          12 Dec 2023, 14:01

          I'm trying to install Qt on a virtual machine where I have set-up Linux 6.2.0-37-generic #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2 X84_64 X86_64 X86_64 GNU/Linux

          Thats the version text returned from console when entering uname -a.

          I've been following the answer here:
          https://stackoverflow.com/questions/48147356/install-qt-on-ubuntu

          When I get to:

          sudo apt-get install qt5-default
          

          The final response is:

          Package qt5-default is not available, but is referred to by another package.
          This may mean that the package is missing, has been obsoleted, or is only available from another source
          
          E: Package 'qt5-default' has no installation candidate
          

          Can anyone help?

          Just found this, seems to be working:
          https://askubuntu.com/questions/1404263/how-do-you-install-qt-on-ubuntu22-04

          J Offline
          J Offline
          JoeCFD
          wrote on 12 Dec 2023, 14:35 last edited by JoeCFD 12 Dec 2023, 14:36
          #4

          @SPlatten Install synaptic and launch it(sudo synaptic).
          search qt5 or libqt5 to find all qt5 packages and select any you need to install.

          S 1 Reply Last reply 12 Dec 2023, 14:41
          0
          • J JoeCFD
            12 Dec 2023, 14:35

            @SPlatten Install synaptic and launch it(sudo synaptic).
            search qt5 or libqt5 to find all qt5 packages and select any you need to install.

            S Offline
            S Offline
            SPlatten
            wrote on 12 Dec 2023, 14:41 last edited by
            #5

            @JoeCFD , just tried from ubuntu terminal:

            sudo apt-get install synaptic
            

            What does this do for me?

            Kind Regards,
            Sy

            J 1 Reply Last reply 12 Dec 2023, 15:07
            0
            • S SPlatten
              12 Dec 2023, 14:41

              @JoeCFD , just tried from ubuntu terminal:

              sudo apt-get install synaptic
              

              What does this do for me?

              J Offline
              J Offline
              JoeCFD
              wrote on 12 Dec 2023, 15:07 last edited by JoeCFD 12 Dec 2023, 15:09
              #6

              @SPlatten run it:
              sudo synaptic
              and click search button and type in qt5 or libqt5(or qt6 or libqt6) to find all qt5/6 libs
              and then you can select any qt5/6 module to install.
              A simple installation GUI and convenient.

              1 Reply Last reply
              0
              • S SPlatten
                12 Dec 2023, 14:01

                I'm trying to install Qt on a virtual machine where I have set-up Linux 6.2.0-37-generic #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2 X84_64 X86_64 X86_64 GNU/Linux

                Thats the version text returned from console when entering uname -a.

                I've been following the answer here:
                https://stackoverflow.com/questions/48147356/install-qt-on-ubuntu

                When I get to:

                sudo apt-get install qt5-default
                

                The final response is:

                Package qt5-default is not available, but is referred to by another package.
                This may mean that the package is missing, has been obsoleted, or is only available from another source
                
                E: Package 'qt5-default' has no installation candidate
                

                Can anyone help?

                Just found this, seems to be working:
                https://askubuntu.com/questions/1404263/how-do-you-install-qt-on-ubuntu22-04

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 12 Dec 2023, 15:09 last edited by
                #7

                @SPlatten said in Installing Qt on Ubuntu...:

                qt5-default

                Maybe there is no such package in Ubuntu 22.04?
                Simply search for qt5 packages.

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

                SGaistS 1 Reply Last reply 12 Dec 2023, 20:21
                0
                • J jsulm
                  12 Dec 2023, 15:09

                  @SPlatten said in Installing Qt on Ubuntu...:

                  qt5-default

                  Maybe there is no such package in Ubuntu 22.04?
                  Simply search for qt5 packages.

                  SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 12 Dec 2023, 20:21 last edited by
                  #8

                  @jsulm said in Installing Qt on Ubuntu...:

                  @SPlatten said in Installing Qt on Ubuntu...:

                  qt5-default

                  Maybe there is no such package in Ubuntu 22.04?
                  Simply search for qt5 packages.

                  @jsulm is correct.

                  If you take this answer on the stack overflow thread, you'll see the change and why. To get started install qtbase5-dev and all the dev packages of the modules you are going to use for developing your application.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  2

                  1/8

                  12 Dec 2023, 14:01

                  • Login

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