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 1: Line 1:
-
{{MADDE}}
 
-
 
= QtCreator and MADDE on Windows =
= QtCreator and MADDE on Windows =
Line 7: Line 5:
Requires:
Requires:
-
* [[MADDE]] installed on your Windows machine
+
* [[MADDE | MADDE]] installed on your Windows machine
 +
 
 +
 
 +
== General advice ==
 +
As this is a technology preview, remember that bugs can occur. If some of the components don't work as expected, please add your question to the [http://talk.maemo.org/showthread.php?t=38075 talk-thread] and follow up the discussion.
 +
 
Line 73: Line 76:
==== 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 | 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 | 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 95:
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 115:
-
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 129:
-
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 136:
-
'''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 158:
-
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 there might occur problems, if you have an active VPN connection.
 +
 
-
'''Tip:''' In some cases problems might occur, 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.
 
=== QtCreator Configuration ===
=== QtCreator Configuration ===
Line 154: Line 184:
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 164: Line 192:
'''Tip''' You can use your ssh key for the connection. Click on "Deploy Key ..." and select your key. If the other settings are correct the key will be automatically deployed on your device, so that you don't have to worry about the passwords anymore. To Deploy the SSH key, you first need to obtain it. Here are the steps :
'''Tip''' You can use your ssh key for the connection. Click on "Deploy Key ..." and select your key. If the other settings are correct the key will be automatically deployed on your device, so that you don't have to worry about the passwords anymore. To Deploy the SSH key, you first need to obtain it. Here are the steps :
-
# Open up MADDE terminal in Windows. (In Start > Programs > MADDE > MADDE terminal)
+
* Open up MADDE terminal in Windows. (In Start > Programs > MADDE > MADDE terminal)
-
# type "cd /"
+
* type "cd /"
-
# Type "ssh-keygen -t rsa"
+
* Type "ssh-keygen -t rsa"
-
# Pick a name for your key (I just called mine rsa1)
+
* Pick a name for your key (I just called mine rsa1)
-
# Pick a password if you want one (I left it blank so no password)
+
* Pick a password if you want one (I left it blank so no password)
-
# In Qt click "deploy key" and browse to where the key is (MADDE\MADDE_VERSION\home\<username>\.ssh)
+
* In Qt click "deploy key" and browse to where the key is (MADDE\MADDE_VERSION\home\<username>\.ssh)
-
# Select your_key_name.pub file
+
* Select your_key_name.pub file
-
# Qt should say key sucessfully deployed
+
* Qt should say key sucessfully deployed
-
# Change "Authentication Type" option in Qt to "key"
+
* Change "Authentication Type" option in Qt to "key"
-
# 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 230:
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 the set-up 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 242:
[[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 222: Line 249:
Now click on "Apply" and your QtCreator installation is set up to connect to the device via SSH key.
Now click on "Apply" and your QtCreator installation is set up to connect to the device via SSH key.
 +
 +
 +
 +
 +
 +
 +
'''Note''' that the N900 has to be connected and the password has to be valid. You can check that by clicking on the "Test" button.
== 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 292:
-
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: