×
Namespaces

Variants
Actions
(Redirected from Qt apps on NokiaX)

Qt apps on Nokia X

From Nokia Developer Wiki
Jump to: navigation, search

Note.pngNote: This article was a winning entry in the Nokia X Wiki Challenge 2014Q1

This article explains how you can easily develop applications for NokiaX using Qt

Article Metadata
Tested with
Devices(s): Nokia X, Nokia X+, Nokia XL
Dependencies: Qt5.2.1 with Android components
Article
Created: tbr23 (17 Apr 2014)
Last edited: BuildNokia (02 Jun 2014)

Contents

Introduction

It's a pleasant surprise how easy it is to get the Qt SDK working with Nokia X, at least as tried on Linux. Other users report successful setup on OS X and Windows following the instructions below as general guidance.

Summary

The Qt documentation does a mostly good job at explaining its side of the setup: http://qt-project.org/doc/qt-5/androidgs.html

Note though, that it does not tell you which targets to install using the SDK Updater. At the time of writing this is API Level 16, in the case of Nokia X (aka Android 4.1.2).

Android SDK target selection.png

Make sure you install both the Java JRE and the JDK. To do this on Ubuntu 14.04, run:

sudo apt-get install openjdk-7-jdk openjdk-7-jre ant

In Qt Creator you will need to fill in some paths. You can use the example below for guidance.

Qt Creator Android options.png

You can either create a new QML project in QtCreator, or you can download the File:Hello-world.tar.gz, already configured for Nokia X.

If you create a project from scratch using the wizard, make sure you select the right kit:

New-qml-app-kit-selection.png

Once you create the project, go to the project config and make sure that the API level is configured correctly for Nokia X ("android-16", as of 2014-04-13).

Build-api-level-config.png

Deploying to your Nokia X

Make sure "adb devices" lists your Nokia, when it's in developer mode and connected over USB. If not add "0x0421" to your adb_usb.ini and restart the adb server.

If you got that right, after pressing the green "run" button on the bottom left you should be presented with this dialogue: Build-deploy-dialogue.png

Version Hint

Windows Phone: [[Category:Windows Phone]]
[[Category:Windows Phone 7.5]]
[[Category:Windows Phone 8]]

Nokia Asha: [[Category:Nokia Asha]]
[[Category:Nokia Asha Platform 1.0]]

Series 40: [[Category:Series 40]]
[[Category:Series 40 1st Edition]] [[Category:Series 40 2nd Edition]]
[[Category:Series 40 3rd Edition (initial release)]] [[Category:Series 40 3rd Edition FP1]] [[Category:Series 40 3rd Edition FP2]]
[[Category:Series 40 5th Edition (initial release)]] [[Category:Series 40 5th Edition FP1]]
[[Category:Series 40 6th Edition (initial release)]] [[Category:Series 40 6th Edition FP1]] [[Category:Series 40 Developer Platform 1.0]] [[Category:Series 40 Developer Platform 1.1]] [[Category:Series 40 Developer Platform 2.0]]

Symbian: [[Category:Symbian]]
[[Category:S60 1st Edition]] [[Category:S60 2nd Edition (initial release)]] [[Category:S60 2nd Edition FP1]] [[Category:S60 2nd Edition FP2]] [[Category:S60 2nd Edition FP3]]
[[Category:S60 3rd Edition (initial release)]] [[Category:S60 3rd Edition FP1]] [[Category:S60 3rd Edition FP2]]
[[Category:S60 5th Edition]]
[[Category:Symbian^3]] [[Category:Symbian Anna]] [[Category:Nokia Belle]]

This page was last modified on 2 June 2014, at 23:50.
169 page views in the last 30 days.
×