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)
-
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.
-
How do I download the 32 bit version of Qt provided by that distribution?
-
Like you did for the other packages:
apt-get install qtbase5-dev:i386
and all other related dev packages that you need.[edit: Fixed package name SGaist]
-
I tried that and I got the error "E: Unable to locate package qt5base-dev:i386".
-
I tried that and I got the error "E: Unable to locate package qt5base-dev:i386".
- 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
-
Ok, wrong package name: it's
qtbase5-dev
.A quick search on packages.debian.org wold have gotten you the answer faster.
-
- 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
@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.
-
Ok, wrong package name: it's
qtbase5-dev
.A quick search on packages.debian.org wold have gotten you the answer faster.
@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.
-
@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.
@Donald-Duck I suggest you to use the MainteneanceTool application inside of Qt Folder
-
@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.
-
@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.
@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.