Sharing

Tags what is this? Undo?

  • android
  • ant
  • java
  • jdk
  • jre
  • ministro
  • necessitas
  • windows

Ratings what is this?

  • 13
spacer

Wiki menu

  • Browse Wiki articles
  • Recent Changes
  • Article history
  • Report
  • spacer RSS / Atom
  • spacer Export to PDF
 

Log in

Register here!

Login using OpenID

Forgot your password?

Stuff by staff

Here you will find some useful pages.

  • Wiki Help
  • Wiki Syntax docs

Latest pages

  • snippets_Polish
  • qmake_Polish
  • Improving_TLS_handshake_s...
  • fixed_dx_bat
  • Blueprint for language...

Top 10 categories

  1. HowTo ( 309 pages)
  2. Developing_with_Qt ( 306 pages)
  3. snippets ( 179 pages)
  4. Tools ( 142 pages)
  5. Learning ( 126 pages)
  6. LanguageBindings ( 112 pages)
  7. PySide ( 109 pages)
  8. Developing_Qt ( 105 pages)
  9. Qt_Quick ( 96 pages)
  10. Spanish ( 77 pages)
  • Home
  •  
  • Wiki Home
  •  
  • How_to_use_Necessitas_Emulator_on_Windows_7
  •  
  • Last edit: November 2, 2011

Table of Content

  • Setup Necessitas SDK on Windows
    • Downloads and Installation locations
    • Configuring
    • Compiling
    • Appendix : Environment variables
    • Credits

Setup Necessitas SDK on Windows

  • 7 July 2011 Update from the maintainer of Necessitas, Android Qt port. They are planning to install Ant and JDK with the Necessitas installer. When that happens we will no longer need to install them separately.

Downloads and Installation locations

Ant

Necessitas 0.3 Alpha included the download of Ant.
Location: C:\Users\<Username>\necessitas\apache-ant-1.8.2

  • WinAnt – Windows installer for Apache Ant.
    Binary: winant-install-v7.exe
    SHA1: e02dbd46418fff6b8258ca358ab22368334e857d
    Source: code.google.com/p/winant/

Windows 32-bit platform – C:/Program Files/WinAnt/bin/ant.bat
Windows 64-bit platform – C:/Program Files (x86)/WinAnt/bin/ant.bat

  • Apache Ant binary distribution.
    Binary: apache-ant-1.8.2-bin.zip
    SHA1: 36416061d1ed820583b87a8a924195a681432c6d
    Source: ant.apache.org/bindownload.cgi

JDK (Java Development Kit) and JRE (Java Runtime Environment)

  • JDK (Java Development Kit)
    Binary: jdk-7u1-windows-i586.exe
    SHA1: ed434b8bc132a5bfda031428b26daf7b8331ecb9
    Source: www.oracle.com/technetwork/java/javase/downloads/index.html
    “Java Platform, Standard Edition” -> “JDK” -> “Download” button.
    Choose jdk-7u1-windows-i586.exe in the list and install.
  • JRE (Java Runtime Environment)
    Binary: jre-7u1-windows-i586.exe
    SHA1: 26ec209d66c3b21ef3c7b6c1f3b9fa52466420ed
    Source: www.oracle.com/technetwork/java/javase/downloads/index.html
    “Java Platform, Standard Edition” -> “JRE” -> “Download” button.
    Choose jre-7u1-windows-i586.exe in the list and install.

Windows 32-bit platform – C:\Program Files\Java\ with subdirectories jdk1.7.0_01 and jre7
Windows 64-bit platform – C:\Program Files (x86)\Java\ with subdirectories jdk1.7.0_01 and jre7

Necessitas SDK Windows online installer.

Release date: Saturday, 29 October 2011.
Version: 0.3 Alpha
Binary: necessitas-0.3-online-sdk-installer-windows.exe
SHA1: 0f7578946bd43f5a66fc5ffa8120a8eed6c98425
Source: https://sourceforge.net/projects/necessitas/files/

Download the Windows online installer.
Use the default install location suggested by the installer: C:\Users\<Username>\necessitas

Ministro Service

Binary: Ministro II.apk
SHA1: 82520c34339e405161c36486f7d6e39dcd79ef27
Source: https://sourceforge.net/projects/ministro.necessitas.p/files/

Binary: MinistroConfigurationTool II.apk
SHA1: 94a90ca876cc25f05b786ec10cd09a5543d14d6b
Source: https://sourceforge.net/projects/ministro.necessitas.p/files/

Location: C:\QT_test\Ministro II.apk

  • Hint: Make the whole directory write access and not read only for all of the above! Unblock Ministro.

Configuring

Create AVD (Android Virtual Device)

C:\Users\<Username>\necessitas\android-sdk-windows\ SDK-Manager.exe
A popup dialog appears which refreshes the available devices. Ignore it or cancel.
NEVER DO Update and install : to get other virtual devices. Stick to the ones Necessitas provides.

On the left you have a selection list.
Installed packages
It shows you about 8 entries with different versions of Android SDK platforms.
Virtual devices
Here you create your AVD
Click the button new. Give it a name e.g. Android2.3.3. Choose a target e.g. Android 2.3.3 – API level 10. Size : 1024 mb. Snapshot enabled. Skin : HVGA
Press the button Create AVD and the name you choose appears in the list.

Android Qt Creator settings

spacer
spacer

You only have to set the path to ant.bat. The other fields are filled in automatically.
You can see your AVD target you made earlier.

Compiling

Debug version

In Qt Creator select the build …Arm v 5 Debug and start using the green arrow bug button “Start debugging” or F5. This will make the libYOURPROGRAMNAME.so which you will need later for the next step. It is possible that Qt Creator cannot get through, but that’s no problem. The most important is you have the .so file.

spacer

Build version

The next step is to choose for build …Arm v 5 Release.

spacer

On Tab Manifest

choose for Android 10

On Tab Permissions

android.permission.INTERNET
android.permission.WRITE_EXTERNAL_STORAGE

On Tab Libraries

Click the button “Read information from application (must be compiled)”
This will read the necessary libraries like libqtCore.so.
You don’t have to click the libraries, even if the checkboxes are not checked it will work…

Check the option : “Install Ministro system wide qt shared libraries installer” and click the button “Choose apk” to point to the Ministro-2.0.apk file you installed earlier.

Click Run or CTRL + R
Then you see your app icon, it launches and wants to download files (only the first time).
Your app will start automatically now.

Have fun!

Appendix : Environment variables

User variables

ANT_HOME
C:\Program Files (x86)\WinAnt;
C:\Users\<Username>\necessitas\apache-ant-1.8.2; (Downloaded automatically on Necessitas SDK 0.3 Alpha release.)

JAVA_HOME
C:\Program Files\Java\jdk1.7.0_01;

PATH
C:\Program Files (x86)\WinAnt\bin;C:\Users\<Username>\necessitas\android-sdk-windows\tools;C:\Users\<Username>\necessitas\QtCreator\bin\;

PYTHONHOME
C:/Users/<Username>/necessitas/gdb-7.2/python;

System variables

CLASSPATH
C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip

Path (Related Necessitas SDK paths.)
C:\QtSDK\Desktop\Qt\4.7.4\mingw\bin\; C:\Users\<Username>\necessitas\android-sdk-windows\tools;

PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;

QTJAVA
C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip;

Credits

Don’t know why “Redirect to a more accurate wiki page” does not inherit the article history.
Thanks to all contributors from How_to_use_Necessitas_Emulator_on_Windows_7 [developer.qt.nokia.com] page.

Categories:

spacer

Content is available under

Creative Commons Attribution-ShareAlike 2.5 Generic

 

© 2011 Qt Project Hosting. Qt® and the Qt logo is a registered trade mark of Digia plc and/or its subsidiaries and is used pursuant to a license from Digia plc and/or its subsidiaries.
All other trademarks are property of their respective owners. Privacy Policy
This site is hosted by Gitorious AS. Your use of this web site is governed by these terms of service.

Qt Project Hosting, P.O. Box 4332 Nydalen, 0402 Oslo, Norway. Phone: +47 21 60 27 32. Org. Nr. 997 447 913

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.