To start developing C++ Qt Powered application for android you’ll have to do only small configuration of the Qt Creator Integration for Android.
The Qt Sdk for Android and the Android integration plugin is provided to you through a simple three-click install wizard, as the image of the official Qt Sdk, this will install in a folder of your choice anything you needs to start writing Qt Application for Android.
There are two ways to get the necessitas sdk, you can use the three-click install binary to be ready in five minutes to start developing for Android, and you can also clone the git repositories of android-lighthouse and android-qt-creator and compile them yourself. Both ways are explained in the following chapters.
Qt Application on Android are compiled as shared objects which are being loaded by a Java Launcher, which is generated by the necessitas sdk, this is totally transparent for the user. Please note that Qt is composed of libs referencing each others and this is only supported by Android versions greater than Android 1.6.
You can get a first class Qt for Android sdk up and running in five minutes.
The following instructions are being provided for Linux.
Go on the necessitas project home page, find and download the last stable binary version: click here.
You can get more informations about manual installation through git cloning of the project on the following pages : [Compile Qt framework], [Compile QtCreator].
In order to start developing you have to [Setup QtCreator] and then you could take a look at [How to write Qt apps for Android] to be able to write your first application with Qt for Android.
Wiki: Compile Qt framework
Wiki: Compile QtCreator
Wiki: Setup QtCreator
Wiki: How to write Qt apps for Android
Wiki: Home
Anonymous
2011-02-23
Download link does not work https://sourceforge.net/p/necessitas/home/
Anonymous
2011-02-23
it does, just go to Downloads section
daminetreg
2011-03-02
It's up to you to pick the version you want! :)
daminetreg
2011-02-24
Thanks Anonymous Coward, I fixed it.
Anonymous
2011-02-24
Is it an alpha o a stable release?
daminetreg
2011-03-02
This is currently (2 March 2011) an alpha release.
Anonymous
2011-03-01
Sadly, there's no Windows versions.
Anonymous
2011-03-02
I followed the 5 minute guide and installed the binary version but I am having a problem getting Necessitas Qt Creator configured. Under the Tools->Options, the Android tab set up correctly but under the Qt4 tab where I entered the path for qmake which is at /opt/necessitas/Android/4.7.60/bin/qmake, there is an error message: "This QtVersion has a unknown toolchain". Would you have any ideas what is wrong? Thanks.
daminetreg
2011-03-02
I think the install didn't copy all files, which version of the installer did you use?
Anonymous
2011-03-02
I tried both which had the same issue, after some tracking down it looks like the mkspec was not being correctly pointed to. However, when I tried to create a Qt-android project and clicked on the projects-view tab, I did not see any of the android features. I also got errors when trying to build the gdb helpers. I guess something else did not install correctly. Is there a preferred linux platform on which this might have the least problems installing on?
Anonymous
2011-03-02
I install it, but the path of qmake, android sdk & ndk, is empty in QCreator's setting.
is it a bug? or it's necessary to do it manual.
I manual set the qmake path, but I didn't found the android sdk & ndk
daminetreg
2011-03-02
AD5XJ KEN
2011-03-19
I have the Qt 4.7.2 SDK already in /usr/lib by default from Ubuntu. Will I have to change the system or environment variables to accommodate both?
Luis Saavedra
2011-05-21
please: where I can find the md5sum of binaries?
Luis Saavedra
2011-05-21
md5sum:
fcb232282c37a74be543345d0d583a3d necessitas-0.1.1-Linux-x86-Install
Wimpies
2011-06-09
I installed everything, am able to compile for the emulator, run the emulator, I see packages being downloaded ... but when I try to run the app (A simple hello world) I get
Starting remote process ...
I/Qt JAVA ( 346): surfaceChanged: 480,762
D/dalvikvm( 346): Trying to load lib /data/data/eu.licentia.necessitas.ministro/files/qt/data/data/eu.licentia.necessitas.ministro/files/qt/lib/libQtCore.so 0x40514830
D/dalvikvm( 346): Added shared lib /data/data/eu.licentia.necessitas.ministro/files/qt/data/data/eu.licentia.necessitas.ministro/files/qt/lib/libQtCore.so 0x40514830
D/dalvikvm( 346): No JNI_OnLoad found in /data/data/eu.licentia.necessitas.ministro/files/qt/data/data/eu.licentia.necessitas.ministro/files/qt/lib/libQtCore.so 0x40514830, skipping init
D/dalvikvm( 346): Trying to load lib /data/data/eu.licentia.necessitas.ministro/files/qt/lib/libQtGui.so 0x40514830
'eu.licentia.necessitas.industrius.example.hhhh' died
when I try to run in debug mode I get ...
Starting remote process ...
Can't find eu.licentia.necessitas.industrius.example.hhhh precess
Debugging starts
Debugging has failed
Debugging has finished
king
2011-06-16
I followed the 5 minute guide and installed the binary version but I am having a problem getting Necessitas Qt Creator configured. Under the Tools->Options, the Android tab set up correctly but under the Qt4 tab where I entered the path for qmake which is at /opt/necessitas/Android/4.7.60/bin/qmake, there is an error message: "QT version is not properly installed, please run make install" on Windows ". because of the error ,when i want to create a new qt quick project ,there can't check the QT version .Would you have any ideas what is wrong? and help me to sovel the probem.Thanks.
Ivan Trombley
2011-06-25
I'm trying to install necessitas-0.2-online-sdk-installer-linux in Ubuntu 11.04. The installer's splash screen is shown with the message "Retrieving information from remote installation sources..." and then it crashes with a segmentation fault.
Giuliano Catrambone
2011-06-26
Hi guys,
I download the last necessitas and setup it in a custom directory.
I opened a project already present in:
.../necessitas/QtCreator/share/qtcreator/templates/mobileapp/app.pro
and in the terminal where I launched qtcreator I got:
sh: /usr/local/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: No such file or directory
Here the problems are:
1. I have r5c and NOT r5b
2. I did not install android-ndk-r5c in /usr/local but in a different
custom directory
I also tried to run the app as Android but I got the following error in the
build window:
"Packaging error: Command: '/usr/bin/ant debug' failed.Exit code: 1"
(see the attached screenshot).
catrasoft 80: /usr/bin/ant
Buildfile: build.xml does not exist!
Build failed
How to solve both the above problems?
BTW, I'm using the last Fedora 15 64 bits.
One more question about the setup: it seems necessitas setup comes with the
Android sdk/ndk (always r5c). Is there any reason for that? I changed the
path to refer the one I downloaded from the Android site.
Thanks
giu
Remy DAVID
2011-11-05
Anonymous
2011-11-06
Anonymous
2012-01-01
Anonymous
2012-01-09
Anonymous
2012-02-05