<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wikilegacy.armadeus.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=AdrienD</id>
	<title>ArmadeusWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wikilegacy.armadeus.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=AdrienD"/>
	<link rel="alternate" type="text/html" href="http://wikilegacy.armadeus.com/index.php?title=Special:Contributions/AdrienD"/>
	<updated>2026-04-27T20:08:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>http://wikilegacy.armadeus.com/index.php?title=Java_package&amp;diff=9333</id>
		<title>Java package</title>
		<link rel="alternate" type="text/html" href="http://wikilegacy.armadeus.com/index.php?title=Java_package&amp;diff=9333"/>
		<updated>2011-01-11T14:21:47Z</updated>

		<summary type="html">&lt;p&gt;AdrienD: /* Links */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;How-To install java on the target and run a java program.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Install java packages GNU Classpath and JamVM==&lt;br /&gt;
&lt;br /&gt;
Add the GNU Classpath and JamVM to your target:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 $ make menuconfig   &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Goto the buildroot packages and enable the Java package and from the java sub menu select both GNU classpath and JamVM packages.&lt;br /&gt;
You have to rebuild a new rootfs et update your target&lt;br /&gt;
&lt;br /&gt;
{{Warning| If your java sub menu is empty then you have to select it first from the upper menu.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Run a java programm==&lt;br /&gt;
&lt;br /&gt;
You can run your java program compiled for your host.&lt;br /&gt;
Upload your jar, zip or class files to the target then use the jamvm command to run your program.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;apf&amp;quot;&amp;gt;&lt;br /&gt;
jamvm -jar myprog.jar&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 If your program requires some other libraries, you will have to install these on the target first or build your program to provide your code and these libraries.&lt;br /&gt;
&lt;br /&gt;
==Links==&lt;br /&gt;
&lt;br /&gt;
* [http://jamvm.sourceforge.net/ JamVM website]&lt;br /&gt;
* [http://www.gnu.org/software/classpath/l GNU Classpath website]&lt;/div&gt;</summary>
		<author><name>AdrienD</name></author>
	</entry>
	<entry>
		<id>http://wikilegacy.armadeus.com/index.php?title=Qt/Embedded&amp;diff=9294</id>
		<title>Qt/Embedded</title>
		<link rel="alternate" type="text/html" href="http://wikilegacy.armadeus.com/index.php?title=Qt/Embedded&amp;diff=9294"/>
		<updated>2011-01-04T11:19:36Z</updated>

		<summary type="html">&lt;p&gt;AdrienD: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Instructions to install and use QtEmbedded &amp;amp; Qt virtual frame buffer for Armadeus&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This page will summarize the process to build, install and use Qt Embedded (previously known as Qtopia).&lt;br /&gt;
&lt;br /&gt;
You will also find instructions to setup a Host development environment for simulating applications before deploying them on the target (Qt virtual frame buffer). The Builroot tree must be installed before the installation of Qt.&lt;br /&gt;
&lt;br /&gt;
{{Note| We recommand at least 32 MBytes of RAM if you plan to design and run Qt based GUIs.}}&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
&lt;br /&gt;
From November 20th 2007, Qt Embedded is now fully integrated in Armadeus Buildroot (old procedure is kept [[QtEmbedded Installation|here]]). So to install it you have to:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 [armadeus]$ make menuconfig&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;&lt;br /&gt;
[*] Package Selection for the target  ---&amp;gt;&lt;br /&gt;
  [*] Graphic libraries and applications (graphic/text)  ---&amp;gt;&lt;br /&gt;
    *** other GUIs ***&lt;br /&gt;
    [*]   Qt  ---&amp;gt;&lt;br /&gt;
        --- Qt&lt;br /&gt;
        [ ]   Compile with debug support&lt;br /&gt;
              Library type (Shared library)  ---&amp;gt;&lt;br /&gt;
        [*]   Approve free license&lt;br /&gt;
        [ ]   Compatibility with Qt3&lt;br /&gt;
        [*]   Gui Module&lt;br /&gt;
                Pixel depths  ---&amp;gt;&lt;br /&gt;
                Fonts  ---&amp;gt;&lt;br /&gt;
                freetype2 support (no freetype2 support)  ---&amp;gt;&lt;br /&gt;
        [*]     Enable GIF support&lt;br /&gt;
        [ ]     Enable libmng support&lt;br /&gt;
                JPEG support (System libjpeg)  ---&amp;gt;&lt;br /&gt;
                PNG support (No PNG support)  ---&amp;gt;&lt;br /&gt;
                TIFF support (No TIFF support)  ---&amp;gt;&lt;br /&gt;
              zlib support (Qt zlib)  ---&amp;gt;&lt;br /&gt;
        (arm) The embedded platform we are making Qt for&lt;br /&gt;
        [ ]   SQL Module  ---&amp;gt; &lt;br /&gt;
              Graphics drivers  ---&amp;gt;&lt;br /&gt;
              Mouse drivers  ---&amp;gt;&lt;br /&gt;
              Keyboard drivers  ---&amp;gt;&lt;br /&gt;
        [ ]   Phonon Module&lt;br /&gt;
        [*]   XML Module &lt;br /&gt;
        [ ]     XML Patterns Module&lt;br /&gt;
        [ ]   SVG Module&lt;br /&gt;
        -*-   Network Module&lt;br /&gt;
        [ ]     WebKit Module&lt;br /&gt;
        [ ]   STL support&lt;br /&gt;
        [ ]   Enable OpenSSL support&lt;br /&gt;
        [*]   Script Module&lt;br /&gt;
        [ ]     Script Tools Module&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;(don&#039;t forget Pixel depths submenu options (at least 8 and 16))&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
*If you want touchscreen support:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;&lt;br /&gt;
    Mouse drivers  ---&amp;gt;&lt;br /&gt;
        ...&lt;br /&gt;
        [*] tslib&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
then:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
 [armadeus]$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
1 hour and ~1 GBytes later (depending on your system and the configuration you choosed) your will have the beast. You can then reflash your rootfs.&lt;br /&gt;
&lt;br /&gt;
==Mouse handling==&lt;br /&gt;
&lt;br /&gt;
===USB Mouse===&lt;br /&gt;
&lt;br /&gt;
====Qt configuration====&lt;br /&gt;
&lt;br /&gt;
*If you manually build Qt, you have to add the USB mouse driver option in the configuration:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
$ configure -qt-mouse-pc .......&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*If you let Buildroot build Qt, select the USB mouse option in the configuration menu:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;&lt;br /&gt;
[*] Graphic libraries and applications (graphic/text)  ---&amp;gt;&lt;br /&gt;
    *** other GUIs ***&lt;br /&gt;
    [*]   Qt  ---&amp;gt;&lt;br /&gt;
        --- Qt&lt;br /&gt;
        ...&lt;br /&gt;
              Graphics drivers  ---&amp;gt;&lt;br /&gt;
              Mouse drivers  ---&amp;gt;&lt;br /&gt;
                  [*] pc&lt;br /&gt;
                  [ ] bus&lt;br /&gt;
                  [ ] linuxtp&lt;br /&gt;
                  [ ] yopy&lt;br /&gt;
                  [ ] vr41xx&lt;br /&gt;
                  [ ] tslib&lt;br /&gt;
                  [ ] qvfb&lt;br /&gt;
              Keyboard drivers  ---&amp;gt;&lt;br /&gt;
        ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Then build &amp;amp; install Qt or let Buildroot build.&lt;br /&gt;
&lt;br /&gt;
====Linux configuration====&lt;br /&gt;
&lt;br /&gt;
To use USB mouse, there are some drivers to install in Linux.&lt;br /&gt;
&lt;br /&gt;
*First open the Linux configuration menu:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
[armadeus]$ make linux26-menuconfig&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Select the Mouse interface and PS/2 Mouse drivers in the menu:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;&lt;br /&gt;
Device drivers  ---&amp;gt;&lt;br /&gt;
    ...&lt;br /&gt;
    Input device support  ---&amp;gt;&lt;br /&gt;
        ...&lt;br /&gt;
              *** Userland interfaces ***&lt;br /&gt;
        &amp;lt;*&amp;gt;   Mouse interface &lt;br /&gt;
        [*]     Provide legacy /dev/psaux device&lt;br /&gt;
        (1024)  Horizontal screen resolution&lt;br /&gt;
        (768)   Vertical screen resolution&lt;br /&gt;
        ...&lt;br /&gt;
              *** Input Device Drivers ***&lt;br /&gt;
        [ ]   Keyboards  ---&amp;gt; &lt;br /&gt;
        [*]   Mice  ---&amp;gt; &lt;br /&gt;
            --- Mice&lt;br /&gt;
            &amp;lt;M&amp;gt;   PS/2 mouse&lt;br /&gt;
            [*]     ALPS PS/2 mouse protocol extension&lt;br /&gt;
            [*]     Logitech PS/2++ mouse protocol extension&lt;br /&gt;
            [*]     Synaptics PS/2 mouse protocol extension&lt;br /&gt;
            [*]     IBM Trackpoint PS/2 mouse protocol extension&lt;br /&gt;
            [ ]     Elantech PS/2 protocol extension&lt;br /&gt;
            [ ]     eGalax TouchKit PS/2 protocol extension &lt;br /&gt;
            ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Then clean your Linux installation and rebuild it:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
[armadeus]$ make linux26-clean&lt;br /&gt;
[armadeus]$ make linux26&lt;br /&gt;
[armadeus]$ make&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Embedded system configuration====&lt;br /&gt;
&lt;br /&gt;
*First flash your new kernel and rootfs and boot the system.&lt;br /&gt;
&lt;br /&gt;
*When you connect the USB mouse to the system, a device is created in &#039;&#039;&#039;/dev/input/mouseXX&#039;&#039;&#039;. The touchscreen devices are also created as &#039;&#039;&#039;/dev/input/eventXX&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
*To know which device is the USB mouse one, you have to check in:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
# cat /sys/class/input/mouseXX/device/name&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Then you can tell Qt which driver to connect to the device to make it work:&lt;br /&gt;
**If you want the USB mouse only:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
# export QWS_MOUSE_PROTO=&amp;quot;MouseMan:/dev/input/mouseXX&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
** For multiple pointer inputs, for example if you want to use an USB mouse along with a touchscreen, list all the possible pointers as follow:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
# export QWS_MOUSE_PROTO=&amp;quot;MouseMan:/dev/input/mouseXX Tslib:/dev/input/eventXX&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note| For a dynamic detection of an USB mouse, you can use the automatic driver like this:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
# export QWS_MOUSE_PROTO=&amp;quot;Tslib:/dev/input/eventXX Auto&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
*Then you can launch an application and use your USB mouse with it.&lt;br /&gt;
&lt;br /&gt;
More infos are provided  here: [http://doc.qt.nokia.com/4.6/qt-embedded-pointer.html]&lt;br /&gt;
&lt;br /&gt;
==Test==&lt;br /&gt;
If you want to test it, compile and put some examples in your TFTP directory:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
$ make shell_env&lt;br /&gt;
$ source armadeus_env.sh&lt;br /&gt;
$ cd $ARMADEUS_QT_DIR/examples/widgets/&lt;br /&gt;
$ $ARMADEUS_QT_DIR/bin/qmake widgets.pro&lt;br /&gt;
$ make&lt;br /&gt;
...&lt;br /&gt;
$ cp digitalclock/digitalclock /tftpboot&lt;br /&gt;
$ cp calculator/calculator /tftpboot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and then launch it on your APF (supposed you have a running &amp;amp; calibrated touchscreen):&lt;br /&gt;
&amp;lt;pre class=&amp;quot;apf&amp;quot;&amp;gt;&lt;br /&gt;
# cd /usr/bin/&lt;br /&gt;
# tftp -g -r calculator 192.168.0.xx (Host IP)&lt;br /&gt;
# chmod a+x calculator&lt;br /&gt;
# export QWS_MOUSE_PROTO=&amp;quot;Tslib:/dev/input/event0&amp;quot;&lt;br /&gt;
# &lt;br /&gt;
# ./calculator -qws&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Demo==&lt;br /&gt;
A client/server (with GUI) demo is available under: &#039;&#039;software/demos/ApfDacClientServer/&#039;&#039;. It could be a good starting point to show you how to create standalone Qt applications (will probably require some modifications in &#039;&#039;src/build.sh&#039;&#039; depending on your Host Qt installation).&lt;br /&gt;
&lt;br /&gt;
[[Image:qtdemo.png|center|frame|GUI with widgets taken from http://www.qt-apps.org]]&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
By default Qt libraries are installed in /usr/lib/ directory of your target rootfs.&lt;br /&gt;
&lt;br /&gt;
== How to cross-compile an application using Qt Embedded ==&lt;br /&gt;
&lt;br /&gt;
The first thing you need to do is to define a specific &amp;quot;&#039;&#039;&#039;qmake&#039;&#039;&#039; specs directory&amp;quot; for armadeus. Here for example:&lt;br /&gt;
&lt;br /&gt;
 $ mkdir $APPLICATION_ROOT_DIR/mkspecs/linux-arm-g++&lt;br /&gt;
&lt;br /&gt;
and install the two following files into this new directory:  [http://www.armadeus.com/assos_downloads/qt/qmake.conf qmake.conf] &amp;amp; [http://www.armadeus.com/assos_downloads/qt/qplatformdefs.h qplatformdefs.h]. &#039;&#039;&#039;qmake.conf&#039;&#039;&#039; may be customized if necessary. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then, you must define two typical environment variables : &lt;br /&gt;
&#039;&#039;&#039;QTDIR&#039;&#039;&#039; which defines the Qt installation path &lt;br /&gt;
&amp;amp; &#039;&#039;&#039;QMAKESPEC&#039;&#039;&#039; which defines the path to the configuration files of the &#039;&#039;&#039;qmake&#039;&#039;&#039; tool &lt;br /&gt;
&lt;br /&gt;
Here two typical lines of a Qtopia application building script&lt;br /&gt;
&lt;br /&gt;
 $ export QTDIR=/usr/local/Trolltech/QtEmbedded-4.5.3&lt;br /&gt;
 $ export QMAKESPEC= $APPLICATION_ROOT_DIR/mkspecs/linux-arm-g++&lt;br /&gt;
&lt;br /&gt;
Adapt the &#039;&#039;&#039;QTDIR&#039;&#039;&#039; path to your own installation path and compile your code now, using theses commands:&lt;br /&gt;
&lt;br /&gt;
 # build the makefile with the &#039;&#039;&#039;qmake&#039;&#039;&#039; command (See Trolltech documentation for details about &#039;&#039;&#039;qmake&#039;&#039;&#039;):&lt;br /&gt;
 $QTDIR/bin/qmake -spec my.pro&lt;br /&gt;
 # and now compile the beast... :&lt;br /&gt;
 $ make&lt;br /&gt;
&lt;br /&gt;
Good luck....&lt;br /&gt;
&lt;br /&gt;
== Phonon installation with Qt Embedded ==&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
In order to use Phonon with Qt, first you need to install some other libraries.&lt;br /&gt;
You may even need to cross-compile them, depending on the platform you want to run Qt on.&lt;br /&gt;
&lt;br /&gt;
==== For x86 platform ====&lt;br /&gt;
*You only have to install GStreamer and some plugins with the following command :&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
$ sudo apt-get install libgstreamer0.10-0&lt;br /&gt;
$ sudo apt-get install libgstreamer0.10-dev&lt;br /&gt;
$ sudo apt-get install libgstreamer-plugins-base0.10-0&lt;br /&gt;
$ sudo apt-get install libgstreamer-plugins-base0.10-dev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Note | These packages are available for Linux Ubuntu ; but for other distributions, the names may vary.}}&lt;br /&gt;
&lt;br /&gt;
*To use some audio, image or video format like mp3, mpeg2, png or ogg:&lt;br /&gt;
**First you must install on your system the needed libraries for the particular format you want (like libmpeg2, libpng, libmad...)&lt;br /&gt;
**Then you can install these gstreamer plugins:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
$ sudo apt-get install gstreamer0.10-plugins-good&lt;br /&gt;
$ sudo apt-get install gstreamer0.10-plugins-ugly&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
There also are other plugin packages which you can find the list at :&lt;br /&gt;
[http://gstreamer.freedesktop.org/documentation/ GStreamer]&lt;br /&gt;
&lt;br /&gt;
==== For embedded platform ====&lt;br /&gt;
If you want to build Qt with Phonon for embedded platform, you&#039;ll need to cross-compile the following libraries for the same platform:&lt;br /&gt;
*libxml2 &amp;gt;= 2.7.7&lt;br /&gt;
*libcheck &amp;gt;= 0.9.8&lt;br /&gt;
*liboil &amp;gt;= 0.3.2&lt;br /&gt;
*gstreamer &amp;gt;= 0.10.0&lt;br /&gt;
*gst-plugins-base &amp;gt;= 0.10.0&lt;br /&gt;
&lt;br /&gt;
There are some required libraries that you can compile and install with Buildroot:&lt;br /&gt;
*glib &amp;gt;= 2.16&lt;br /&gt;
*Optional:&lt;br /&gt;
**libpng&lt;br /&gt;
**tiff&lt;br /&gt;
**jpeg&lt;br /&gt;
**...&lt;br /&gt;
&lt;br /&gt;
For additional audio and video formats, you have to cross-compile the corresponding libraries and then the following gstreamer&#039;s plugins :&lt;br /&gt;
*gst-plugins-good &amp;gt;= 0.10.0&lt;br /&gt;
*gst-plugins-ugly &amp;gt;= 0.10.0&lt;br /&gt;
&lt;br /&gt;
=== Cross-compiling libraries ===&lt;br /&gt;
*First thing to do is to set the PKG_CONFIG_PATH environment variable to the directories containing your embedded libraries&#039; pkgconfig files.&lt;br /&gt;
&lt;br /&gt;
*To see what environment variable you can modify to impact the library cross-compiling, enter the command :&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
$ ./configure --help&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then create a file to define all required environment variables for the cross-compiling. &lt;br /&gt;
For instance for glib2:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;config&amp;quot;&amp;gt;&lt;br /&gt;
$ export CC=arm-linux-gcc&lt;br /&gt;
$ export CXX=arm-linux-g++&lt;br /&gt;
$ export CFLAGS=&amp;quot;-I/usr/local/libxml2/include/libxml2&amp;quot;&lt;br /&gt;
$ export LDFLAGS=-L/usr/local/libxml2/lib&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
And then, to create your environment, type :&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
$ source ENVIRONMENT_FILE&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Finally you can configure your library like this:&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
$ ./configure --build=x86-linux --host=YOUR_EMBEDDED_PLATFORM --prefix==YOUR_INSTALLATION_PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Then build and install the library.&lt;br /&gt;
&lt;br /&gt;
=== Build Qt ===&lt;br /&gt;
&lt;br /&gt;
==== For x86 platform ====&lt;br /&gt;
The PKG_CONFIG_PATH and pkgconfig files must be correctly set to point toward gstreamer&#039;s and glib&#039;s x86 libraries and headers.&lt;br /&gt;
&lt;br /&gt;
All you need to do then is to configure Qt with the phonon option and its backend :&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
$ ./configure -embedded x86 -debug -no-cups -no-nis -depths 16,18,24 -no-qt3support -qvfb -phonon -phonon-backend -prefix YOUR_INSTALLATION_PATH -confirm-license&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then build and install Qt and you will be able to use Phonon on your x86 platform.&lt;br /&gt;
&lt;br /&gt;
==== For embedded platform ====&lt;br /&gt;
The PKG_CONFIG_PATH and pkgconfig files must be correctly set to point toward gstreamer&#039;s and glib&#039;s embedded libraries and headers.&lt;br /&gt;
&lt;br /&gt;
Then you can configure Qt with glib, phonon and its backend and by adding the pkgconfig option :&lt;br /&gt;
&amp;lt;pre class=&amp;quot;host&amp;quot;&amp;gt;&lt;br /&gt;
$ ./configure -embedded YOUR_EMBEDDED_PLATFORM -xplatform YOUR_PLATFORM_MKSPECS -depths 16,18 -no-cups -no-nis -no-qt3support -phonon -phonon-backend -glib -prefix YOUR_INSTALLATION_PATH -force-pkg-config&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note | You may need to give the cross-compiler the paths toward gstreamer&#039;s and glib&#039;s libraries and headers as configuration options.}}&lt;br /&gt;
&lt;br /&gt;
=== Possible problems encountered ===&lt;br /&gt;
During Qt Embedded or prerequisited cross-compiling, you may get the following errors :&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Impossible constraint in &#039;asm&#039;&#039;&#039;:&lt;br /&gt;
It means you include the wrong headers needed by the library you compile in CFLAGS or CXXFLAGS. Do not include -I/usr/include or non-cross-compiled headers.&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;Cannot run test program&#039;&#039;:&lt;br /&gt;
Your best shot is to look in configure.ac (or configure.in) and see if&lt;br /&gt;
there&#039;s a &amp;quot;cache variable&amp;quot; for that test. If so, you can set that&lt;br /&gt;
variable in your environment, to the expected answer for your target,&lt;br /&gt;
before running configure, and it should bypass the actual test.&lt;br /&gt;
If there&#039;s no cache variable, you&#039;ll need to modify configure.ac (or&lt;br /&gt;
configure.in) to set the variable manually, and rebuild configure.&lt;br /&gt;
&lt;br /&gt;
*Do not forget to set your PKG_CONFIG_PATH variable to point toward the directory containing your embedded library pkgconfig files. By default, the x86 pkgconfig files are checked and so, errors occur.&lt;br /&gt;
&lt;br /&gt;
*When installing libraries : &#039;&#039;arm-linux-g++: command not found&#039;&#039;&lt;br /&gt;
You have to directly export the PATH toward your cross-compiler in the file libtool to get through this error.&lt;br /&gt;
&lt;br /&gt;
*In gst-plugins-base, delete manually the compilation of &#039;&#039;icles&#039;&#039; in the file tests/Makefile. The lines to delete are l.377 and l.382.&lt;br /&gt;
&lt;br /&gt;
== Work in progress / to do list ==&lt;br /&gt;
&lt;br /&gt;
* Customization of the Qt libs to have a custom Qt/E library well designed for Armadeus usage.&lt;br /&gt;
&lt;br /&gt;
==Licenses==&lt;br /&gt;
Since Qt 4.5.2 new licensing schemes are available: http://www.qtsoftware.com/products/licensing/licensing#qt-gnu-lgpl-v&lt;br /&gt;
&lt;br /&gt;
== Links ==&lt;br /&gt;
* [[PyQt]]&lt;br /&gt;
* http://www.trolltech.com&lt;br /&gt;
* [http://lists.trolltech.com/qt-embedded-interest/2003-11/msg00007.html 16 colors framebuffer with Qt]&lt;br /&gt;
* [http://doc.trolltech.com/4.2/qtopiacore-envvars.html Qtopia Core Environment Variables]&lt;br /&gt;
* [http://thelins.se/learnqt/category/embedded-linux/ Tutorial on Qt setup for embedded devt]&lt;br /&gt;
&lt;br /&gt;
[[Category: Qt]]&lt;br /&gt;
[[Category: Software]]&lt;br /&gt;
[[Category: Graphical User Interface]]&lt;/div&gt;</summary>
		<author><name>AdrienD</name></author>
	</entry>
</feed>