Qt Development on Android. May 10, 2012 Lloyd Moore, President/Owner. Overview. Quick Start Video Building Mobility 1.2 SDK Emulator Quirks Installing On A Device Summary. Quick Start Video .
May 10, 2012
Lloyd Moore, President/Owner
Excellent video on the web showing how to set everything up so we’ll just start with that: http://labs.qt.nokia.com/2011/02/28/necessitas/
Necessitas home: http://sourceforge.net/p/necessitas/home/necessitas/
Project is actively being worked on, and is currently at Alpha 3, update 4 revision level. Last update was Feb 18, 2012. This is a technology you will want to watch, but NOT start any major projects with at this time.
The rest of this presentation is based on Ubuntu 10.10 and some assumptions are made about directories and such, which may vary based on your individual configuration.
Pretty much the same as doing this for the desktop, however directories are different.
#!/bin/bashQTDIR=/opt/necessitas/Android/Qt/480/armeabiPATH=$PATH:$QTDIR/binMANPATH=$QTDIR/doc/man:$MANPATHLD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATHexport QTDIR PATH MANPATH LD_LIBRARY_PATH
./configure -prefix /opt/necessitas/Android/Mobility/480/armeabi/ -modules "location“
ln –s ~/NecessitasQtSDK /opt/necessitas
The Android emulator generally appears to work, however it is a bit slow and this creates some issues.
Start the emulator manually before attempting the test run
Just allow the first run to timeout, wait for the emulator to boot, and do it again
This seems to be better in more recent releases
Again just wait for this to happen the first time and then start the test run again.
The libs appear to be saved even if the emulator is turned off.
Need to turn on client side debugging
Device needs to have a current version of Android on it, not sure specifically what the cut off is at this point but Android 2.2 does NOT work.
Have not found the mechanism to do this yet inside QtCreator, pieces appear to be there but not complete yet.
Standard SDK tool from Android SDK is called Android Debug Bridge
- Will allow you to see attached devices and give the serial number of each
-Also shows emulator(s)
-Prefix with “sudo” if running under Linux to get needed permissions
- Installs your program/package to the actual device
-Will also install a default icon for the application
Full documentation for adb available at: http://developer.android.com/guide/developing/tools/adb.html