Difference between revisions of "Compiling Qt from source"

From GeopsyWiki
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 33: Line 33:
 
Or, if you cannot log in as 'root', change the '-prefix' option to a path where you have write permissions.
 
Or, if you cannot log in as 'root', change the '-prefix' option to a path where you have write permissions.
  
== Common errors ==
+
== Missing packages ==
  
 
You may encounter several errors if some required packages are not installed, especially development extension not present in default setups. Here follows lists of packages to install for Ubuntu and Fedora. ''Edit this document if you have experience with other distributions.''
 
You may encounter several errors if some required packages are not installed, especially development extension not present in default setups. Here follows lists of packages to install for Ubuntu and Fedora. ''Edit this document if you have experience with other distributions.''
Line 43: Line 43:
 
=== Fedora ===
 
=== Fedora ===
  
''TODO''
+
Under Fedora Core 7, the following packages were installed before Qt:
 +
 
 +
  glibc-headers
 +
  kernel-headers
 +
  glibc-headers
 +
  glibc-devel
 +
  gcc
 +
  libstdc++-devel
 +
  gcc-c++
 +
  glib2
 +
  glib
 +
  libXau-devel
 +
  libXdmcp-devel
 +
  xorg-x11-proto-devel
 +
  mesa-libGL-devel
 +
  libX11-devel
 +
  libXext-devel
 +
  libXext
 +
  freetype-devel
 +
  fontconfig-devel
 +
  libXcursor-devel
 +
  libXrender
 +
  libXrender-devel
 +
  zlib-devel
 +
 
 +
To summarize: g++ and headers for X11 libraries. libXext and libXrender did not exist in this default installation of Fedora Core 7.

Latest revision as of 13:07, 23 October 2008

Download

Download Qt sources

Build steps

Untar the archive:

 tar xvfz qt-x11-opensource-src-4.4.3.tar.gz

Configure Qt:

 cd qt-x11-opensource-src-4.4.3
 ./configure -prefix /usr/local/Trolltech/Qt-4.4.3

Accept the license offer GPLv2 or v3. Running the configuration script takes at least a few minutes. Compile Qt:

 make

Log in as 'root' to get permissions to write to /usr/local/Trolltech:

 su

Once logged in as 'root':

 make install
 exit

Alternatively, you can use sudo:

 sudo make install

Or, if you cannot log in as 'root', change the '-prefix' option to a path where you have write permissions.

Missing packages

You may encounter several errors if some required packages are not installed, especially development extension not present in default setups. Here follows lists of packages to install for Ubuntu and Fedora. Edit this document if you have experience with other distributions.

Ubuntu

TODO

Fedora

Under Fedora Core 7, the following packages were installed before Qt:

 glibc-headers
 kernel-headers
 glibc-headers
 glibc-devel
 gcc
 libstdc++-devel
 gcc-c++
 glib2
 glib
 libXau-devel
 libXdmcp-devel
 xorg-x11-proto-devel
 mesa-libGL-devel
 libX11-devel
 libXext-devel
 libXext
 freetype-devel
 fontconfig-devel
 libXcursor-devel
 libXrender
 libXrender-devel
 zlib-devel

To summarize: g++ and headers for X11 libraries. libXext and libXrender did not exist in this default installation of Fedora Core 7.