N9: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
=Logistics=
[[Category:Devices]]


Qt 5’s base functionality runs on the N9 out of the box. Qt builds with full OpenGL ES 2 support. Sensors, multimedia and additional modules will almost certainly require additional work if you intend to use this functionality. You are going to be using the <span class="caps">XCB</span> backend which replaces the legacy xlib backend implicitly used in the Qt 4 series.
= Logistics =


=Caveats (Warning!? Achtung! Ulv!)=
Qt 5's base functionality runs on the N9 out of the box. Qt builds with full OpenGL ES 2 support. Sensors, multimedia and additional modules will almost certainly require additional work if you intend to use this functionality. You are going to be using the XCB backend which replaces the legacy xlib backend implicitly used in the Qt 4 series.
 
= Caveats (Warning[[Image:? Achtung|? Achtung]] Ulv!) =


Overriding system libraries on your N9 will result in tragedy. You have been warned, and although your should be able to avert disaster. If you misstep you might need to cold flash your device.
Overriding system libraries on your N9 will result in tragedy. You have been warned, and although your should be able to avert disaster. If you misstep you might need to cold flash your device.


=Requirements=
= Requirements =
 
==Tools==
 
<nowiki>*Qt Creator Harmattan support</nowiki><br /> *Harmattan Platform <span class="caps">SDK</span> for xcb (or swipe it from the webkit dudes .deb packages)
 
==Build dependencies==
 
The xcb libraries are not shipped as part of the standard Harmattan <span class="caps">SDK</span>. You can get these via installing the platform <span class="caps">SDK</span> and using apt within scratchbox to install the required packages. The missing libraries include:
 
libxcb-atom.so<br /> libxcb-event.so<br /> libxcb-icccm.so<br /> libxcb-image.so<br /> libxcb-keysyms.so<br /> libxcb-property.so<br /> libxcb-sync.so<br /> libxcb-xfixes.so
 
==Toolchain==
 
The N9 requires a hardfp toolchain. The Harmattan toolchain shipped with the Nokia Qt <span class="caps">SDK</span> suffices, and just needs to be explicitly passed as an additional compiler argument.
 
==Configure==
 
=External resources=
 
* Qt Labs posting [http://labs.qt.nokia.com/2011/11/21/testing-qtquick-2-on-your-n9n950/]
* Qt Webkit teams documentation [http://trac.webkit.org/wiki/BuildingQt5OnHarmattan]


===Categories:===
== Tools ==


* [[:Category:Devices|Devices]]
*Qt Creator Harmattan support<br />'''Harmattan Platform SDK for xcb (or swipe it from the webkit dudes .deb packages)
<br />h2. Build dependencies
<br />The xcb libraries are not shipped as part of the standard Harmattan SDK. You can get these via installing the platform SDK and using apt within scratchbox to install the required packages. The missing libraries include:
<br />libxcb-atom.so<br />libxcb-event.so<br />libxcb-icccm.so<br />libxcb-image.so<br />libxcb-keysyms.so<br />libxcb-property.so<br />libxcb-sync.so<br />libxcb-xfixes.so
<br />h2. Toolchain
<br />The N9 requires a hardfp toolchain. The Harmattan toolchain shipped with the Nokia Qt SDK suffices, and just needs to be explicitly passed as an additional compiler argument.
<br />h2. Configure
<br /><code>./configure -release -make libs -prefix /opt/dev/qt-qpa-5-harmattan -device linux-harmattan-g++ <s>device-option CROSS_COMPILE=&lt;sdk_path&amp;gt;/Madde/toolchains/arm-2009q3-67-arm-none-linux-gnueabi-x86_64-unknown-linux-gnu/arm-2009q3-67/bin/arm-none-linux-gnueabi</s> -sysroot /scratchbox/users/&amp;lt;user&amp;gt;/targets/HARMATTAN_ARMEL<br /></code>
<br />h1. External resources
<br />''' Qt Labs posting [http://labs.qt.nokia.com/2011/11/21/testing-qtquick-2-on-your-n9n950/]<br />* Qt Webkit teams documentation [http://trac.webkit.org/wiki/BuildingQt5OnHarmattan]

Revision as of 10:22, 24 February 2015


Logistics

Qt 5's base functionality runs on the N9 out of the box. Qt builds with full OpenGL ES 2 support. Sensors, multimedia and additional modules will almost certainly require additional work if you intend to use this functionality. You are going to be using the XCB backend which replaces the legacy xlib backend implicitly used in the Qt 4 series.

Caveats (Warning? Achtung Ulv!)

Overriding system libraries on your N9 will result in tragedy. You have been warned, and although your should be able to avert disaster. If you misstep you might need to cold flash your device.

Requirements

Tools

  • Qt Creator Harmattan support
    Harmattan Platform SDK for xcb (or swipe it from the webkit dudes .deb packages)


h2. Build dependencies
The xcb libraries are not shipped as part of the standard Harmattan SDK. You can get these via installing the platform SDK and using apt within scratchbox to install the required packages. The missing libraries include:
libxcb-atom.so
libxcb-event.so
libxcb-icccm.so
libxcb-image.so
libxcb-keysyms.so
libxcb-property.so
libxcb-sync.so
libxcb-xfixes.so
h2. Toolchain
The N9 requires a hardfp toolchain. The Harmattan toolchain shipped with the Nokia Qt SDK suffices, and just needs to be explicitly passed as an additional compiler argument.
h2. Configure


./configure -release -make libs -prefix /opt/dev/qt-qpa-5-harmattan -device linux-harmattan-g++ <s>device-option CROSS_COMPILE=&lt;sdk_path&amp;gt;/Madde/toolchains/arm-2009q3-67-arm-none-linux-gnueabi-x86_64-unknown-linux-gnu/arm-2009q3-67/bin/arm-none-linux-gnueabi</s> -sysroot /scratchbox/users/&amp;lt;user&amp;gt;/targets/HARMATTAN_ARMEL<br />


h1. External resources
Qt Labs posting [1]
* Qt Webkit teams documentation [2]