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. Qt 4.x installation on Ubuntu 18.04
Forum Update on Monday, May 27th 2025

Qt 4.x installation on Ubuntu 18.04

Scheduled Pinned Locked Moved Solved Installation and Deployment
ubuntu 18.04installationavogadro
18 Posts 6 Posters 28.3k 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.
  • J Offline
    J Offline
    Just_Liberty
    wrote on last edited by Just_Liberty
    #6

    Well that was easy! So, is that -default a Qtism, an Ubuntu-ism, a package-ism, or a Linux-ism? How would I find that out if I (you!) didn't know it? Thanks very much.

    aha_1980A jsulmJ SGaistS 4 Replies Last reply
    0
    • J Just_Liberty

      Well that was easy! So, is that -default a Qtism, an Ubuntu-ism, a package-ism, or a Linux-ism? How would I find that out if I (you!) didn't know it? Thanks very much.

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

      @Just_Liberty probably Debian/Ubuntu.

      apt-cache search qt4 is your friend ;)

      Qt has to stay free or it will die.

      J 1 Reply Last reply
      6
      • J Just_Liberty

        Well that was easy! So, is that -default a Qtism, an Ubuntu-ism, a package-ism, or a Linux-ism? How would I find that out if I (you!) didn't know it? Thanks very much.

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #8

        @Just_Liberty It's how Ubuntu packages Qt, nothing related to Qt project. To find out what you need to install use what @aha_1980 suggested or "apt search".

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

        1 Reply Last reply
        2
        • J Just_Liberty

          Well that was easy! So, is that -default a Qtism, an Ubuntu-ism, a package-ism, or a Linux-ism? How would I find that out if I (you!) didn't know it? Thanks very much.

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #9

          @Just_Liberty said in Qt 4.x installation on Ubuntu 18.04:

          Well that was easy! So, is that -default a Qtism, an Ubuntu-ism, a package-ism, or a Linux-ism? How would I find that out if I (you!) didn't know it? Thanks very much.

          Each Linux distribution has a package mechanism or rather each major distribution has. For example all Debian derivates like Ubuntu uses Debian's package manager. That's one of the first thing you should look for when installing one or the other flavours of Linux. Also note that most of them also have one or more GUI available so you don't necessarily have to go through the command line.

          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
          4
          • J Just_Liberty

            Well that was easy! So, is that -default a Qtism, an Ubuntu-ism, a package-ism, or a Linux-ism? How would I find that out if I (you!) didn't know it? Thanks very much.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #10

            @Just_Liberty To add to @SGaist : on Debian derivatives like Ubuntu you can install Synaptic - it is a graphical user interface for the packet manager.

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

            1 Reply Last reply
            1
            • JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by
              #11

              As a matter of principle, I wouldn't use a GUI to help install under Linux, that's too helpful ;-)

              In addition to to @aha_1980's apt-cache search qt4 suggestion, be aware that the shell (bash) will (get apt to) suggest completions for installation packages just via the tab key on the command line. It's not an "in-string" search like apt-cache search, but it's a convenient starting point. So if you are interested in packages which might start with qt4, just type in

              apt-get install qt4
              

              and press the Tab key. That will expand to qt4- in this case, as that's the only completion here. Pressing Tab now a second time will list all the packages starting with qt4- (12 in my case). That's what I do when I know the prefix of the package but not what's available.

              J 1 Reply Last reply
              3
              • aha_1980A aha_1980

                @Just_Liberty probably Debian/Ubuntu.

                apt-cache search qt4 is your friend ;)

                J Offline
                J Offline
                Just_Liberty
                wrote on last edited by
                #12

                @aha_1980 Excellent-thanks for helping me on my way to minimal linux admin proficiency

                1 Reply Last reply
                1
                • JonBJ JonB

                  As a matter of principle, I wouldn't use a GUI to help install under Linux, that's too helpful ;-)

                  In addition to to @aha_1980's apt-cache search qt4 suggestion, be aware that the shell (bash) will (get apt to) suggest completions for installation packages just via the tab key on the command line. It's not an "in-string" search like apt-cache search, but it's a convenient starting point. So if you are interested in packages which might start with qt4, just type in

                  apt-get install qt4
                  

                  and press the Tab key. That will expand to qt4- in this case, as that's the only completion here. Pressing Tab now a second time will list all the packages starting with qt4- (12 in my case). That's what I do when I know the prefix of the package but not what's available.

                  J Offline
                  J Offline
                  Just_Liberty
                  wrote on last edited by
                  #13

                  @JonB Thanks for the tip. Minor note: I have to press tab 3 times, the 2nd returns nothing new. I'm (pleasantly) surprised bash can do completion in this context.

                  JonBJ 1 Reply Last reply
                  0
                  • J Just_Liberty

                    @JonB Thanks for the tip. Minor note: I have to press tab 3 times, the 2nd returns nothing new. I'm (pleasantly) surprised bash can do completion in this context.

                    JonBJ Offline
                    JonBJ Offline
                    JonB
                    wrote on last edited by JonB
                    #14

                    @Just_Liberty
                    Heads-up, just to be clear about the "3 vs 2 times". (I see I mis-explained this above.) It depends when you started pressing Tab, and shell filename completion works the same:

                    • If you start from apt-get install qt4, the only possible completions at that point all start with qt4- (note the hyphen). Pressing Tab once will append the hyphen and that's it at that point.

                    • You now have apt-get install qt4-. At this point there are multiple possible completions all from qt4-. When you press Tab once nothings (seems to) happen (in fact, I think the terminal "bell" rings to tell you this), because the shell does not know what you want next. If you then press Tab a second time at this point it will list all the possible completions, so that you know what you might want to type next.

                    Above is all default bash behaviour (can be modified). So if you start from apt-get install qt4 you will end up pressing Tab 3 times, if you start from apt-get install qt4- it will only be 2 Tabs. See?

                    This is all worth knowing if you like bash filename completion. That has worked for years & years, back to UNIX days. What's new (to me, somewhere along the line) is that it used to be only filename completion. bash now seems to be "clever" and look at what you have to the left on the command-line and adjust what it does to the "context" of the command you're intending, e.g. gunzip <filename><TAB> only offers files ending in .gz, tar xf archive.tar <file-to-extract><TAB> looks inside the archive for filenames to offer, etc.! Often helpful, sometimes annoying! :)

                    aha_1980A 1 Reply Last reply
                    1
                    • JonBJ JonB

                      @Just_Liberty
                      Heads-up, just to be clear about the "3 vs 2 times". (I see I mis-explained this above.) It depends when you started pressing Tab, and shell filename completion works the same:

                      • If you start from apt-get install qt4, the only possible completions at that point all start with qt4- (note the hyphen). Pressing Tab once will append the hyphen and that's it at that point.

                      • You now have apt-get install qt4-. At this point there are multiple possible completions all from qt4-. When you press Tab once nothings (seems to) happen (in fact, I think the terminal "bell" rings to tell you this), because the shell does not know what you want next. If you then press Tab a second time at this point it will list all the possible completions, so that you know what you might want to type next.

                      Above is all default bash behaviour (can be modified). So if you start from apt-get install qt4 you will end up pressing Tab 3 times, if you start from apt-get install qt4- it will only be 2 Tabs. See?

                      This is all worth knowing if you like bash filename completion. That has worked for years & years, back to UNIX days. What's new (to me, somewhere along the line) is that it used to be only filename completion. bash now seems to be "clever" and look at what you have to the left on the command-line and adjust what it does to the "context" of the command you're intending, e.g. gunzip <filename><TAB> only offers files ending in .gz, tar xf archive.tar <file-to-extract><TAB> looks inside the archive for filenames to offer, etc.! Often helpful, sometimes annoying! :)

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

                      @JonB The logic behind this bash feature is called bash-completion and is of course adjustable ;)

                      Qt has to stay free or it will die.

                      JonBJ 1 Reply Last reply
                      2
                      • aha_1980A aha_1980

                        @JonB The logic behind this bash feature is called bash-completion and is of course adjustable ;)

                        JonBJ Offline
                        JonBJ Offline
                        JonB
                        wrote on last edited by
                        #16

                        @aha_1980
                        Aha! [So to speak.] What do I say to my Linux admin expert friend who says/claims it does not work in his Ubuntu 16.04 when it's working for me in 18.04, I know it always used to work in 17.04, and I would have thought when I started it 16.04 it did? How long do you think that "customizable" bash completion has been available & implemented, is it really new?

                        aha_1980A 1 Reply Last reply
                        0
                        • JonBJ JonB

                          @aha_1980
                          Aha! [So to speak.] What do I say to my Linux admin expert friend who says/claims it does not work in his Ubuntu 16.04 when it's working for me in 18.04, I know it always used to work in 17.04, and I would have thought when I started it 16.04 it did? How long do you think that "customizable" bash completion has been available & implemented, is it really new?

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

                          @JonB the feature in bash exists for over 10 years.

                          If it's not working in some distro - ask the maintainers. I can't tell for 10.04 anymore, but in16.04 it's surely working. I use it myself, for example git.

                          Qt has to stay free or it will die.

                          JonBJ 1 Reply Last reply
                          1
                          • aha_1980A aha_1980

                            @JonB the feature in bash exists for over 10 years.

                            If it's not working in some distro - ask the maintainers. I can't tell for 10.04 anymore, but in16.04 it's surely working. I use it myself, for example git.

                            JonBJ Offline
                            JonBJ Offline
                            JonB
                            wrote on last edited by
                            #18

                            @aha_1980 Perfect, I shall go tell my expert friend he is talking rubbish :)

                            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