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.4k 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by SPlatten
    #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 JoeCFDJ jsulmJ 3 Replies Last reply
    0
    • SPlattenS SPlatten

      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 last edited by mpergand
      #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
      
      SPlattenS 1 Reply Last reply
      1
      • M mpergand

        @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
        
        SPlattenS Offline
        SPlattenS Offline
        SPlatten
        wrote on 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
        • SPlattenS SPlatten

          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

          JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by JoeCFD
          #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.

          SPlattenS 1 Reply Last reply
          0
          • JoeCFDJ JoeCFD

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

            SPlattenS Offline
            SPlattenS Offline
            SPlatten
            wrote on last edited by
            #5

            @JoeCFD , just tried from ubuntu terminal:

            sudo apt-get install synaptic
            

            What does this do for me?

            Kind Regards,
            Sy

            JoeCFDJ 1 Reply Last reply
            0
            • SPlattenS SPlatten

              @JoeCFD , just tried from ubuntu terminal:

              sudo apt-get install synaptic
              

              What does this do for me?

              JoeCFDJ Offline
              JoeCFDJ Offline
              JoeCFD
              wrote on last edited by JoeCFD
              #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
              • SPlattenS SPlatten

                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

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on 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
                0
                • jsulmJ jsulm

                  @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 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

                  • Login

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