git clone git://anongit.kde.org/android-qt.git cd android-qt
cd /path/to/cloneOfandroid-lighthouse/, use androidconfigbuild.sh to configure and compile Qt framework. Use the following command if you configure/compile Qt for the first time:
./android/androidconfigbuild.sh -n /where/you/install/android/ndk -q 1 -d 1
Previous command will cleanup any older configuration, and then will configure & build (for debugging) Qt framework, it will take a while until everything is finished.
If you want ONLY to compile Qt (you MUST have it previously configured) you should use androidconfigbuild.sh without -q 1 option.
./android/androidconfigbuild.sh -n /where/you/install/android/ndk
After Qt finish the compilation you can add it to QtCreator Qt Versions, check [Setup QtCreator] page for more information.
To complete the job, you have to push qt libs to your device.
QtCreator can do this job for you, if you check Deploy local qt libs option (Projects->Android (run tab)->Deploy configurations->Deploy local qt libs) check the picture below.

androidconfigbuild.sh accepts the following parameters (you can see all options by adding -p to script parameters):
usage: ./androidconfigbuild.sh options
OPTIONS:
-p Shows this message
-c Clean qt
-q Qt build options
0 - don't configure qt (only compile) default
1 - configure qt and compile qt
-b Build qt
0 - don't build
1 - build
-s Install qt
0 - don't install
1 - install
-n NDK root. Default "/usr/local/android-ndk-r5b"
-o NDK host. Default "linux-x86"
-f NDK toolchain prefix. Default "arm-linux-androideabi"
-v NDK toolchain version. Default "4.4.3"
-a Target cpu architecture. Default "armeabi"
armeabi - tune for android arm v5
armeabi-v7a - tune for android arm v7
Optional name suffix: v5/v7
-h Shared
0 - Build static version of qt
1 - Build shared version of qt
-x Exceptions options
0 - don't use exceptions (you won't be able to build qtcreator with such a qt though)
1 - use exceptions
Optional name suffix: Xc/Nx
-d Build debug qt
Optional name suffix: D/R/DaR
-r Build release qt
Optional name suffix: R/D/DaR
-m Modify install path according to passed in options (name suffixes applied in above listed order).
-i Install path. Default "/home/your-name/path/to/android-lighthouse"
Wiki: Setup QtCreator
Wiki: Setup Android SDK
Wiki: How to install Necessitas SDK
Wiki: Home
Wiki: necessitas
Anonymous
2011-02-26
Hello,
Thanks for your hard Works!
Will this work from windows using cygwin?
If not is there a precompiled windows version?
Sorry, I dont have a linux OS, I am linux illiterate! :)
Thanks,
Jon
daminetreg
2011-03-02
Currently only Linux is supported as a development platform, you can virtualize ubuntu easily with VirtualBox (you just have to click next many times) and you can use Virtual Box Guest Additions to use the seamless integration mode where Ubuntu windows are being drawn aside normal Windows windows.
Ross Bencina
2011-03-11
I gotthe frameworks to build on Windows with cygwin. No Creator yet though. I agree that Linux is a better choice, or wait until someone gets it building with mingw. Info is here:
Paul Shchurov
2011-07-22
Hello. Thank you for your project.
Can I compile Qt for static linking in my application?
How I can do it?
guanlaoda
2012-03-23