Qt from Source on Debian 7.5(amd64)


I could not figured out an exception issue while Qt 5.2.1 linux 64 installer, this is walkthough to install Qt 5.2 from source.

Detail description is http://qt-project.org/wiki/Building_Qt_5_from_Git Following command will get an initial part of qt5 source.


  • Perl 5.14.2 was installed already on my target Debian 7.5
  • Python 2.7.3 was installed by "apt-get install python"
  • gcc 4.7.2 (Debian 4.8.2-5) and toolchains was installed

apt-get required tools

sudo apt-get install "^libxcb.*" libx11-xcb-dev libglu1-mesa-dev libxrender-dev

Get a source

$ git clone git://gitorious.org/qt/qt5.git qt5
$ cd qt5
$ perl init-repository

Config and build

$ ./configure -opensource -nomake examples -nomake tests

User login