source: trunk/doc/html/install-x11.html@ 190

Last change on this file since 190 was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 5.2 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/doc/installation.doc:51 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>Installing Qt/X11</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { background: #ffffff; color: black; }
12--></style>
13</head>
14<body>
15
16<table border="0" cellpadding="0" cellspacing="0" width="100%">
17<tr bgcolor="#E5E5E5">
18<td valign=center>
19 <a href="index.html">
20<font color="#004faf">Home</font></a>
21 | <a href="classes.html">
22<font color="#004faf">All&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;Classes</font></a>
25 | <a href="annotated.html">
26<font color="#004faf">Annotated</font></a>
27 | <a href="groups.html">
28<font color="#004faf">Grouped&nbsp;Classes</font></a>
29 | <a href="functions.html">
30<font color="#004faf">Functions</font></a>
31</td>
32<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>Installing Qt/X11</h1>
33
34
35<p> You may need to be root, depending on the permissions of the directories
36where you choose to install Qt.
37<p> <ol type=1>
38<li> Unpack the archive if you have not done so already:
39<p> <pre>
40 cd /usr/local
41 gunzip qt-x11-version.tar.gz # uncompress the archive
42 tar xf qt-x11-version.tar # unpack it
43</pre>
44
45<p> This creates the directory /usr/local/qt-<em>version</em> containing the
46files from the main archive.
47<p> Rename qt-<em>version</em> to qt (or make a symlink):
48<p> <pre>
49 mv qt-version qt
50</pre>
51
52<p> The rest of this file assumes that Qt is installed in <tt>/usr/local/qt</tt>.
53<p> <li> Set some environment variables in the file <tt>.profile</tt> (or <tt>.login</tt>,
54depending on your shell) in your home directory. Create the
55file if it is not there already.
56<p> <ul>
57<li> QTDIR -- the directory in which you're building Qt
58<li> PATH -- to locate the <a href="moc.html#moc">moc</a> program and other Qt tools
59<li> MANPATH -- to access the Qt man pages
60<li> LD_LIBRARY_PATH -- for the shared Qt library
61</ul>
62<p> This is done like this:
63<p> In <tt>.profile</tt> (if your shell is bash, ksh, zsh or sh), add the
64following lines:
65<p> <pre>
66 QTDIR=/usr/local/qt
67 PATH=$QTDIR/bin:$PATH
68 MANPATH=$QTDIR/man:$MANPATH
69 LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
70
71 export QTDIR PATH MANPATH LD_LIBRARY_PATH
72</pre>
73
74<p> In <tt>.login</tt> (in case your shell is csh or tcsh), add the following lines:
75<p> <pre>
76 setenv QTDIR /usr/local/qt
77 setenv PATH $QTDIR/bin:$PATH
78 setenv MANPATH $QTDIR/man:$MANPATH
79 setenv LD_LIBRARY_PATH $QTDIR/lib:$LD_LIBRARY_PATH
80</pre>
81
82<p> After you have done this, you will need to login again, or
83re-source the profile before continuing, so that at least <tt>$QTDIR</tt>
84is set. The installation will give an error message and not
85proceed otherwise.
86<p> On AIX set LIBPATH and on HP-UX set SHLIB_PATH instead of LD_LIBRARY_PATH.
87<p> Note that the SGI MIPSpro o32 and Sun WorkShop 5.0 targets are no
88longer supported as of Qt 3.3.
89<p> <li> Install your license file as <tt>$HOME/.qt-license</tt>.
90For the free edition and evaluation version, you do not need a license
91file.
92<p> <li> Compile the Qt library, and build the example programs,
93the tutorial and the tools (e.g. <a href="designer-manual.html">Qt
94 Designer</a>) as follows.
95<p> Type:
96<pre>
97 ./configure
98</pre>
99
100<p> This will configure the Qt library for your machine. Note that
101GIF support is turned off by default. Run <tt>./configure -help</tt>
102to get a list of configuration options. Read <tt>PLATFORMS</tt> for a
103list of supported platforms.
104<p> To create the library and compile all examples and the tutorial:
105<pre>
106 make
107</pre>
108
109If you have problems, see
110<a href="http://www.trolltech.com/platforms/">http://www.trolltech.com/platforms/</a>.
111<p> <li> In very few cases you may need to run <tt>/sbin/ldconfig</tt> or something
112similar at this point if you are using shared libraries.
113<p> If you have problems running the example programs, e.g. messages like
114<pre>
115 can't load library 'libqt.so.2'
116</pre>
117
118you probably need to put a reference to the qt library in a
119configuration file and run <tt>/sbin/ldconfig</tt> as root on your system.
120And don't forget to <tt>set</tt> LD_LIBRARY_PATH as explained in 2) above.
121<p> <li> The online HTML documentation is installed in <tt>/usr/local/qt/doc/html/</tt>
122The main page is <tt>/usr/local/qt/doc/html/index.html</tt>.
123The man pages are installed in <tt>/usr/local/qt/doc/man/</tt>.
124The documentation is also accessible using <a href="assistant.html">Qt
125 Assistant</a>.
126</ol>
127<p> You're done. Qt is now installed.
128<p>
129<!-- eof -->
130<p><address><hr><div align=center>
131<table width=100% cellspacing=0 border=0><tr>
132<td>Copyright &copy; 2007
133<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
134<td align=right><div align=right>Qt 3.3.8</div>
135</table></div></address></body>
136</html>
Note: See TracBrowser for help on using the repository browser.