Some notes on installing QT 4.8.6 on Ubuntu 16.04.3 LTS 64-bit OS.

Get files

  1. QT source code
  2. QT Creator

Installation

QT compiler

  1. Install sudo apt install libx11-dev libxext-dev libxtst-dev
    • For solving Basic XLib functionality test failed error
  2. tar xzvf qt-everywhere-opensource-src-4.8.6.tar.gz
  3. cd qt-everywhere-opensource-src-4.8.6
  4. ./configure && make && sudo make install
  5. In your .zshrc, add
1
2
3
4
export QTDIR=/usr/local/Trolltech/Qt-4.8.6   
export PATH=$QTDIR/bin:$PATH   
export MANPATH=$QTDIR/man:$MANPATH   
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH 

QT creator

  1. chmod +x qt-creator-linux-x86-opensource-2.5.2.bin
  2. ./qt-creator-linux-x86-opensource-2.5.2.bin

Try it!

  1. Go to cd /usr/local/Trolltech/Qt-4.8.6/bin and execute ./qmake -v. If you see the version information, you are done!
  2. Try typing qmake directly in your terminal. If error message occurs, use which qmake to locate the soft link and fix it accordingly.