TIBeagleBoard: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
==Qt on the BeagleBoard / BeagleBoard-xM==
[[Category:Devices]]


'''Hardware Specs'''<br />
== Qt on the BeagleBoard / BeagleBoard-xM ==


{| class="infotable line"
'''Hardware Specs'''<br />|''. | '''BeagleBoard'''|''. '''BeagleBoard-xM'''|<br />|Architecture|'''ARMv7'''||<br />|RAM|256MB|512MB|<br />|OpenGL|OpenGL ES 2.0||<br />|Qt 5.0 (eglfs/QPA)|with OpenGL ES 2.0||
!
| '''BeagleBoard'''
! '''BeagleBoard-xM'''
|-
| Architecture
| '''ARMv7'''
|
|-
| <span class="caps">RAM</span>
| 256MB
| 512MB
|-
| OpenGL
| OpenGL ES 2.0
|
|-
| Qt 5.0 (eglfs/QPA)
| with OpenGL ES 2.0
|
|}


==Device Information / Hardware==
== Device Information / Hardware ==


The BeagleBoard is an OMAP3530 platform for Open Source Community.
The BeagleBoard is an OMAP3530 platform for Open Source Community.


==Software provided by Texas Instruments==
== Software provided by Texas Instruments ==


Texas Instruments provides the Linux Digital Video Software Development Kit (<span class="caps">DVSDK</span>). You can download it from [http://www.ti.com/tool/linuxdvsdk-omap3530] (registration required).
Texas Instruments provides the Linux Digital Video Software Development Kit (DVSDK). You can download it from [http://www.ti.com/tool/linuxdvsdk-omap3530] (registration required).


Or you can use [http://www.angstrom-distribution.org/ Ångström] ''[angstrom-distribution.org]''. If you would like to build Ångström environment by yourself, you should build &lt;tt&gt;libgles-omap3&lt;/tt&gt;package for OpenGL ES. If you would like to download the <span class="caps">SDK</span> from online builder ( [http://narcissus.angstrom-distribution.org Narcissus] ''[narcissus.angstrom-distribution.org]''), you should check &lt;tt&gt;PowerVR <span class="caps">SGX</span> drivers for OMAP3&lt;/tt&gt;.
Or you can use &quot;Ångström&amp;quot;:http://www.angstrom-distribution.org/. If you would like to build Ångström environment by yourself, you should build &quot;&lt;tt&amp;gt;libgles-omap3&amp;lt;/tt&amp;gt;&quot; package for OpenGL ES. If you would like to download the SDK from online builder ( &quot;Narcissus&amp;quot;:http://narcissus.angstrom-distribution.org), you should check &quot;&lt;tt&amp;gt;PowerVR SGX drivers for OMAP3&amp;lt;/tt&amp;gt;&quot;.


==Preparing environments for Qt==
== Preparing environments for Qt ==


Both of Building Ångström and Using Narcissus are tested on March 20, 2012 on Ubuntu 10.04.
Both of Building Ångström and Using Narcissus are tested on March 20, 2012 on Ubuntu 10.04.


===Building Ångström===
=== Building Ångström ===


Please see also [http://www.angstrom-distribution.org/building-angstrom Building Ångström] ''[angstrom-distribution.org]''.
Please see also &quot;Building Ångström&amp;quot;:http://www.angstrom-distribution.org/building-angstrom.


<span class="caps">PATH</span> of toolchain is build/tmp-angstrom_2010_x-eglibc/sysroots/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi
<code><br />$ git clone git://github.com/Angstrom-distribution/setup-scripts.git<br />$ cd setup-scripts<br />$ MACHINEh1.beagleboard ./oebb.sh config beagleboard<br />$ MACHINEh1.beagleboard ./oebb.sh update<br />$ MACHINEh1.beagleboard ./oebb.sh bitbake virtual/kernel<br />$ MACHINEh1.beagleboard ./oebb.sh bitbake console-image<br />$ MACHINEh1.beagleboard ./oebb.sh bitbake libgles-omap3<br /></code>


<span class="caps">PATH</span> of sysroot is build/tmp-angstrom_2010_x-eglibc/sysroots/beagleboard/
PATH of toolchain is build/tmp-angstrom_2010_x-eglibc/sysroots/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi


It’s tested using below repositories.
PATH of sysroot is build/tmp-angstrom_2010_x-eglibc/sysroots/beagleboard/


'''Tested Repositories'''<br />
It's tested using below repositories.


{| class="infotable line"
'''Tested Repositories'''<br />|''. '''Repository''' |''. '''Branch:Revision'''|<br />| setup-scripts | master:4ac1e500a77eeb418195d11a1d3740e21190c291|<br />| meta-angstrom | master:51ba0dd081af1d7de56ffc9fb318044bc3c7c47e|<br />| meta-initramfs | master:5b3974ed483418b206678acca7414b81bcf749a7|<br />| meta-opie | master:efa3892b20a4ef80274e56e5633ebd62c16f9731|<br />| meta-java | master:e90110b85733f9cdda26861bc29588257173c11c|<br />| meta-ti | master:ed29286f2b16b48206ba788f790c1082c7724bb0|<br />| meta-efikamx | master:2c09a3a780b23448e8a6ca964256ff7f5ccba65d|<br />| meta-nslu2 | master:3d9fc951b05b4df476374b6fc3085ebac7f293ee|<br />| meta-palm | master:947bcbbb3214fdc5f51962a84587600933a75be6|<br />| meta-handheld | master:fa1e6dcb524eb7ed29a6cd971a150d35c31e96e7|<br />| meta-n450 | master:d9132cc66316be45f44beeea6eba734bb3ab337d|<br />| meta | master:d7b8c247227f3cc82f92292407f548927e9fde78|
! '''Repository'''
! '''Branch:Revision'''
|-
| setup-scripts
| master:4ac1e500a77eeb418195d11a1d3740e21190c291
|-
| meta-angstrom
| master:51ba0dd081af1d7de56ffc9fb318044bc3c7c47e
|-
| meta-initramfs
| master:5b3974ed483418b206678acca7414b81bcf749a7
|-
| meta-opie
| master:efa3892b20a4ef80274e56e5633ebd62c16f9731
|-
| meta-java
| master:e90110b85733f9cdda26861bc29588257173c11c
|-
| meta-ti
| master:ed29286f2b16b48206ba788f790c1082c7724bb0
|-
| meta-efikamx
| master:2c09a3a780b23448e8a6ca964256ff7f5ccba65d
|-
| meta-nslu2
| master:3d9fc951b05b4df476374b6fc3085ebac7f293ee
|-
| meta-palm
| master:947bcbbb3214fdc5f51962a84587600933a75be6
|-
| meta-handheld
| master:fa1e6dcb524eb7ed29a6cd971a150d35c31e96e7
|-
| meta-n450
| master:d9132cc66316be45f44beeea6eba734bb3ab337d
|-
| meta
| master:d7b8c247227f3cc82f92292407f548927e9fde78
|}


===Using Narcissus(Online Builder)===
=== Using Narcissus(Online Builder) ===


* Visit to http://narcissus.angstrom-distribution.org.
* Visit to http://narcissus.angstrom-distribution.org.<br />* Select Options. (ex.)<br />'''Base settings:<br />'''; Select the machine you want to build your rootfs image for : &quot;beagleboard&amp;quot;<br />''''''; Choose the complexity of the options below. : &quot;advanced&amp;quot;<br />'''Advanced settings:<br />'''; Select the release you want to base your rootfs image on. : &quot;2011.03&amp;quot;<br />'''; SDK type: &quot;full SDK for generated filesystem&amp;quot;<br />'''; User environment selection: &quot;Console only&amp;quot;<br />'''Additional packages selection:<br />'''; Texas Instruments OMAP3x/AM3x family:<br />'''* Bootloader Files (x-load/u-boot/scripts)<br />'''* PowerVR SGX drivers for OMAP3<br />* Click &quot;Build me!&quot;<br />* Download the SDK and rootfs archives.<br />* extract SDK archive to /
* Select Options. (ex.)


**Base settings:
<code><br />$ tar zxvf Angstrom-2012.03-narcissus-beagleboard-i686-random-f386277f-image-sdk.tar.gz -C /<br /></code>


*; Select the machine you want to build your rootfs image for : “beagleboard”
PATH of toolchain is /usr/local/angstrom/arm/bin/
*; Choose the complexity of the options below. : “advanced”


**Advanced settings:
PATH of sysroot is /usr/local/angstrom/arm/


*; Select the release you want to base your rootfs image on. : “2011.03”
== Qt5 eglfs/QPA ==
*; <span class="caps">SDK</span> type: “full <span class="caps">SDK</span> for generated filesystem”
*; User environment selection: “Console only”


**Additional packages selection:
=== Preparing mkspecs ===


*; Texas Instruments OMAP3x/AM3x family:
<code><br />$ git clone git://gitorious.org/qt-platform-mkspecs/qt-platform-mkspecs.git<br />$ cp -r qt-platform-mkspecs/5.0/linux-omap3430-g+''/ &lt;qtbase&amp;gt;/mkspecs/<br /></code><br />Adjust the '''qmake.conf''' of the *linux-omap3430-g* mkspec to fit your crosscompiler toolchain and sysroot.
*:* Bootloader Files (x-load/u-boot/scripts)
<br />h3. Building Qt
*:* PowerVR <span class="caps">SGX</span> drivers for OMAP3
<br />This will build everything in-source, if you want to build out-of-source execute '''configure''' and '''qmake''' for additional modules from within a separate empty folder.
<br />h4. qtbase
<br /><code><br />$ cd &lt;qtbase&amp;gt;<br />$ ./configure -prefix &lt;your prefix&amp;gt;  -release -make libs -xplatform linux-omap3430-g''+  -opengl es2 -no-xcb<br />$ make install<br />$ make install -C src/plugins/platforms/eglfs<br /></code>


* Click “Build me!”
==== qtjsbackend ====
* Download the <span class="caps">SDK</span> and rootfs archives.
* extract <span class="caps">SDK</span> archive to /


<span class="caps">PATH</span> of toolchain is /usr/local/angstrom/arm/bin/
<code><br />$ &lt;your prefix&amp;gt;/bin/qmake<br />$ make<br />$ make install<br /></code>


<span class="caps">PATH</span> of sysroot is /usr/local/angstrom/arm/
==== qtdeclarative ====


==Qt5 eglfs/QPA==
<code><br />$ &lt;your prefix&amp;gt;/bin/qmake<br />$ make<br />$ make install<br /></code>
 
===Preparing mkspecs===
 
Adjust the '''qmake.conf''' of the '''linux-omap3430-g++''' mkspec to fit your crosscompiler toolchain and sysroot.
 
===Building Qt===
 
This will build everything in-source, if you want to build out-of-source execute '''configure''' and '''qmake''' for additional modules from within a separate empty folder.
 
====qtbase====
 
====qtjsbackend====
 
====qtdeclarative====
 
===Categories:===
 
* [[:Category:Devices|Devices]]

Revision as of 08:54, 24 February 2015


Qt on the BeagleBoard / BeagleBoard-xM

Hardware Specs
|. | BeagleBoard|. BeagleBoard-xM|
|Architecture|ARMv7||
|RAM|256MB|512MB|
|OpenGL|OpenGL ES 2.0||
|Qt 5.0 (eglfs/QPA)|with OpenGL ES 2.0||

Device Information / Hardware

The BeagleBoard is an OMAP3530 platform for Open Source Community.

Software provided by Texas Instruments

Texas Instruments provides the Linux Digital Video Software Development Kit (DVSDK). You can download it from [1] (registration required).

Or you can use "Ångström&quot;:http://www.angstrom-distribution.org/. If you would like to build Ångström environment by yourself, you should build "<tt&gt;libgles-omap3&lt;/tt&gt;" package for OpenGL ES. If you would like to download the SDK from online builder ( "Narcissus&quot;:http://narcissus.angstrom-distribution.org), you should check "<tt&gt;PowerVR SGX drivers for OMAP3&lt;/tt&gt;".

Preparing environments for Qt

Both of Building Ångström and Using Narcissus are tested on March 20, 2012 on Ubuntu 10.04.

Building Ångström

Please see also "Building Ångström&quot;:http://www.angstrom-distribution.org/building-angstrom.

<br />$ git clone git://github.com/Angstrom-distribution/setup-scripts.git<br />$ cd setup-scripts<br />$ MACHINEh1.beagleboard ./oebb.sh config beagleboard<br />$ MACHINEh1.beagleboard ./oebb.sh update<br />$ MACHINEh1.beagleboard ./oebb.sh bitbake virtual/kernel<br />$ MACHINEh1.beagleboard ./oebb.sh bitbake console-image<br />$ MACHINEh1.beagleboard ./oebb.sh bitbake libgles-omap3<br />

PATH of toolchain is build/tmp-angstrom_2010_x-eglibc/sysroots/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi

PATH of sysroot is build/tmp-angstrom_2010_x-eglibc/sysroots/beagleboard/

It's tested using below repositories.

Tested Repositories
|. Repository |. Branch:Revision|
| setup-scripts | master:4ac1e500a77eeb418195d11a1d3740e21190c291|
| meta-angstrom | master:51ba0dd081af1d7de56ffc9fb318044bc3c7c47e|
| meta-initramfs | master:5b3974ed483418b206678acca7414b81bcf749a7|
| meta-opie | master:efa3892b20a4ef80274e56e5633ebd62c16f9731|
| meta-java | master:e90110b85733f9cdda26861bc29588257173c11c|
| meta-ti | master:ed29286f2b16b48206ba788f790c1082c7724bb0|
| meta-efikamx | master:2c09a3a780b23448e8a6ca964256ff7f5ccba65d|
| meta-nslu2 | master:3d9fc951b05b4df476374b6fc3085ebac7f293ee|
| meta-palm | master:947bcbbb3214fdc5f51962a84587600933a75be6|
| meta-handheld | master:fa1e6dcb524eb7ed29a6cd971a150d35c31e96e7|
| meta-n450 | master:d9132cc66316be45f44beeea6eba734bb3ab337d|
| meta | master:d7b8c247227f3cc82f92292407f548927e9fde78|

Using Narcissus(Online Builder)

  • Visit to http://narcissus.angstrom-distribution.org.
    * Select Options. (ex.)
    'Base settings:
    ; Select the machine you want to build your rootfs image for : "beagleboard&quot;
    '
    ; Choose the complexity of the options below. : "advanced&quot;
    Advanced settings:
    ; Select the release you want to base your rootfs image on. : "2011.03&quot;
    ; SDK type: "full SDK for generated filesystem&quot;
    ; User environment selection: "Console only&quot;
    Additional packages selection:
    ; Texas Instruments OMAP3x/AM3x family:
    * Bootloader Files (x-load/u-boot/scripts)
    * PowerVR SGX drivers for OMAP3
    * Click "Build me!"
    * Download the SDK and rootfs archives.
    * extract SDK archive to /
<br />$ tar zxvf Angstrom-2012.03-narcissus-beagleboard-i686-random-f386277f-image-sdk.tar.gz -C /<br />

PATH of toolchain is /usr/local/angstrom/arm/bin/

PATH of sysroot is /usr/local/angstrom/arm/

Qt5 eglfs/QPA

Preparing mkspecs

<br />$ git clone git://gitorious.org/qt-platform-mkspecs/qt-platform-mkspecs.git<br />$ cp -r qt-platform-mkspecs/5.0/linux-omap3430-g+''/ &lt;qtbase&amp;gt;/mkspecs/<br />


Adjust the qmake.conf of the *linux-omap3430-g* mkspec to fit your crosscompiler toolchain and sysroot.


h3. Building Qt
This will build everything in-source, if you want to build out-of-source execute configure and qmake for additional modules from within a separate empty folder.
h4. qtbase


<br />$ cd &lt;qtbase&amp;gt;<br />$ ./configure -prefix &lt;your prefix&amp;gt;  -release -make libs -xplatform linux-omap3430-g''+  -opengl es2 -no-xcb<br />$ make install<br />$ make install -C src/plugins/platforms/eglfs<br />

qtjsbackend

<br />$ &lt;your prefix&amp;gt;/bin/qmake<br />$ make<br />$ make install<br />

qtdeclarative

<br />$ &lt;your prefix&amp;gt;/bin/qmake<br />$ make<br />$ make install<br />