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.
  • D Offline
    D Offline
    Donald Duck
    wrote on last edited by
    #1

    I'm trying to install 32-bit Qt on 64-bit Linux (from here and then clicking on "view other options" and "Qt Online Installer for Linux (32-bit)"). After searching the web, I found that to get it to work I need to install some packages. So I installed a lot of packages (everything I could find on the web that was related):

    sudo dpkg --add-architecture i386
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 multiarch-support gcc-multilib libc6-i386 libx11-6:i386
    sudo add-apt-repository ppa:ubuntu-toolchain-r/test
    sudo apt-get install libx11-dev
    sudo apt-get dist-upgrade
    sudo apt-get install libgtk-3.0 libasound2 libnss3 libxss-1 libx11-xcb-dev gcc-4.7-base libstdc++6-4.7-dev
    

    It still doesn't work. I get the following error:

    ./qt-unified-linux-x86-2.0.5-2-online.run: error while loading shared libraries: libx11-xcb.so.1: cannot open shared object file: No such file or directory
    

    How can I get 32-bit Qt to work on 64-bit Linux?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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 last edited by
        #3

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

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by SGaist
          #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 last edited by
            #5

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

            aha_1980A 1 Reply Last reply
            0
            • D Donald Duck

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

              aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 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
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on 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
                1
                • aha_1980A aha_1980

                  @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 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
                  • SGaistS SGaist

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

                    KillerSmathK 1 Reply Last reply
                    0
                    • D Donald Duck

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

                      KillerSmathK Offline
                      KillerSmathK Offline
                      KillerSmath
                      wrote on 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
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 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
                        2
                        • SGaistS SGaist

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

                          • Login

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