Default Project Icon

necessitas

Home Wiki Tickets Git Downloads Ministro Necessitas Home Page

How to install Necessitas SDK

daminetreg
Attachments

To start developing C++ Qt Powered application for android you’ll have to do only small configuration of the Qt Creator Integration for Android.

Necessitas : Qt Sdk for Android & Qt Creator Android Integration

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.

5 minutes three-click install

You can get a first class Qt for Android sdk up and running in five minutes.
The following instructions are being provided for Linux.

Download

Go on the necessitas project home page, find and download the last stable binary version: click here.

Run the installer

  • Once you have the binary simply set it as executable: chmod +x necessitas-X.X-Linux-x86-Install
  • You just have to click on next, and eventually choose a directory for the necessitas framework (/opt/necessitas/ has been tested intensively, so please use this one, the installer will provide you /opt/ by default which will lead in some strange bugs), this directory will contains Qt Sdk for Android (/opt/necessitas/Android/) and the Qt Creator for Android (/opt/necessitas/QtCreator/).

Manual Install

You can get more informations about manual installation through git cloning of the project on the following pages : [Compile Qt framework], [Compile QtCreator].

Start developing

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.


Related

Wiki: Compile Qt framework
Wiki: Compile QtCreator
Wiki: Setup QtCreator
Wiki: How to write Qt apps for Android
Wiki: Home


  • 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
      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?

         
  • AD5XJ KEN
    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?

     
  • Wimpies
    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
    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.

     
    Attachments
  • Ivan Trombley
    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
    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).

    I executed the ant command using the terminal and I gor:

    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

     
    Attachments
  • Remy DAVID
    Remy DAVID
    2011-11-05

    Post awaiting moderation.

  • Anonymous
    2011-11-06

    Post awaiting moderation.

  • Anonymous
    2012-02-05

    Post awaiting moderation.

Cancel   Add attachment