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: | ||
- | |||
- | |||
= 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 62: | Line 65: | ||
* what to install on device, and | * what to install on device, and | ||
* how to set-up your windows environment | * how to set-up your windows environment | ||
- | |||
Line 70: | Line 72: | ||
+ | '''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. | + | 2. Add the [[Extras-devel | extras-devel]] repository. |
+ | |||
+ | :[[Image:App_manager_extras_devel_screenshot.png|200px]] | ||
3. Go to: Download -> Development -> mad-developer | 3. Go to: Download -> Development -> mad-developer | ||
Line 84: | Line 90: | ||
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''' | ||
Please start the client on your device. As you want to use Windows as your development environment, you have to change the driver, which is loaded to instantiate the connection. You have to follow these steps: | Please start the client on your device. As you want to use Windows as your development environment, you have to change the driver, which is loaded to instantiate the connection. You have to follow these steps: | ||
+ | 1. After starting the client click on "Manage Usb" | ||
+ | :[[Image:01_client_start.png|200px]] | ||
- | + | 2. Then choose "Load g_ether" | |
- | :[[Image: | + | :[[Image:02_client_props.png|200px]] |
+ | 3. If Module in use is "g_ether" click "close" | ||
+ | :[[Image:03_client_ether.png|200px]] | ||
+ | 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|200px]] [[Image:04_b_client_ready.png|200px]] | |
- | |||
+ | '''TIP:''' There might be problems if you have a GPRS connection running on the device. Please shut that down while testing | ||
- | + | '''Setup debug environment - only needed for debugging on device!''' | |
- | + | To be able to debug your application on device you will need the gdbserver. Unfortunately it is not in one of the default repositories. So you have to add the SDK repository as shown below: | |
+ | [[Image:01_dev_sdkrepo.png|400px]] | ||
+ | After that, open the terminal on device, become [[Root_access | root]] and type: | ||
+ | |||
+ | apt-get install gdb | ||
- | |||
=== Windows configuration === | === Windows configuration === | ||
Line 132: | Line 145: | ||
- | After clicking on "apply", in your network configuration | + | 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 | + | |
- | + | ||
- | + | ||
=== QtCreator Configuration === | === QtCreator Configuration === | ||
Line 148: | Line 156: | ||
- | First get the password from the Mad Developer application. You get it by clicking on "Developer Password" in the main view. '''Be aware''' that each time you click on the button, a new password will be created and that the password is only valid for the time it is shown in the application. | + | First get the password from the Mad Developer application. You get it by clicking on "Developer Password" in the main view. '''Be aware''' that each time you click on the button, a new password will be created and that the password is only valid for the time it is shown in the application. |
- | [[Image:04_b_client_ready.png| | + | [[Image:04_b_client_ready.png|200px]] [[Image:05_client_pw.png|200px]] |
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. | ||
- | + | [[Image:05_creator_add_device.jpg|400px]] | |
- | + | ||
- | [[Image:05_creator_add_device.jpg | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | |||
- | |||
- | + | '''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. | |
- | |||
== 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 | + | 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 236: | Line 181: | ||
[[Image:05_qtcreator_maemodev.jpg]] | [[Image:05_qtcreator_maemodev.jpg]] | ||
- | |||
- | |||
- | |||
Line 244: | Line 186: | ||
[[Image:06_qtcreator_build.jpg]] | [[Image:06_qtcreator_build.jpg]] | ||
- | |||
- | |||
- | |||
Line 254: | Line 193: | ||
- | + | 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]] | ||
- | + | Now you can click on the run button, and your application will be automatically compiled for the Maemo device, delpoyed, and started. | |
- | + | ||
- | + | ||
- | + |
Learn more about Contributing to the wiki.