Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.

Compile Qt 4.7 on Ubuntu 10.10: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
(Convert ExpressionEngine links)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Learning]]<br />[[Category:HowTo]]
{{Cleanup | reason=Auto-imported from ExpressionEngine.}}
 
[[Category:Learning]]
[[Category:HowTo]]


= Compile Qt 4.7 on Ubuntu 10.10 =
= Compile Qt 4.7 on Ubuntu 10.10 =
Line 7: Line 10:
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.
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 &quot;Qt site&amp;quot;:http://qt.nokia.com/downloads, and the installation following the provided instructions, before the Qt './configure' step, you need to update some development packages via the Synaptic Package Manager.
After the download of the Qt package, from the [http://qt.nokia.com/downloads 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:
The list that follow contains all the prerequisite root packages:
Line 13: Line 16:
* 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
* 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 &quot;this post&amp;quot;:http://bugreports.qt.nokia.com/browse/QTBUG-13797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
Most of these have common prerequisite packages, but I got the list from the response at [http://bugreports.qt.nokia.com/browse/QTBUG-13797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel this post]


* GLib support: libglib2.0-dev  
* GLib support: libglib2.0-dev  
Line 35: Line 38:
* Another way:
* Another way:


sudo apt-get install libx11-dev libxau-dev libxaw7-dev libxcb1-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev<br />sudo apt-get install libxext-dev libxfixes-dev libxfont-dev libxft-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev<br />sudo apt-get install libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxvmc-dev<br />sudo apt-get install libglib2.0-dev<br />sudo apt-get install libssl-dev<br />sudo apt-get install libgtk2.0-dev<br />sudo apt-get install libcups2-dev<br />sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev<br />sudo apt-get install libgstreamer0.10-dev
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.<br />Also remember the 'sudo make install' command after the build.
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):
The complete list of development libraries and headers follow (in alphabetical order):


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

Latest revision as of 08:16, 4 March 2015

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)