[190] | 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/qws.doc:36 -->
|
---|
| 3 | <html>
|
---|
| 4 | <head>
|
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
| 6 | <title>Installing Qt/Embedded</title>
|
---|
| 7 | <style type="text/css"><!--
|
---|
| 8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
| 9 | a:link { color: #004faf; text-decoration: none }
|
---|
| 10 | a:visited { color: #672967; text-decoration: none }
|
---|
| 11 | body { 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 Classes</font></a>
|
---|
| 23 | | <a href="mainclasses.html">
|
---|
| 24 | <font color="#004faf">Main 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 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/Embedded</h1>
|
---|
| 33 |
|
---|
| 34 |
|
---|
| 35 |
|
---|
| 36 | <p> This installation procedure is written for Linux. It may need
|
---|
| 37 | to be modified for other platforms.
|
---|
| 38 | <p> <ol type=1>
|
---|
| 39 | <li> Unpack the archive if you have not done so already
|
---|
| 40 | <p> <pre>
|
---|
| 41 | cd <anywhere>
|
---|
| 42 | gunzip qt-embedded-commercial-VERSION.tar.gz # uncompress the archive
|
---|
| 43 | tar xf qt-embedded-commercial-VERSION.tar # unpack it
|
---|
| 44 | </pre>
|
---|
| 45 |
|
---|
| 46 | Replace <tt>VERSION</tt> with the Qt/Embedded version number throughout.
|
---|
| 47 | <p> This document assumes that the archive is installed as <tt>~/qt-embedded-commercial-VERSION</tt>.
|
---|
| 48 | <li> Compile the Qt/Embedded library and examples.
|
---|
| 49 | <p> <pre>
|
---|
| 50 | cd ~/qt-embedded-commercial-VERSION
|
---|
| 51 | export QTDIR=~/qt-embedded-commercial-VERSION
|
---|
| 52 | ./configure
|
---|
| 53 | make
|
---|
| 54 | </pre>
|
---|
| 55 |
|
---|
| 56 | <p> The configuration system is designed to allow platform-specific options
|
---|
| 57 | to be added, but in general all Linux systems which have framebuffer
|
---|
| 58 | support can use the "linux-generic-g++" platform.
|
---|
| 59 | The configuration system also supports cross-compilers:
|
---|
| 60 | to build on Linux/x86 for the Linux/MIPSEL target, you would use:
|
---|
| 61 | <pre>
|
---|
| 62 | ./configure -embedded mips
|
---|
| 63 | </pre>
|
---|
| 64 |
|
---|
| 65 | <p> Only a small number of configurations are predefined.
|
---|
| 66 | You can create your own custom configuration by adding new files
|
---|
| 67 | to the <tt>mkspecs/qws/</tt> directory. Use existing similar configurations
|
---|
| 68 | as a starting point.
|
---|
| 69 | <p> <b>Note</b>: Due to a bug in the configure script, cross-compiling on
|
---|
| 70 | a little-endian machine (e.g. x86) for a big-endian processor
|
---|
| 71 | (e.g. PowerPC) will use the host's endianness instead of the
|
---|
| 72 | target's. Workaround: after running configure, and before running
|
---|
| 73 | make, edit <tt>$QTDIR/include/qconfig.h</tt> and change the definition of
|
---|
| 74 | <tt>Q_BYTE_ORDER</tt>.
|
---|
| 75 | <p> <li> Enable framebuffer support.
|
---|
| 76 | <p> You may need to recompile your kernel to enable the framebuffer.
|
---|
| 77 | This document does not describe how to do this; the
|
---|
| 78 | <a href="emb-framebuffer-howto.html">Framebuffer HOWTO page</a>
|
---|
| 79 | contains a short description. (You should see
|
---|
| 80 | a penguin logo at boot time when the frame buffer is enabled.)
|
---|
| 81 | <p> For Matrox G100/G200/G400 use the matrox frame buffer driver.
|
---|
| 82 | <p> For NVidia TNT cards use the nvidia frame buffer driver.
|
---|
| 83 | <p> For Mach64 and most other cards, use the vesafb driver.
|
---|
| 84 | <p> Note that some cards are only supported in VGA16 mode, this will
|
---|
| 85 | not work with the current version of Qt/Embedded, since VGA/16 is
|
---|
| 86 | not yet supported. You may need to upgrade your kernel, or even
|
---|
| 87 | switch to an experimental kernel.
|
---|
| 88 | <p> The frame buffer must also be enabled with a boot parameter. See
|
---|
| 89 | <tt>/usr/src/linux/Documentation/fb</tt> for details.
|
---|
| 90 | <p> The <tt>fbset</tt> program, which should be included in Linux distributions,
|
---|
| 91 | may be used to switch video modes without rebooting the system. The
|
---|
| 92 | video mode active when the server is started will be used. (8-bit
|
---|
| 93 | modes are still experimental.) <b>Note</b>: <tt>fbset</tt> does not work
|
---|
| 94 | with the vesafb driver.
|
---|
| 95 | <p> <li> Change permissions.
|
---|
| 96 | <p> To run Qt/Embedded, you need write access to the framebuffer device
|
---|
| 97 | <tt>/dev/fb0</tt>.
|
---|
| 98 | <p> You also need read access to the mouse device. (Note that
|
---|
| 99 | <tt>/dev/mouse</tt> is normally a symbolic link; the actual mouse device
|
---|
| 100 | must be readable.)
|
---|
| 101 | <p> <li> How to run the demonstration program.
|
---|
| 102 | <p> Log into a virtual console and do this:
|
---|
| 103 | <p> <pre>
|
---|
| 104 | cd ~/qt-embedded-commercial-VERSION/examples/launcher
|
---|
| 105 | ./start-demo
|
---|
| 106 | </pre>
|
---|
| 107 |
|
---|
| 108 | <p> <li> Miscellaneous troubleshooting and known bugs.
|
---|
| 109 | <p> To kill gpm, run the following command as root:
|
---|
| 110 | <p> <pre>
|
---|
| 111 | gpm -k
|
---|
| 112 | </pre>
|
---|
| 113 |
|
---|
| 114 | <p> In some cases, if the server does not work, it will work when run as root.
|
---|
| 115 | <p> Show processes using the framebuffer:
|
---|
| 116 | <p> <pre>
|
---|
| 117 | fuser -v /dev/fb0
|
---|
| 118 | </pre>
|
---|
| 119 |
|
---|
| 120 | <p> Kill such processes:
|
---|
| 121 | <pre>
|
---|
| 122 | fuser -vk /dev/fb0
|
---|
| 123 | </pre>
|
---|
| 124 |
|
---|
| 125 | or harsher:
|
---|
| 126 | <pre>
|
---|
| 127 | fuser -k -KILL /dev/fb0
|
---|
| 128 | </pre>
|
---|
| 129 |
|
---|
| 130 | <p> Show existing semaphores:
|
---|
| 131 | <pre>
|
---|
| 132 | ipcs
|
---|
| 133 | </pre>
|
---|
| 134 |
|
---|
| 135 | <p> Remove semaphores:
|
---|
| 136 | <pre>
|
---|
| 137 | ipcrm
|
---|
| 138 | </pre>
|
---|
| 139 |
|
---|
| 140 | <p> The communication between client and server is done through the
|
---|
| 141 | named pipe <tt>/tmp/qtembedded-username/QtEmbedded-0</tt>; sometimes it may need to be deleted
|
---|
| 142 | (e.g. if you run Qt/Embedded with root privileges then later as an unprivileged user).
|
---|
| 143 | <p> <li> Customization.
|
---|
| 144 | <p> The Qt/Embedded library can be reduced in size by
|
---|
| 145 | <a href="emb-features.html">removing unnecessary features</a>.
|
---|
| 146 | <p> <li> This document shows how to use Qt/Embedded with the Linux framebuffer. For
|
---|
| 147 | development and debugging purposes it is often easier to use the <a href="emb-qvfb.html">Qt/Embedded virtual framebuffer</a> instead.
|
---|
| 148 | <p> </ol>
|
---|
| 149 | <p>
|
---|
| 150 | <!-- eof -->
|
---|
| 151 | <p><address><hr><div align=center>
|
---|
| 152 | <table width=100% cellspacing=0 border=0><tr>
|
---|
| 153 | <td>Copyright © 2007
|
---|
| 154 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
| 155 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
| 156 | </table></div></address></body>
|
---|
| 157 | </html>
|
---|