Compile Qt framework

BogDan Vatra Ivan Trombley Thomas Senyk blackbird Willy Gardiol
Attachments
Deploy local qt libs.png (67917 bytes)

Requirements


Clone android-lighthouse repository

git clone git://gitorious.org/~taipan/qt/android-lighthouse.git

Prepare & compile 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:

./androidconfigbuild.sh -r /where/you/install/android/ndk -q 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.

./androidconfigbuild.sh -r /where/you/install/android/ndk

After Qt finish the compilation you can add it to QtCreator Qt Versions, check [Setup QtCreator] page for more informations.

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.

Deploy local qt libs


androidconfigbuild.sh accepts the following parameters (you can see all options by adding -help to script parameters):

usage: ./androidconfigbuild.sh options

OPTIONS:

-help Shows this message

-r NDK root. Default "/usr/local/android-ndk-r5"

-h NDK host. Default "linux-x86"

-p 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

-q Qt build options.
0 - don't configure qt (only compile) default
1 - configure qt and compile qt

-d Build type. Default "1"
1 - Compile and link Qt with debugging turned on.
0 - Compile and link Qt using release compilation flags, it also
contains debugging informations.

-c Patch qt.
0 - don't patch qt (used to make the installer)
1 - patch qt (default)

-i Install path. Default "/data/data/eu.licentia.necessitas.ministro/files/qt"