Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.

Setup Necessitas SDK on Windows: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
(Remove spurious H1)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
=Setup Necessitas <span class="caps">SDK</span> on Windows=
{{Cleanup | reason=Auto-imported from ExpressionEngine.}}
[[Category:Qt for Android]]


* '''7 July 2011 Update''' from the maintainer of Necessitas, Android Qt port. They are planning to install Ant and <span class="caps">JDK</span> with the Necessitas installer. When that happens we will no longer need to install them separately.
* '''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==
== Downloads and Installation locations ==


===Ant===
=== Ant ===


Necessitas 0.3 Alpha included the download of Ant.<br /> Location: C:\Users\&lt;Username&gt;\necessitas\apache-ant-1.8.2
Necessitas 0.3 Alpha included the download of Ant.
Location: C:lt;Username>-ant-1.8.2


* WinAnt Windows installer for Apache Ant.<br /> Binary: '''winant-install-v7.exe'''<br /> SHA1: e02dbd46418fff6b8258ca358ab22368334e857d<br /> Source: http://code.google.com/p/winant/
* WinAnt- Windows installer for Apache Ant.
Binary: '''winant-install-v7.exe'''
SHA1: e02dbd46418fff6b8258ca358ab22368334e857d
Source: http://code.google.com/p/winant/


Windows 32-bit platform C:/Program Files/WinAnt/bin/ant.bat<br /> Windows 64-bit platform C:/Program Files (x86)/WinAnt/bin/ant.bat
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.<br /> Binary: '''apache-ant-1.8.2-bin.zip'''<br /> SHA1: 36416061d1ed820583b87a8a924195a681432c6d<br /> Source: http://ant.apache.org/bindownload.cgi
* Apache Ant binary distribution.
Binary: '''apache-ant-1.8.2-bin.zip'''
SHA1: 36416061d1ed820583b87a8a924195a681432c6d
Source: http://ant.apache.org/bindownload.cgi


===<span class="caps">JDK</span> (Java Development Kit) and <span class="caps">JRE</span> (Java Runtime Environment)===
=== JDK (Java Development Kit) and JRE (Java Runtime Environment) ===


* <span class="caps">JDK</span> (Java Development Kit)<br /> Binary: '''jdk-7u1-windows-i586.exe'''<br /> SHA1: ed434b8bc132a5bfda031428b26daf7b8331ecb9<br /> Source: http://www.oracle.com/technetwork/java/javase/downloads/index.html<br /> “Java Platform, Standard Edition” -&gt; “<span class="caps">JDK</span>” -&gt; “Download” button.<br /> Choose jdk-7u1-windows-i586.exe in the list and install.
* JDK (Java Development Kit)
Binary: '''jdk-7u1-windows-i586.exe'''
SHA1: ed434b8bc132a5bfda031428b26daf7b8331ecb9
Source: http://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.


* <span class="caps">JRE</span> (Java Runtime Environment)<br /> Binary: '''jre-7u1-windows-i586.exe'''<br /> SHA1: 26ec209d66c3b21ef3c7b6c1f3b9fa52466420ed<br /> Source: http://www.oracle.com/technetwork/java/javase/downloads/index.html<br /> “Java Platform, Standard Edition” -&gt; “<span class="caps">JRE</span>” -&gt; “Download” button.<br /> Choose jre-7u1-windows-i586.exe in the list and install.
* JRE (Java Runtime Environment)
Binary: '''jre-7u1-windows-i586.exe'''
SHA1: 26ec209d66c3b21ef3c7b6c1f3b9fa52466420ed
Source: http://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<br /> Windows 64-bit platform C:\Program Files (x86)\Java\ with subdirectories jdk1.7.0_01 and jre7
Windows 32-bit platform - C:Files\Javawith subdirectories jdk1.7.0_01 and jre7
Windows 64-bit platform - C:Files (x86)with subdirectories jdk1.7.0_01 and jre7


===Necessitas <span class="caps">SDK</span> Windows online installer.===
=== Necessitas SDK Windows online installer. ===


Release date: Saturday, 29 October 2011.<br /> Version: 0.3 Alpha<br /> Binary: '''necessitas-0.3-online-sdk-installer-windows.exe'''<br /> SHA1: 0f7578946bd43f5a66fc5ffa8120a8eed6c98425<br /> Source: https://sourceforge.net/projects/necessitas/files/
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.<br /> Use the default install location suggested by the installer: C:\Users\&lt;Username&gt;\necessitas
Download the Windows online installer.
Use the default install location suggested by the installer: C:lt;Username>


===Ministro Service===
=== Ministro Service ===


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


Binary: '''MinistroConfigurationTool II.apk'''<br /> SHA1: 94a90ca876cc25f05b786ec10cd09a5543d14d6b<br /> 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
Location: C:_test\Ministro II.apk


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


==Configuring==
== Configuring ==


===Create <span class="caps">AVD</span> (Android Virtual Device)===
=== Create AVD (Android Virtual Device) ===


C:\Users\&lt;Username&gt;\necessitas\android-sdk-windows\ <span class="caps">SDK</span>-Manager.exe <br /> A popup dialog appears which refreshes the available devices. Ignore it or cancel.<br /><span class="caps">NEVER</span> DO Update and install : to get other virtual devices. Stick to the ones Necessitas provides.
C:lt;Username>-sdk-windowsSDK-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.<br /> Installed packages <br /> It shows you about 8 entries with different versions of Android <span class="caps">SDK</span> platforms.<br /> Virtual devices<br /> Here you create your <span class="caps">AVD</span><br /> Click the button new. Give it a name e.g. Android2.3.3. Choose a target e.g. Android 2.3.3 – <span class="caps">API</span> level 10. Size : 1024 mb. Snapshot enabled. Skin : <span class="caps">HVGA</span><br /> Press the button Create <span class="caps">AVD</span> and the name you choose appears in the list.
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===
=== Android Qt Creator settings ===


[[Image:necessitas01.png|1]]<br />[[Image:necessitas02.png|2]]
[[Image:http://dl.dropbox.com/u/33544011/necessitas01.png|1]]
[[Image:http://dl.dropbox.com/u/33544011/necessitas02.png|2]]


You only have to set the path to ant.bat. The other fields are filled in automatically.<br /> You can see your <span class="caps">AVD</span> target you made earlier.
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==
== Compiling ==


===Debug version===
=== 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.
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.


[[Image:necessitas03.png|3]]
[[Image:http://dl.dropbox.com/u/33544011/necessitas03.png|3]]


===Build version===
=== Build version ===


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


[[Image:necessitas04.png|4]]
[[Image:http://dl.dropbox.com/u/33544011/necessitas04.png|4]]


====On Tab Manifest====
==== On Tab Manifest ====


choose for Android 10
choose for Android 10


====On Tab Permissions====
==== On Tab Permissions ====


android.permission.INTERNET<br /> android.permission.WRITE_EXTERNAL_STORAGE
android.permission.INTERNET
android.permission.WRITE_EXTERNAL_STORAGE


====On Tab Libraries====
==== On Tab Libraries ====


Click the button “Read information from application (must be compiled)”<br /> This will read the necessary libraries like libqtCore.so.<br /> You don’t have to click the libraries, even if the checkboxes are not checked it will work…
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.
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 <span class="caps">CTRL</span> + R<br /> Then you see your app icon, it launches and wants to download files (only the first time).<br /> Your app will start automatically now.
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!
Have fun!


==Appendix : Environment variables==
== Appendix : Environment variables ==


===User variables===
=== User variables ===


<span class="caps">ANT</span>_HOME<br /> C:\Program Files (x86)\WinAnt;<br /> C:\Users\&lt;Username&gt;\necessitas\apache-ant-1.8.2; (Downloaded automatically on Necessitas <span class="caps">SDK</span> 0.3 Alpha release.)
ANT_HOME
C:Files (x86);
C:lt;Username>-ant-1.8.2; (Downloaded automatically on Necessitas SDK 0.3 Alpha release.)


<span class="caps">JAVA</span>_HOME<br /> C:\Program Files\Java\jdk1.7.0_01;
JAVA_HOME
C:Files\Java\jdk1.7.0_01;


<span class="caps">PATH</span><br /> C:\Program Files (x86)\WinAnt\bin;C:\Users\&lt;Username&gt;\necessitas\android-sdk-windows\tools;C:\Users\&lt;Username&gt;\necessitas\QtCreator\bin\;
PATH
C:Files (x86);C:lt;Username>-sdk-windows\tools;C:lt;Username>


<span class="caps">PYTHONHOME</span><br /> C:/Users/&lt;Username&gt;/necessitas/gdb-7.2/python;
PYTHONHOME
C:/Users/<Username>/necessitas/gdb-7.2/python;


===System variables===
=== System variables ===


<span class="caps">CLASSPATH</span><br /> C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
CLASSPATH
C:Files (x86)6\lib\ext\QTJava.zip


Path (Related Necessitas <span class="caps">SDK</span> paths.)<br /> C:\QtSDK\Desktop\Qt\4.7.4\mingw\bin\; C:\Users\&lt;Username&gt;\necessitas\android-sdk-windows\tools;
Path (Related Necessitas SDK paths.)
C:.7.4\mingw\bin C:lt;Username>-sdk-windows\tools;


<span class="caps">PATHEXT</span><br /> .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;


<span class="caps">QTJAVA</span><br /> C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip;
QTJAVA
C:Files (x86)6\lib\ext\QTJava.zip;


==Credits==
== Credits ==


Don’t know why “Redirect to a more accurate wiki page” does not inherit the article history.<br /> Thanks to all contributors from [http://developer.qt.nokia.com/wiki/diff/How_to_use_Necessitas_Emulator_on_Windows_7 How_to_use_Necessitas_Emulator_on_Windows_7] ''[developer.qt.nokia.com]'' page.
Don't know why "Redirect to a more accurate wiki page" does not inherit the article history.
 
Thanks to all contributors from [http://developer.qt.nokia.com/wiki/diff/How_to_use_Necessitas_Emulator_on_Windows_7 How_to_use_Necessitas_Emulator_on_Windows_7] page.
===Categories:===
 
* [[:Category:Developing with Qt|Developing_with_Qt]]
** [[:Category:Developing with Qt::Ports|Ports]]
*** [[:Category:Developing with Qt::Ports::Android|Android]]

Latest revision as of 13:54, 28 November 2016

This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Auto-imported from ExpressionEngine.
Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean.
  • 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:lt;Username>-ant-1.8.2

  • WinAnt- Windows installer for Apache Ant.

Binary: winant-install-v7.exe SHA1: e02dbd46418fff6b8258ca358ab22368334e857d Source: http://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: http://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: http://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: http://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:Files\Javawith subdirectories jdk1.7.0_01 and jre7 Windows 64-bit platform - C:Files (x86)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:lt;Username>

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:_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:lt;Username>-sdk-windowsSDK-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

1 2

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.

3

Build version

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

4

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:Files (x86); C:lt;Username>-ant-1.8.2; (Downloaded automatically on Necessitas SDK 0.3 Alpha release.)

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

PATH C:Files (x86);C:lt;Username>-sdk-windows\tools;C:lt;Username>

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

System variables

CLASSPATH C:Files (x86)6\lib\ext\QTJava.zip

Path (Related Necessitas SDK paths.) C:.7.4\mingw\bin C:lt;Username>-sdk-windows\tools;

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

QTJAVA C:Files (x86)6\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 page.