After you finish to Install QtCreator or you finish to [Compile QtCreator] you have to set it up.
- Ant version: Please check your ant version before using Qt Creator, you should at least have ant 1.8.0. You can check with the ant -version command.
- Java Development Kit: The optimal Java Development Kit for Necessitas is the OpenJDK. You can check with the java -version command if you have it, you can also install it if you don't have the OpenJDK with the sudo apt-get install openjdk-6-jdk command.
Configure Qt Creator
You will just need to set up the Qt in Path to the freshly installed Qt for Android Sdk, and to provide the android Sdk to use.
- Previous step should have installed you Qt Creator for Android, you will find a shortcut on your desktop.
- Run Qt Creator for Android and click on Tools > Options, then jump to the Qt4 tab. Just add the qmake path from the Qt For Android Sdk (/opt/necessitas/Android/<qtversion>/bin/qmake by default).
- Give this Qt version a name (e.g. android-lighthouse-4.8.0).
Figure 1. Set Qt Path for Qt Creator to Qt Sdk for Android
Figure 2. Set Android Sdk, Ndk & Ant Path - With this view you can even manage the AVDs you created (AVD stands for Android Virtual Device)
- Jump back to the Qt4 tab, select the version of Qt you added previously and build the gdb helpers, so that your debugging output will be clean and easily readable for Qt specific constructs.
- Click Apply & Ok and you are done, you can start using the awesome Qt Sdk for Android.
- You can now try: [How to write Qt apps for Android]