Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2416

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /home/gvatteka/dev/qt-4.3/doc/src/emb-install.qdoc -->
<head>
  <title>Installing Qtopia Core</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1 align="center">Installing Qtopia Core<br /><small></small></h1>
<p>This document describes how to install Qtopia Core</tt> in your development environment:</p>
<ul><li><a href="#step-1-installing-the-license-file-commercial-editions-only">Step 1: Installing the License File (commercial editions only)</a></li>
<li><a href="#step-2-unpacking-the-archive">Step 2: Unpacking the Archive</a></li>
<li><a href="#step-3-building-the-library">Step 3: Building the Library</a></li>
<li><a href="#step-4-adjusting-the-environment-variables">Step 4: Adjusting the Environment Variables</a></li>
<li><a href="#step-5-enabling-framebuffer-support">Step 5: Enabling Framebuffer Support</a></li>
</ul>
<p>Please see the <a href="qtopiacore-crosscompiling.html">cross compiling</tt></a> and <a href="qtopiacore-deployment.html">deployment</tt></a> documentation for details on how to install Qtopia Core</tt> on your target device.</p>
<p>Note also that this installation procedure is written for Linux, and that it may need to be modified for other platforms.</p>
<a name="step-1-installing-the-license-file-commercial-editions-only"></a>
<h3>Step 1: Installing the License File (commercial editions only)</h3>
<p>If you have the commercial edition of Qtopia Core</tt>, the first step is to install your license file as <tt>$HOME/.qt-license</tt>.</p>
<p>For the open source version you do not need a license file.</p>
<a name="step-2-unpacking-the-archive"></a>
<h3>Step 2: Unpacking the Archive</h3>
<p>First uncompress the archive in the preferred location, then unpack it:</p>
<pre>    cd &lt;anywhere&gt;
    gunzip qtopia-core-commercial-src-%VERSION%.tar.gz
    tar xf qtopia-core-commercial-src-%VERSION%.tar</pre>
<p>This document assumes that the archive is unpacked in the following directory:</p>
<pre>    ~/qtopia-core-commercial-src-%VERSION%</pre>
<a name="step-3-building-the-library"></a>
<h3>Step 3: Building the Library</h3>
<p>Before building the Qtopia Core</tt> library, run the <tt>./configure</tt> script to configure the library for your development architecture. You can list all of the configuration system's options by typing <tt>./configure -help</tt>.</p>
<p>Note that by default, Qtopia Core</tt> is configured for installation in the <tt>/usr/local/Trolltech/QtopiaCore-%VERSION%</tt> directory, but this can be changed by using the <tt>-prefix</tt> option. Alternatively, the <tt>-prefix-install</tt> option can be used to specify a &quot;local&quot; installation within the source directory.</p>
<p>The configuration system is also designed to allow you to specify your platform architecture:</p>
<pre>    cd  ~/qtopia-core-commercial-src-%VERSION%
    ./configure -embedded [architecture]</pre>
<p>In general, all Linux systems which have framebuffer support can use the <tt>generic</tt> architecture. Other typical architectures are <tt>x86</tt>, <tt>arm</tt> and <tt>mips</tt>.</p>
<p>To create the library and compile all the demos, examples, tools, and tutorials, type:</p>
<pre>    make</pre>
<p>On some systems the <tt>make</tt> utility is called differently, e.g&#x2e; <tt>gmake</tt>. The <tt>configure</tt> script tells you which <tt>make</tt> utility to use.</p>
<p>If you did not configure Qtopia Core</tt> using the <tt>-prefix-install</tt> option, you need to install the library, demos, examples, tools, and tutorials in the appropriate place. To do this, type:</p>
<pre>    su -c &quot;make install&quot;</pre>
<p>and enter the root password.</p>
<p><b>Note:</b> You can use the <tt>INSTALL_ROOT</tt> environment variable to specify the location of the installed files when invoking <tt>make install</tt>.</p>
<a name="step-4-adjusting-the-environment-variables"></a>
<h3>Step 4: Adjusting the Environment Variables</h3>
<p>In order to use Qtopia Core</tt>, the <tt>PATH</tt> variable must be extended to locate <tt>qmake</tt>, <tt>moc</tt> and other Qtopia Core</tt> tools, and the <tt>LD_LIBRARY_PATH</tt> must be extended for compilers that do not support <tt>rpath</tt>.</p>
<p>To set the <tt>PATH</tt> variable, add the following lines to your <tt>.profile</tt> file if your shell is bash, ksh, zsh or sh:</p>
<pre>     PATH=/usr/local/Trolltech/QtopiaCore-%VERSION%/bin:$PATH
     export PATH</pre>
<p>In case your shell is csh or tcsh, add the following line to the <tt>.login</tt> file instead:</p>
<pre>     setenv PATH /usr/local/Trolltech/QtopiaCore-%VERSION%/bin:$PATH</pre>
<p>If you use a different shell, please modify your environment variables accordingly.</p>
<p>For compilers that do not support <tt>rpath</tt> you must also extend the <tt>LD_LIBRARY_PATH</tt> environment variable to include <tt>/usr/local/Trolltech/QtopiaCore-%VERSION%/lib</tt>. Note that on Linux with GCC, this step is not needed.</p>
<a name="step-5-enabling-framebuffer-support"></a>
<h3>Step 5: Enabling Framebuffer Support</h3>
<p>For development and debugging, Qtopia Core</tt> provides a virtual framebuffer as well as the option of running Qtopia Core</tt> as a VNC server. For a description of how to install the virtual framebuffer and how to use the VNC protocol, please consult the documentation at:</p>
<ul>
<li><a href="qtopiacore-qvfb.html">Qtopia Core's Virtual Framebuffer</tt></a></li>
<li><a href="qtopiacore-vnc.html">The VNC Protocol and Qtopia Core</tt></a></li>
</ul>
<p>Note that the virtual framebuffer requires a Qt/X11 installation. See <a href="install-x11.html">Installing Qt/X11</tt></a> for details.</p>
<p>The Linux framebuffer, on the other hand, is enabled by default on all modern Linux distributions. For information on older versions, see <a href="http://en.tldp.org/HOWTO/Framebuffer-HOWTO.html">http://en.tldp.org/HOWTO/Framebuffer-HOWTO.html</tt></a>. To test that the Linux framebuffer is set up correctly, use the program provided by the <a href="qtopiacore-testingframebuffer.html">Testing the Linux Framebuffer</tt></a> document.</p>
<p>That's all. Qtopia Core</tt> is now installed.</p>
<p><table width="100%" align="center" cellpadding="2" cellspacing="1" border="0">
<tr valign="top" class="odd"><td><b>Customizing the Qtopia Core Library</b><p>When building embedded applications on low-powered devices, reducing the memory and CPU requirements is important.</p>
<p>A number of options tuning the library's performance are available. But the most direct way of saving resources is to fine-tune the set of Qt features that is compiled. It is also possible to make use of accelerated graphics hardware.</p>
<ul>
<li><a href="qtopiacore-features.html">Fine-Tuning Features in Qtopia Core</tt></a></li>
<li><a href="qtopiacore-performance.html">Qtopia Core Performance Tuning</tt></a></li>
<li><a href="qtopiacore-accel.html">Adding an Accelerated Graphics Driver in Qtopia Core</tt></a></li>
</ul>
</td></tr>
</table></p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2007 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt Jambi </div></td>
</tr></table></div></address></body>
</html>