Editing MADDE/QtCreator integration for windows

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 73: Line 73:
==== Install the client ====
==== Install the client ====
 +
 +
 +
 +
 +
<div style="border: 1px solid red; background-color: #faa; padding: 20px;"><div style="text-align:center;">Please keep in mind that this is a '''TECHNOLOGY PREVIEW'''. The following steps should only be taken if you want to test software in an early stage of development. To test the preview, you have to activate the [[extras-devel]] repository on device.</div></div>
 +
1. Open the Application Manager.
1. Open the Application Manager.
-
2. Enable the [[extras]] repository.  
+
2. Add the [[extras-devel]] repository.  
 +
 
 +
:[[Image:App_manager_extras_devel_screenshot.png|400px]]
3. Go to: Download -> Development -> mad-developer
3. Go to: Download -> Development -> mad-developer
Line 84: Line 92:
The following instructions show how to connect your device with your PC by using the USB connection.
The following instructions show how to connect your device with your PC by using the USB connection.
 +
 +
 +
 +
==== Configure the client for USB ====
==== Configure the client for USB ====
Line 100: Line 112:
-
2. If Module in use is not "g_ether" choose "Load g_ether". Then click "Close".
+
2. Then choose "Load g_ether"
 +
 
 +
:[[Image:02_client_props.png|300px]]
 +
 
 +
 
 +
 
 +
 
 +
3. If Module in use is "g_ether" click "close"
:[[Image:03_client_ether.png|300px]]
:[[Image:03_client_ether.png|300px]]
Line 107: Line 126:
-
3. Now you can set up the USB settings. Please click on "Edit", which shows you the USB-configuration settings. Then click on "Configure". After that your client is set up for the connection with your PC.
+
4. Now you can set up the USB settings. Please click on "edit", which shows you the USB-configuration settings. Then click on "configure". After that your client is set up for the connection with your PC.
:[[Image:04_a_client_edit.png|300px]]    [[Image:04_b_client_ready.png|300px]]
:[[Image:04_a_client_edit.png|300px]]    [[Image:04_b_client_ready.png|300px]]
Line 114: Line 133:
-
'''TIP:''' There might be problems if you have a GPRS connection running on the device. Please shut that down while testing.
+
'''TIP:''' There might be problems if you have a GPRS connection running on the device. Please shut that down while testing
 +
 
 +
 
 +
 
 +
 
=== Windows configuration ===
=== Windows configuration ===
Line 132: Line 155:
-
After clicking on "apply", in your network configuration you should see that the connection is established.
+
After clicking on "apply", you should see in your network configuration, that the connection is established.
-
'''Tip:''' In some cases problems might occur, if you have an active VPN connection.
+
'''Tip:''' In some cases there might occur problems, if you have an active VPN connection.
'''Important:''' If you have User Account Control enabled on Windows Vista/7, you MUST run this tool with the "Run as Administrator" option.
'''Important:''' If you have User Account Control enabled on Windows Vista/7, you MUST run this tool with the "Run as Administrator" option.
Line 154: Line 177:
Add the password and all the data you see in the screenshot below. Check the box, that you want to use the password as the authentication method. After that click on "test" and see if the connection can be set up.
Add the password and all the data you see in the screenshot below. Check the box, that you want to use the password as the authentication method. After that click on "test" and see if the connection can be set up.
-
 
-
*Note: It seems that with the newer QT Creator (1.3.84), the location of the settings in the image below have moved to Tools->Options->Projects->Maemo Device Configurations
 
[[Image:05_creator_add_device.jpg|300px]]
[[Image:05_creator_add_device.jpg|300px]]
Line 175: Line 196:
# In the Private Key file entry at the same window, browse for the 2nd file generated at step 3. "id_rsa"
# In the Private Key file entry at the same window, browse for the 2nd file generated at step 3. "id_rsa"
# Click "Test" in Qt to check it works properly
# Click "Test" in Qt to check it works properly
-
[[Image:Example.jpg]]
+
 
 +
 
=== Deploy SSH key ===
=== Deploy SSH key ===
Line 201: Line 223:
You can configure these settings in the Maemo Device Configurations
You can configure these settings in the Maemo Device Configurations
-
  Tools -> Options -> Projects -> Maemo Device Configurations
+
  Tools -> Options... -> Qt4 -> Maemo Device Configurations
-
 
+
-
'''Note: ''' In older versions of Qt  Creator the Maemo Device Configuration is under Qt4 tab.
+
'''Note: ''' For these steps your device has to be connected to the PC and the password has to be valid. By clicking "Test" button, you can check if that is the case.
'''Note: ''' For these steps your device has to be connected to the PC and the password has to be valid. By clicking "Test" button, you can check if that is the case.
-
Now you click on "Deploy..." and select the public key you have created before. If you have specified a file name you will find it in:
+
Now you click on "Deploy..." and select the public key you have created before. If you have specified a file-name you will find it in:
  C:\MADDE\<version>\home\<username>\<keyname>.pub
  C:\MADDE\<version>\home\<username>\<keyname>.pub
Line 215: Line 235:
[[Image:09_qtcreator_deploy_key.jpg‎|400px]]
[[Image:09_qtcreator_deploy_key.jpg‎|400px]]
-
Once the key is deployed correctly you can set up your device configuration to use the key to connect to the device. Change now the "Authentication type" from "Password" to "Key". Now it uses a standard location, for the private key, which should not exist. Change the location, with the one of your real key. Following this tutorial you will find it in:
+
Once the key is deployed correctly you can set up your device-configuration to use the key to connect to the device. Change now the "Authentication type" from "Password" to "Key". Now it uses a standard location, for the private key, which should not exist. Change the location, with the one of your real key. Following this tutorial you will find it in:
  C:\MADDE\<version>\home\<username>\<keyname>
  C:\MADDE\<version>\home\<username>\<keyname>
Line 225: Line 245:
== Use Maemo5 build settings ==
== Use Maemo5 build settings ==
-
Now all the configuration is done and you can select Maemo as a build configuration. If you have a project, which you want to compile for Maemo, then click on the project button in the menu of the left side. Now you should see a screen, like in the screen shot below. If you have the Qt libraries installed, then you will have the "Desktop" as the default option selected.
+
Now all the configuration is done and you can select Maemo as a build configuration. If you have a project, which you want to compile for Maemo, then click on the project button in the menu of the left side. Now you should seen a screen, like in the screen shot below. If you have the Qt libraries installed, then you will have the "Desktop" as the default option selected.
[[Image:04_qtcreator_init.jpg]]
[[Image:04_qtcreator_init.jpg]]
Line 258: Line 278:
-
Select the build configuration you want to use (located in the bottom left corner):
+
Finally you can now set in the down left corner, which build configuration you want to use:
[[Image:08_qtcreator_final.jpg]]
[[Image:08_qtcreator_final.jpg]]
-
By clicking the run button, your application will be automatically compiled for the Maemo device, deployed, and started.
+
Now you can click on the run button, and your application will be automatically compiled for the Maemo device, delpoyed, and started.
[[Category:Development]]
[[Category:Development]]

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)

Templates used on this page: