Compile Qt 4.7 on Ubuntu 10.10

From Qt Wiki
Jump to navigation Jump to search
This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Auto-imported from ExpressionEngine.
Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean.

Compile Qt 4.7 on Ubuntu 10.10

These are some notes on the steps necessary to successfully build Qt under Ubuntu Linux.

I'm new to both, but this is what I've done in order to build a default ('./configure' with no parameters) Qt 4.7.1, starting with a fresh , fully updated, installation of Ubuntu 10.10.

After the download of the Qt package, from the Qt site, and the installation following the provided instructions, before the Qt './configure' step, you need to update some development packages via the Synaptic Package Manager.

The list that follow contains all the prerequisite root packages:

  • X11 support: libx11-dev libxau-dev libxaw7-dev libxcb1-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxfont-dev libxft-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxvmc-dev

Most of these have common prerequisite packages, but I got the list from the response at this post

  • GLib support: libglib2.0-dev
  • SSL support: libssl-dev
  • GTK+ support: libgtk2.0-dev
  • CUPS support: libcups2-dev
  • OpenGL support: libgl1-mesa-dev libglu1-mesa-dev
  • MM Support: libgstreamer0.10-dev

The installation can be done with the following commands:

  • A simpler way:

sudo apt-get build-dep libqt4-dev

  • Another way:

sudo apt-get install libx11-dev libxau-dev libxaw7-dev libxcb1-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev sudo apt-get install libxext-dev libxfixes-dev libxfont-dev libxft-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev sudo apt-get install libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxvmc-dev sudo apt-get install libglib2.0-dev sudo apt-get install libssl-dev sudo apt-get install libgtk2.0-dev sudo apt-get install libcups2-dev sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev sudo apt-get install libgstreamer0.10-dev

If you forget to install some of the packages, and get errors during the 'make' command, update the missing packages and remember to always call 'make confclean' and then './configure' again in order to update include and library paths. Also remember the 'sudo make install' command after the build.

The complete list of development libraries and headers follow (in alphabetical order):

comerr-dev (2.1-1.41.12-1ubuntu2) debhelper (8.0.0ubuntu1) gettext (0.18.1.1-1ubuntu2) html2text (1.3.2a-15) intltool-debian (0.35.0+20060710.1) krb5-multidev (1.8.1+dfsg-5ubuntu0.1) libatk1.0-dev (1.32.0-0ubuntu1) libcairo-gobject2 (1.10.0-1ubuntu3) libcairo2-dev (1.10.0-1ubuntu3) libcups2-dev (1.4.4-6ubuntu2.2) libdrm-dev (2.4.21-1ubuntu2.1) libexpat1-dev (2.0.1-7ubuntu1) libfontconfig1-dev (2.8.0-2ubuntu1) libfontenc-dev (1:1.0.5-2) libfreetype6-dev (2.4.2-2ubuntu0.1) libgcrypt11-dev (1.4.5-2ubuntu1) libgdk-pixbuf2.0-dev (2.22.0-0ubuntu1) libgl1-mesa-dev (7.9~git20100924-0ubuntu2) libglib2.0-bin (2.26.0-0ubuntu1) libglib2.0-dev (2.26.0-0ubuntu1) libglib2.0-doc (2.26.0-0ubuntu1) libglibmm-2.4-dev (2.25.5-0ubuntu1) libglu1-mesa-dev (7.9~git20100924-0ubuntu2) libgnutls-dev (2.8.6-1) libgpg-error-dev (1.6-1ubuntu2) libgssrpc4 (1.8.1+dfsg-5ubuntu0.1) libgstreamer-plugins-base0.10-dev (0.10.30-2) libgstreamer0.10-dev (0.10.30-1build2) libgstreamermm-0.10-2 (0.10.6-1) libgstreamermm-0.10-dev (0.10.6-1) libgtk2.0-dev (2.22.0-0ubuntu1) libice-dev (2:1.0.6-1) libkadm5clnt-mit7 (1.8.1+dfsg-5ubuntu0.1) libkadm5srv-mit7 (1.8.1+dfsg-5ubuntu0.1) libkdb5-4 (1.8.1+dfsg-5ubuntu0.1) libkms1 (2.4.21-1ubuntu2.1) libkrb5-dev (1.8.1+dfsg-5ubuntu0.1) libmail-sendmail-perl (0.79.16-1) libpango1.0-dev (1.28.1-1ubuntu3) libpixman-1-dev (0.18.4-1) libpng12-dev (1.2.44-1) libpthread-stubs0 (0.3-2) libpthread-stubs0-dev (0.3-2) libsigc+–2.0-dev (2.2.4.2-1) libsm-dev (2:1.1.1-1) libssl-dev (0.9.8o-1ubuntu4.2) libsys-hostname-long-perl (1.4-2) libtasn1-3-dev (2.7-1) libunistring0 (0.9.3-1) libx11-dev (2:1.3.3-3ubuntu1) libxau-dev (1:1.0.6-1) libxaw7-dev (2:1.0.7-1) libxcb-render0-dev (1.6-1) libxcb-shm0-dev (1.6-1) libxcb1-dev (1.6-1) libxcomposite-dev (1:0.4.2-1) libxcursor-dev (1:1.1.10-2) libxdamage-dev (1:1.1.3-1) libxdmcp-dev (1:1.0.3-2) libxext-dev (2:1.1.2-1) libxfixes-dev (1:4.0.5-1) libxfont-dev (1:1.4.2-1) libxfontp1 (1:1.3.4-3) libxft-dev (2.1.14-2ubuntu1) libxi-dev (2:1.3-4) libxinerama-dev (2:1.1-3) libxkbfile-dev (1:1.0.6-2) libxml2.6-2 (2.30.0-1) libxml+2.6-dev (2.30.0-1) libxml2-dev (2.7.7.dfsg-4ubuntu0.1) libxmu-dev (2:1.0.5-1) libxmu-headers (2:1.0.5-1) libxmuu-dev (2:1.0.5-1) libxpm-dev (1:3.5.8-1) libxrandr-dev (2:1.3.0-3) libxrender-dev (1:0.9.6-1) libxres-dev (2:1.0.4-1) libxss-dev (1:1.2.0-2) libxt-dev (1:1.0.7-1) libxtst-dev (2:1.1.0-3) libxv-dev (2:1.0.5-1) libxvmc-dev (2:1.0.5-1ubuntu1) mesa-common-dev (7.9~git20100924-0ubuntu2) po-debconf (1.0.16) x11proto-composite-dev (1:0.4.1-1) x11proto-core-dev (7.0.17-1) x11proto-damage-dev (1:1.2.0-1) x11proto-fixes-dev (1:4.1.1-2) x11proto-fonts-dev (2.1.0-1) x11proto-input-dev (2.0-2) x11proto-kb-dev (1.0.4-1) x11proto-randr-dev (1.3.1-1) x11proto-record-dev (1.14-2) x11proto-render-dev (2:0.11-1) x11proto-resource-dev (1.1.0-1) x11proto-scrnsaver-dev (1.2.0-2) x11proto-video-dev (2.3.0-1) x11proto-xext-dev (7.1.1-2) x11proto-xinerama-dev (1.2-2) xtrans-dev (1.2.5-1) zlib1g-dev (1:1.2.3.4.dfsg-3ubuntu1)