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. How to install 32-bit Qt on 64-bit Linux? (error while loading shared libraries: libx11-xcb.so.1: cannot open shared object file: No such file or directory)
Forum Updated to NodeBB v4.3 + New Features

How to install 32-bit Qt on 64-bit Linux? (error while loading shared libraries: libx11-xcb.so.1: cannot open shared object file: No such file or directory)

Scheduled Pinned Locked Moved Solved General and Desktop
12 Posts 4 Posters 5.2k Views 2 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
    SGaist
    Lifetime Qt Champion
    wrote on 5 Jun 2018, 20:05 last edited by
    #2

    Hi,

    Either install the 32bit version of Qt provided by that distribution or build Qt yourself.

    The 32bit pre-built package has be stopped a long time ago because of very low download numbers.

    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
    1
    • D Offline
      D Offline
      Donald Duck
      wrote on 5 Jun 2018, 20:22 last edited by
      #3

      How do I download the 32 bit version of Qt provided by that distribution?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 5 Jun 2018, 20:23 last edited by SGaist 6 May 2018, 20:30
        #4

        Like you did for the other packages: apt-get install qtbase5-dev:i386and all other related dev packages that you need.

        [edit: Fixed package name SGaist]

        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
        1
        • D Offline
          D Offline
          Donald Duck
          wrote on 5 Jun 2018, 20:26 last edited by
          #5

          I tried that and I got the error "E: Unable to locate package qt5base-dev:i386".

          A 1 Reply Last reply 5 Jun 2018, 20:29
          0
          • D Donald Duck
            5 Jun 2018, 20:26

            I tried that and I got the error "E: Unable to locate package qt5base-dev:i386".

            A Offline
            A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on 5 Jun 2018, 20:29 last edited by
            #6

            @Donald-Duck

            • which Linux is this exactly?
            • you may have more success asking in the distributions forum instead
            • from my experience, it's much easier to install a 32 bit Linux in a virtual machine instead fiddling with the i386 subsystems

            Regards

            Qt has to stay free or it will die.

            D 1 Reply Last reply 5 Jun 2018, 20:33
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 5 Jun 2018, 20:30 last edited by
              #7

              Ok, wrong package name: it's qtbase5-dev.

              A quick search on packages.debian.org wold have gotten you the answer faster.

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

              D 1 Reply Last reply 5 Jun 2018, 20:39
              1
              • A aha_1980
                5 Jun 2018, 20:29

                @Donald-Duck

                • which Linux is this exactly?
                • you may have more success asking in the distributions forum instead
                • from my experience, it's much easier to install a 32 bit Linux in a virtual machine instead fiddling with the i386 subsystems

                Regards

                D Offline
                D Offline
                Donald Duck
                wrote on 5 Jun 2018, 20:33 last edited by
                #8

                @aha_1980 It's a 64-bit Ubuntu virtual machine. It's true that I could add a 32-bit virtual machine in addition to my 64-bit virtual machine, but I don't have that much disk space so I would prefer not to.

                1 Reply Last reply
                0
                • S SGaist
                  5 Jun 2018, 20:30

                  Ok, wrong package name: it's qtbase5-dev.

                  A quick search on packages.debian.org wold have gotten you the answer faster.

                  D Offline
                  D Offline
                  Donald Duck
                  wrote on 5 Jun 2018, 20:39 last edited by
                  #9

                  @SGaist I installed it. How do I compile my project as a 32-bit application now? I can't find where the 32-bit version is installed and it didn't add any kit to Qt Creator.

                  K 1 Reply Last reply 5 Jun 2018, 20:43
                  0
                  • D Donald Duck
                    5 Jun 2018, 20:39

                    @SGaist I installed it. How do I compile my project as a 32-bit application now? I can't find where the 32-bit version is installed and it didn't add any kit to Qt Creator.

                    K Offline
                    K Offline
                    KillerSmath
                    wrote on 5 Jun 2018, 20:43 last edited by
                    #10

                    @Donald-Duck I suggest you to use the MainteneanceTool application inside of Qt Folder

                    @Computer Science Student - Brazil
                    Web Developer and Researcher
                    “Sometimes it’s the people no one imagines anything of who do the things that no one can imagine.” - Alan Turing

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 5 Jun 2018, 20:44 last edited by
                      #11

                      @Donald-Duck /usr/lib/i386-linux-gnu/qt5/bin/qmake

                      @KillerSmath As already written, there's no 32bit pre-built Qt for Linux since a long time.

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

                      D 1 Reply Last reply 5 Jun 2018, 20:57
                      2
                      • S SGaist
                        5 Jun 2018, 20:44

                        @Donald-Duck /usr/lib/i386-linux-gnu/qt5/bin/qmake

                        @KillerSmath As already written, there's no 32bit pre-built Qt for Linux since a long time.

                        D Offline
                        D Offline
                        Donald Duck
                        wrote on 5 Jun 2018, 20:57 last edited by
                        #12

                        @SGaist Thanks, I managed to get it to work. I added /usr/lib/i386-linux-gnu/qt5/bin/qmake to the Qt versions (Settings > Qt Versions) in Qt Creator and then added a kit using that Qt version.

                        1 Reply Last reply
                        1

                        11/12

                        5 Jun 2018, 20:44

                        • Login

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