Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to compile the android tree on Ubuntu 64bit 12.04; The build fails on an error of missing shared library;

Check /usr/ lib files i found that: /usr/lib/ or /usr/lib32 doesn't have Qt. /usr/lib/x86_64_xxxxx/ does exist.

The package is already installed; however, i believe the installed version is 64bit while the build requires i386 (32bit) version;

how can i install the i386 version of libQt?

share|improve this question

I had the same problem when I ran 32-bit software on a 64-bit system.

ldd xxx => not found => not found

Then I installed libqtgui4:i386 Install libqtgui4:i386.

apt-get install libqtgui4:i386
ldd xxx => /usr/lib/i386-linux-gnu/ (0xf67e3000) => /usr/lib/i386-linux-gnu/ (0xf64dc000)

share|improve this answer

To compile software against the 32-bit version of Qt 4, you will need to install the libqt4-dev:i386 package. This will remove the 64-bit version, but it can be re-installed after, if you need to compile 64-bit software later.

share|improve this answer

This is it:

apt-get purge qt5-default -y
apt-get purge qt5-qmake -y
apt-get purge qtbase5-dev-tools -y
apt-get purge qttools5-dev-tools -y
apt-get install gcc-4.9 -y
apt-get install qt5-default -y
apt-get install qt5-qmake -y
apt-get install qtbase5-dev-tools -y
apt-get install qttools5-dev-tools -y
share|improve this answer
Could you please edit your answer and explain why the individual apt-gets actually help? ;-) For the record: I didn't downvote your answer, but am willing to upvote if you expand it a little and drop me a note @Fabby. – Fabby Dec 14 '15 at 10:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.