File: qt-embedded-install.html

package info (click to toggle)
qt4-x11 4%3A4.8.2%2Bdfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 701,696 kB
  • sloc: cpp: 2,686,179; ansic: 375,485; python: 25,859; sh: 19,349; xml: 17,091; perl: 14,765; yacc: 5,383; asm: 5,038; makefile: 1,259; lex: 555; ruby: 526; objc: 347; cs: 112; pascal: 112; php: 54; sed: 34
file content (128 lines) | stat: -rw-r--r-- 9,690 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- emb-install.qdoc -->
  <title>Qt 4.8: Installing Qt for Embedded Linux</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li>Installing Qt for Embedded Linux</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#step-1-installing-the-license-file-commercial-editions-only">Step 1: Installing the License File (commercial editions only)</a></li>
<li class="level1"><a href="#step-2-unpacking-the-archive">Step 2: Unpacking the Archive</a></li>
<li class="level1"><a href="#step-3-building-the-library">Step 3: Building the Library</a></li>
<li class="level1"><a href="#step-4-adjusting-the-environment-variables">Step 4: Adjusting the Environment Variables</a></li>
<li class="level1"><a href="#step-5-building-the-virtual-framebuffer">Step 5: Building the Virtual Framebuffer</a></li>
</ul>
</div>
<h1 class="title">Installing Qt for Embedded Linux</h1>
<span class="subtitle"></span>
<!-- $$$qt-embedded-install.html-description -->
<div class="descr"> <a name="details"></a>
<p>This document describes how to install <a href="qt-embedded-linux.html">Qt for Embedded Linux</a> in your development environment:</p>
<p>Please see the <a href="qt-embedded-crosscompiling.html">cross compiling</a> and <a href="qt-embedded-deployment.html">deployment</a> documentation for details on how to install <a href="qt-embedded-linux.html">Qt for Embedded Linux</a> 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>
<h2>Step 1: Installing the License File (commercial editions only)</h2>
<p>If you have the commercial edition of <a href="qt-embedded-linux.html">Qt for Embedded Linux</a>, 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>
<h2>Step 2: Unpacking the Archive</h2>
<p>First uncompress the archive in the preferred location, then unpack it:</p>
<pre class="cpp"> cd &lt;anywhere&gt;
 gunzip qt-everywhere-opensource-src-4.8.2.tar.gz
 tar xf qt-everywhere-opensource-src-4.8.2.tar</pre>
<p>This document assumes that the archive is unpacked in the following directory:</p>
<pre class="cpp"> ~/qt-everywhere-opensource-src-4.8.2</pre>
<a name="step-3-building-the-library"></a>
<h2>Step 3: Building the Library</h2>
<p>Before building the <a href="qt-embedded-linux.html">Qt for Embedded Linux</a> 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</p>
<pre class="cpp"> ./configure -embedded -help</pre>
<p>The <a href="configure-options.html">Configuration Options for Qt</a> page gives a brief overview of these.</p>
<p>Note that by default, <a href="qt-embedded-linux.html">Qt for Embedded Linux</a> is configured for installation in the <tt>/usr/local/Trolltech/QtEmbedded-4.8&#x2e;2</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 class="cpp"> cd  ~/qt-everywhere-opensource-src-4.8.2
 ./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><b>Note:</b> If you want to build Qt for Embedded Linux for use with a virtual framebuffer, pass the <tt>-qvfb</tt> option to the <tt>configure</tt> script.</p>
<p>To create the library and compile all the demos, examples, tools, and tutorials, type:</p>
<pre class="cpp"> make</pre>
<p>On some systems the <tt>make</tt> utility is named 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 <a href="qt-embedded-linux.html">Qt for Embedded Linux</a> 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 class="cpp"> 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>
<h2>Step 4: Adjusting the Environment Variables</h2>
<p>In order to use <a href="qt-embedded-linux.html">Qt for Embedded Linux</a>, the <tt>PATH</tt> variable must be extended to locate <tt>qmake</tt>, <tt>moc</tt> and other <a href="qt-embedded-linux.html">Qt for Embedded Linux</a> 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 class="cpp"> PATH=/usr/local/Trolltech/QtEmbedded-4.8.2/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 class="cpp"> setenv PATH /usr/local/Trolltech/QtEmbedded-4.8.2/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/QtEmbedded-4.8&#x2e;2/lib</tt>. Note that on Linux with GCC, this step is not needed.</p>
<a name="step-5-building-the-virtual-framebuffer"></a>
<h2>Step 5: Building the Virtual Framebuffer</h2>
<p>For development and debugging, <a href="qt-embedded-linux.html">Qt for Embedded Linux</a> provides a virtual framebuffer as well as the option of running <a href="qt-embedded-linux.html">Qt for Embedded Linux</a> 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="qvfb.html">The Virtual Framebuffer</a></li>
<li><a href="qt-embedded-vnc.html">The VNC Protocol and Qt for Embedded Linux</a></li>
</ul>
<p>Note that the virtual framebuffer requires a Qt for X11 installation. See <a href="install-x11.html">Installing Qt for X11 Platforms</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</a>. To test that the Linux framebuffer is set up correctly, use the program provided by the <a href="qt-embedded-testingframebuffer.html">Testing the Linux Framebuffer</a> document.</p>
<p>That's all. <a href="qt-embedded-linux.html">Qt for Embedded Linux</a> is now installed.</p>
<table class="generic" width="100%">
 <tr valign="top" class="odd"><td ><b>Customizing the Qt for Embedded Linux 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="fine-tuning-features.html">Fine-Tuning Features in Qt</a></li>
<li><a href="qt-performance.html">Qt Performance Tuning</a></li>
<li><a href="qt-embedded-accel.html">Adding an Accelerated Graphics Driver to Qt for Embedded Linux</a></li>
</ul>
</td></tr>
</table>
</div>
<!-- @@@qt-embedded-install.html -->
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2012 Nokia Corporation and/or its
      subsidiaries. Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>