Editing Documentation/Maemo Eclipse Tutorial/Using ESbox

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.

Warning: This page is 35 kilobytes long; some browsers may have problems editing pages approaching or longer than 32kb. Please consider breaking the page into smaller sections.

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 11: Line 11:
Templates define the basic structure of the project. Most of the templates are examples but you can also use them as a basic structure for your project.
Templates define the basic structure of the project. Most of the templates are examples but you can also use them as a basic structure for your project.
-
To create a new C or C++ project, select '''File > New > Project''', figure [[#figure-esbox_usage_project_new|8.1]].
+
To create a new C or C++ project, select '''File > New > Project''', figure [[#fig:esbox_usage_project_new|8.1]].
* C > C Maemo Project
* C > C Maemo Project
Line 18: Line 18:
For Qt4 projects, select C++ project.
For Qt4 projects, select C++ project.
-
<div id="figure-esbox_usage_project_new">
+
{| summary="New Project Menu"
-
[[Image:project-Python-new.png|frame|center|alt=Screenshot of New Project menu|Figure 8.1: New Project Menu]]
+
|+ align="BOTTOM" |'''Figure 8.1:''' New Project Menu
-
</div>
+
|-
 +
|
 +
[[Image:project-Python-new.png|Image project-Python-new]]
 +
|}
-
ESbox supports simple Qt4, Makefile and Autotools projects, figure [[#figure-esbox_usage_c_01_projects|8.2]].
+
ESbox supports simple Qt4, Makefile and Autotools projects, figure [[#fig:esbox_usage_c_01_projects|8.2]].
-
<div id="figure-esbox_usage_c_01_projects">
+
{| summary="New C/C++ Project"
-
[[Image:c-01-projects.png|frame|center|alt=Screenshot of New C/C++ project|Figure 8.2: New C/C++ Project]]
+
|+ align="BOTTOM" |'''Figure 8.2:''' New C/C++ Project
-
</div>
+
|-
 +
|
 +
[[Image:c-01-projects.png|Image c-01-projects]]
 +
|}
-
Select any of the available templates on the '''Template Project Type''' page, figure [[#figure-esbox_usage_c_02_templates|8.3]].
+
Select any of the available templates on the '''Template Project Type''' page, figure [[#fig:esbox_usage_c_02_templates|8.3]].
-
<div id="figure-esbox_usage_c_02_templates">
+
{| summary="C/C++ Project Template"
-
[[Image:c-02-templates.png|frame|center|alt=Screenshot of CC++ project template|Figure 8.3: C/C++ Project Template]]
+
|+ align="BOTTOM" |'''Figure 8.3:''' C/C++ Project Template
-
</div>
+
|-
 +
|
 +
[[Image:c-02-templates.png|Image c-02-templates]]
 +
|}
{{ambox
{{ambox
-
|text='''Maemo 4''' templates are only for [[Open development/Maemo roadmap/Diablo|Diablo]] targets and '''Maemo 5''' templates for [[Open development/Maemo roadmap/Fremantle|Fremantle]]. Select the correct template depending on your installation.
+
|text='''Maemo 4''' templates are only for Diablo targets and '''Maemo 5''' templates for Fremantle. Select the correct template depending on your installation.
}}
}}
Line 42: Line 51:
You can select multiple targets for a project. Optimized targets are compiled using compiler optimization while debug targets are compiled with debug options.
You can select multiple targets for a project. Optimized targets are compiled using compiler optimization while debug targets are compiled with debug options.
-
If you want to run a project on a Maemo device, select the <code>ARMEL</code> target. To run a project on the emulator, select the <code>X86</code> target.
+
If you want to run a project on a Maemo device, select the <span><font face="monospace">ARMEL</font></span> target. To run a project on the emulator, select the <span><font face="monospace">X86</font></span> target.
-
Select all targets for a project, figure [[#figure-esbox_usage_c_03_targets|8.4]]. You can change the targets after you have created the project.
+
Select all targets for a project, figure [[#fig:esbox_usage_c_03_targets|8.4]]. You can change the targets after you have created the project.
-
<div id="figure-esbox_usage_c_03_targets">
+
{| summary="C/C++ Project Target"
-
[[Image:c-03-targets.png|frame|center|alt=Screenshot of C/C++ project target|Figure 8.4: C/C++ Project Target]]
+
|+ align="BOTTOM" |'''Figure 8.4:''' C/C++ Project Target
-
</div>
+
|-
 +
|
 +
[[Image:c-03-targets.png|Image c-03-targets]]
 +
|}
If you do not see any targets on the '''Project Configuration''' page, check that Maemo SDK targets are installed and install them if necessary. For more information on how to install Maemo SDK and targets for ESbox, see ESbox installation chapters.
If you do not see any targets on the '''Project Configuration''' page, check that Maemo SDK targets are installed and install them if necessary. For more information on how to install Maemo SDK and targets for ESbox, see ESbox installation chapters.
Line 54: Line 66:
=== C/C++ and Qt4 Metadata ===
=== C/C++ and Qt4 Metadata ===
-
Other project pages define different metadata the template uses. You can specify additional information in the fields or use the default values, figure [[#figure-esbox_usage_c_04_metadata|8.5]].
+
Other project pages define different metadata the template uses. You can specify additional information in the fields or use the default values, figure [[#fig:esbox_usage_c_04_metadata|8.5]].
-
<div id="figure-esbox_usage_c_04_metadata">
+
{| summary="C/C++ Project Metadata"
-
[[Image:c-04-metadata.png|frame|center|alt=Screenshot of C/C++ project metadata|Figure 8.5: C/C++ Project Metadata]]
+
|+ align="BOTTOM" |'''Figure 8.5:''' C/C++ Project Metadata
-
</div>
+
|-
 +
|
 +
[[Image:c-04-metadata.png|Image c-04-metadata]]
 +
|}
After defining the values, click '''Finish''' to create a project.
After defining the values, click '''Finish''' to create a project.
Line 64: Line 79:
=== Validating C/C++ and Qt4 Project Packages for Maemo SDK ===
=== Validating C/C++ and Qt4 Project Packages for Maemo SDK ===
-
When you have created a new project, ESbox suggests package validation, figure [[#figure-esbox_usage_c_05_validate|8.6]]. If you are not sure that the required development environments have been installed for your targets, click '''Yes'''.
+
When you have created a new project, ESbox suggests package validation, figure [[#fig:esbox_usage_c_05_validate|8.6]]. If you are not sure that the required development environments have been installed for your targets, click '''Yes'''.
-
<div id="figure-esbox_usage_c_05_validate">
+
{| summary="Validate Packages Dialog"
-
[[Image:c-05-validate.png|frame|center|alt=Screenshot of package validation dialog|Figure 8.6: Validate Packages Dialog]]
+
|+ align="BOTTOM" |'''Figure 8.6:''' Validate Packages Dialog
-
</div>
+
|-
 +
|
 +
[[Image:c-05-validate.png|Image c-05-validate]]
 +
|}
-
ESbox installs all the required dependencies for your project for the selected targets, if they are not installed already, figure [[#figure-esbox_usage_c_06_validate_wizard|8.7]].
+
ESbox installs all the required dependencies for your project for the selected targets, if they are not installed already, figure [[#fig:esbox_usage_c_06_validate_wizard|8.7]].
If ESbox asks you about changing the target, click '''Yes''' to accept. Accept and install any packages ESbox suggests, and close the package validation wizard when the installation is complete.
If ESbox asks you about changing the target, click '''Yes''' to accept. Accept and install any packages ESbox suggests, and close the package validation wizard when the installation is complete.
-
<div id="figure-esbox_usage_c_06_validate_wizard">
+
{| summary="Validate Packages Wizard"
-
[[Image:c-06-validate-wizard.png|frame|center|alt=Screenshot of package validation wizard|Figure 8.7: Validate Packages Wizard]]
+
|+ align="BOTTOM" |'''Figure 8.7:''' Validate Packages Wizard
-
</div>
+
|-
 +
|
 +
[[Image:c-06-validate-wizard.png|Image c-06-validate-wizard]]
 +
|}
You can also validate project packages afterwards. To start the validation, select '''Project &gt; Project Menu &gt; Validate Installed Packages'''.
You can also validate project packages afterwards. To start the validation, select '''Project &gt; Project Menu &gt; Validate Installed Packages'''.
Line 82: Line 103:
During validation, the projects are scanned for dependencies using the following information:
During validation, the projects are scanned for dependencies using the following information:
-
* Autotools projects: <code>PKG_CHECK_MODULES</code> macros in <code>configure.ac</code>
+
* Autotools projects: <span><font face="monospace">PKG_CONFIG_CHECK</font></span> macros in configure.ac
* Makefile projects: default metapackages for the project type and libraries detected through <code>pkg-config</code> invocations
* Makefile projects: default metapackages for the project type and libraries detected through <code>pkg-config</code> invocations
== Running C/C++ and Qt4 Applications on Maemo SDK ==
== Running C/C++ and Qt4 Applications on Maemo SDK ==
-
First, select the build configuration. Change the build configuration to <code>DIABLO_X86 (Debug)</code> or <code>FREMANTLE_X86 (Debug)<code>.
+
First, select the build configuration. Change the build configuration to <span><font face="monospace">DIABLO_X86 (Debug)</font></span> or <span><font face="monospace">FREMANTLE_X86 (Debug)</font></span>.
-
To activate the selected configuration, right-click the project and select '''Build Configurations &gt; Set active''', figure [[#figure-esbox_usage_c_07_set_target|8.8]].
+
To activate the selected configuration, right-click the project and select '''Build Configurations &gt; Set active''', figure [[#fig:esbox_usage_c_07_set_target|8.8]].
-
<div id="figure-esbox_usage_c_07_set_target">
+
{| summary="Set C/C++ Project Target"
-
[[Image:c-07-set-target.png|frame|center|alt=Screenshot of C/C++ project target|Figure 8.8: Set C/C++ Project Target]]
+
|+ align="BOTTOM" |'''Figure 8.8:''' Set C/C++ Project Target
-
</div>
+
|-
 +
|
 +
[[Image:c-07-set-target.png|Image c-07-set-target]]
 +
|}
To add or remove targets, select '''Manage''' in the same menu.
To add or remove targets, select '''Manage''' in the same menu.
-
The project is ready to be launched on Maemo SDK. To launch it, right-click the project and select '''Run As &gt; Maemo Local Application''', figure [[#figure-esbox_usage_c_08_run_as|8.9]].
+
The project is ready to be launched on Maemo SDK. To launch it, right-click the project and select '''Run As &gt; Maemo Local Application''', figure [[#fig:esbox_usage_c_08_run_as|8.9]].
-
<div id="figure-esbox_usage_c_08_run_as">
+
{| summary="Run C/C++ Project as Local Application"
-
[[Image:c-08-run-as.png|frame|center|alt=Screenshot of C/C++ project running as a local application|'''Figure 8.9:''' Run C/C++ Project as Local Application]]
+
|+ align="BOTTOM" |'''Figure 8.9:''' Run C/C++ Project as Local Application
-
</div>
+
|-
 +
|
 +
[[Image:c-08-run-as.png|Image c-08-run-as]]
 +
|}
-
If Maemo Application Framework is not running, ESbox asks you to launch it. When you have launched the Application Framework successfully, you can see the Application Framework and the program running, figure [[#figure-esbox_usage_c_09_result|8.10]].
+
If Maemo Application Framework is not running, ESbox asks you to launch it. When you have launched the Application Framework successfully, you can see the Application Framework and the program running, figure [[#fig:esbox_usage_c_09_result|8.10]].
-
<div id="figure-esbox_usage_c_09_result">
+
{| summary="C/C++ Project Local Launch Result"
-
[[Image:c-09-result.png|frame|center|alt=Screenshot of result of launching local project|'''Figure 8.10:''' C/C++ Project Local Launch Result]]
+
|+ align="BOTTOM" |'''Figure 8.10:''' C/C++ Project Local Launch Result
-
</div>
+
|-
 +
|
 +
[[Image:c-09-result.png|Image c-09-result]]
 +
|}
== Running C/C++ and Qt4 Applications on a Maemo Device ==
== Running C/C++ and Qt4 Applications on a Maemo Device ==
Line 113: Line 143:
To be able to run your application on a Maemo device, Maemo PC Connectivity must be installed on the device and Maemo Host PC Connectivity on the host PC. For more information, see ESbox installation chapters.
To be able to run your application on a Maemo device, Maemo PC Connectivity must be installed on the device and Maemo Host PC Connectivity on the host PC. For more information, see ESbox installation chapters.
-
Because the device uses <code>ARMEL</code> binaries, you must to change the target platform to <code>DIABLO_ARMEL</code> or <code>FREMANTLE_ARMEL</code> and rebuild your application for the Maemo device.
+
Because the device uses <span><font face="monospace">ARMEL</font></span> binaries, you must to change the target platform to <span><font face="monospace">DIABLO_ARMEL</font></span> or <span><font face="monospace">FREMANTLE_ARMEL</font></span> and rebuild your application for the Maemo device.
-
First, make sure that <code>DIABLO_ARMEL</code> or <code>FREMANTLE_ARMEL</code> target is selected by right-clicking the project and selecting '''Properties &gt; Build Configurations &gt; Manage''', figure [[#figure-esbox_usage_c_remote_01_manage|8.11]].
+
First, make sure that <span><font face="monospace">DIABLO_ARMEL</font></span> or <span><font face="monospace">FREMANTLE_ARMEL</font></span> target is selected by right-clicking the project and selecting '''Properties &gt; Build Configurations &gt; Manage''', figure [[#fig:esbox_usage_c_remote_01_manage|8.11]].
-
<div id="figure-esbox_usage_c_remote_01_manage">
+
{| summary="C/C++ Project Manage Target Menu"
-
[[Image:c-remote-01-manage.png|frame|center|alt=Screenshot of project management target menu|Figure 8.11: C/C++ Project Manage Target Menu]]
+
|+ align="BOTTOM" |'''Figure 8.11:''' C/C++ Project Manage Target Menu
-
</div>
+
|-
 +
|
 +
[[Image:c-remote-01-manage.png|Image c-remote-01-manage]]
 +
|}
-
Set the target to <code>DIABLO_ARMEL</code> or <code>FREMANTLE_ARMEL</code>, figure [[#figure-esbox_usage_c_remote_02_targets|8.12]].
+
Set the target to <span><font face="monospace">DIABLO_ARMEL</font></span> or <span><font face="monospace">FREMANTLE_ARMEL</font></span>, figure [[#fig:esbox_usage_c_remote_02_targets|8.12]].
-
<div id="figure-esbox_usage_c_remote_02_targets">
+
{| summary="C/C++ Project Manage Targets"
-
[[Image:c-remote-02-targets.png|frame|center|alt=Screenshot of project management of targets|'''Figure 8.12:''' C/C++ Project Manage Targets]]
+
|+ align="BOTTOM" |'''Figure 8.12:''' C/C++ Project Manage Targets
-
</div>
+
|-
 +
|
 +
[[Image:c-remote-02-targets.png|Image c-remote-02-targets]]
 +
|}
-
Right-click the project, select '''Build Configurations &gt; Set Active''' and activate <code>DIABLO_ARMEL (Debug)</code> or <code>FREMANTLE_ARMEL (Debug)</code>, figure [[#figure-esbox_usage_c_remote_03_set_target|8.13]].
+
Right-click the project, select '''Build Configurations &gt; Set Active''' and activate <span><font face="monospace">DIABLO_ARMEL (Debug)</font></span> or <span><font face="monospace">FREMANTLE_ARMEL (Debug)</font></span>, figure [[#fig:esbox_usage_c_remote_03_set_target|8.13]].
-
<div id="figure-esbox_usage_c_remote_03_set_target">
+
{| summary="Set C/C++ Project Target"
-
[[Image:c-remote-03-set-target.png|frame|center|alt=Screnshot of C/C++ project target setting|Figure 8.13: Set C/C++ Project Target]]
+
|+ align="BOTTOM" |'''Figure 8.13:''' Set C/C++ Project Target
-
</div>
+
|-
 +
|
 +
[[Image:c-remote-03-set-target.png|Image c-remote-03-set-target]]
 +
|}
=== Validating C/C++ and Qt4 Project Packages on a Maemo Device ===
=== Validating C/C++ and Qt4 Project Packages on a Maemo Device ===
Line 137: Line 176:
To be able to run your application on the Maemo device, you need to make sure that all the required runtime dependencies for your application are available on the device.
To be able to run your application on the Maemo device, you need to make sure that all the required runtime dependencies for your application are available on the device.
-
Select '''Project Menu &gt; Validate Installed Packages'''. On the first page, select the project to be validated, figure [[#figure-esbox_usage_c_remote_04_validate_device|8.14]].
+
Select '''Project Menu &gt; Validate Installed Packages'''. On the first page, select the project to be validated, figure [[#fig:esbox_usage_c_remote_04_validate_device|8.14]].
-
<div id="figure-esbox_usage_c_remote_04_validate_device">
+
{| summary="Validate Packages Menu"
-
[[Image:c-remote-04-validate-device.png|frame|center|alt=Screenshot of package validation menu|Figure 8.14: Validate Packages Menu]]
+
|+ align="BOTTOM" |'''Figure 8.14:''' Validate Packages Menu
-
</div>
+
|-
 +
|
 +
[[Image:c-remote-04-validate-device.png|Image c-remote-04-validate-device]]
 +
|}
-
On the '''Target Selection''' page, select the correct Maemo device connection and <span><font face="monospace">ARMEL</font></span> target, Figure [[#figure-esbox_usage_c_remote_05_validate_targets|8.15]].
+
On the '''Target Selection''' page, select the correct Maemo device connection and <span><font face="monospace">ARMEL</font></span> target, Figure [[#fig:esbox_usage_c_remote_05_validate_targets|8.15]].
-
<div id="figure-esbox_usage_c_remote_05_validate_targets">
+
{| summary="Validate Package Targets"
-
[[Image:c-remote-05-validate-targets.png|frame|center|alt=Screenshot of package validation targets|Figure 8.15: Validate Package Targets]]
+
|+ align="BOTTOM" |'''Figure 8.15:''' Validate Package Targets
-
</div>
+
|-
 +
|
 +
[[Image:c-remote-05-validate-targets.png|Image c-remote-05-validate-targets]]
 +
|}
To start the validation, click '''Finish''' on the last page. This installs the required packages for the selected project on the Maemo device.
To start the validation, click '''Finish''' on the last page. This installs the required packages for the selected project on the Maemo device.
Line 157: Line 202:
To be able to run your application on a Maemo device, Maemo PC Connectivity must be installed on the device and Maemo Host PC Connectivity on the host PC. For more information, see ESbox installation chapters.
To be able to run your application on a Maemo device, Maemo PC Connectivity must be installed on the device and Maemo Host PC Connectivity on the host PC. For more information, see ESbox installation chapters.
-
After you have set the target to <code>ARMEL</code> and built your application as <code>ARMEL</code>, you can run your application on the Maemo device. To run the application, right-click the project and select '''Run As &gt; Maemo Remote Application''', figure [[#figure-esbox_usage_c_remote_06_run|8.16]].
+
After you have set the target to <span><font face="monospace">ARMEL</font></span> and built your application as <span><font face="monospace">ARMEL</font></span>, you can run your application on the Maemo device. To run the application, right-click the project and select '''Run As &gt; Maemo Remote Application''', figure [[#fig:esbox_usage_c_remote_06_run|8.16]].
-
<div id="figure-esbox_usage_c_remote_06_run">
+
{| summary="Run C/C++ Project as Remote Maemo Application"
-
[[Image:c-remote-06-run.png|frame|center|alt=Screenshot of running C/C++ project as a remote Maemo application|Figure 8.16: Run C/C++ Project as Remote Maemo Application]]
+
|+ align="BOTTOM" |'''Figure 8.16:''' Run C/C++ Project as Remote Maemo Application
-
</div>
+
|-
 +
|
 +
[[Image:c-remote-06-run.png|Image c-remote-06-run]]
 +
|}
-
Select SSH as the connection type (using the SBRSH connection type requires additional configuration), figure [[#figure-esbox_usage_c_remote_07_use_ssh|8.17]].
+
Select SSH as the connection type (using the SBRSH connection type requires additional configuration), figure [[#fig:esbox_usage_c_remote_07_use_ssh|8.17]].
-
<div id="figure-esbox_usage_c_remote_07_use_ssh">
+
{| summary="Connection Type Dialog"
-
[[Image:c-remote-07-use-ssh.png|frame|center|alt=Screenshot of connection type dialog|Figure 8.17: Connection Type Dialog]]
+
|+ align="BOTTOM" |'''Figure 8.17:''' Connection Type Dialog
-
</div>
+
|-
 +
|
 +
[[Image:c-remote-07-use-ssh.png|Image c-remote-07-use-ssh]]
 +
|}
-
Select the device connection, figure [[#figure-esbox_usage_c_remote_06_run|8.16]]. Use USB connection because it is faster than Bluetooth or WLAN.
+
Select the device connection, figure [[#fig:esbox_usage_c_remote_06_run|8.16]]. Use USB connection because it is faster than Bluetooth or WLAN.
-
<div id="figure-esbox_usage_c_remote_06_run">
+
{| summary="Select Device Connection Dialog"
-
[[Image:c-remote-08-select-connection.png|frame|center|alt=Screenshot of device selection connection dialog|Figure 8.18: Select Device Connection Dialog]]
+
|+ align="BOTTOM" |'''Figure 8.18:''' Select Device Connection Dialog
-
</div>
+
|-
 +
|
 +
[[Image:c-remote-08-select-connection.png|Image c-remote-08-select-connection]]
 +
|}
You can now see your application running on the Maemo device.
You can now see your application running on the Maemo device.
Line 179: Line 233:
You can use VNC Viewer to control the Maemo device and your application running on it. Select '''Window &gt; Show View &gt; Other &gt; VNC Viewer'''.
You can use VNC Viewer to control the Maemo device and your application running on it. Select '''Window &gt; Show View &gt; Other &gt; VNC Viewer'''.
-
{{ambox
+
{ambox
-
|text=To use VNC Viewer, the <code>x11vnc</code> service must be installed on the Maemo device either separately (apt-get install x11vnc) or as part of Maemo PC Connectivity.
+
|text=To use VNC Viewer, the <span><font face="monospace">x11vnc</font></span> service must be installed on the Maemo device either separately (apt-get install x11vnc) or as part of Maemo PC Connectivity.
-
}}
+
}
== Debugging C/C++ and Qt4 Applications ==
== Debugging C/C++ and Qt4 Applications ==
-
To be able to debug a project, you must set at least one breakpoint into one of the source files. To add a breakpoint somewhere, open a source file, right-click on the left source side panel and select '''Add Breakpoint''', figure [[#figure-esbox_usage_c_debug_01_breakpoint|8.19]].
+
To be able to debug a project, you must set at least one breakpoint into one of the source files. To add a breakpoint somewhere, open a source file, right-click on the left source side panel and select '''Add Breakpoint''', figure [[#fig:esbox_usage_c_debug_01_breakpoint|8.19]].
-
<div id="figure-esbox_usage_c_debug_01_breakpoint">
+
{| summary="Adding Breakpoint to C/C++ Source File"
-
[[Image:c-debug-01-breakpoint.png|frame|center|alt=Screenshot of adding a breakpoint to a C/C++ source file|Figure 8.19: Adding a Breakpoint to a C/C++ Source File]]
+
|+ align="BOTTOM" |'''Figure 8.19:''' Adding Breakpoint to C/C++ Source File
-
</div>
+
|-
 +
|
 +
[[Image:c-debug-01-breakpoint.png|Image c-debug-01-breakpoint]]
 +
|}
-
To launch your project in debug mode, right-click the project and select '''Debug As &gt; Maemo Local or Remote Application'''. When prompted, accept changing to the debug perspective, figure [[#figure-esbox_usage_c_debug_02_debug|8.20]].
+
To launch your project in debug mode, right-click the project and select '''Debug As &gt; Maemo Local or Remote Application'''. When prompted, accept changing to the debug perspective, figure [[#fig:esbox_usage_c_debug_02_debug|8.20]].
-
<div id="figure-esbox_usage_c_debug_02_debug">
+
{| summary="Debug as Maemo Application Menu"
-
[[Image:c-debug-02-debug.png|frame|center|alt=Screenshot of Maemo application debugging menu|Figure 8.20: Debug as Maemo Application Menu]]
+
|+ align="BOTTOM" |'''Figure 8.20:''' Debug as Maemo Application Menu
-
</div>
+
|-
 +
|
 +
[[Image:c-debug-02-debug.png|Image c-debug-02-debug]]
 +
|}
-
In the debug perspective, you can stop and continue the execution, step lines, inspect variables, and so on. See Figures [[#figure-esbox_usage_c_debug_03_perspective|8.21]] and [[#figure-esbox_usage_c_debug_04_variables|8.22]].
+
In the debug perspective, you can stop and continue the execution, step lines, inspect variables, and so on. See Figures [[#fig:esbox_usage_c_debug_03_perspective|8.21]] and [[#fig:esbox_usage_c_debug_04_variables|8.22]].
{{ambox
{{ambox
Line 203: Line 263:
}}
}}
-
<div id="figure-esbox_usage_c_debug_03_perspective">
+
{| summary="C/C++ Project Debug View"
-
[[Image:c-debug-03-perspective.png|frame|center|alt=Screenshot of C/C++ project debug view|Figure 8.21: C/C++ Project Debug View]]
+
|+ align="BOTTOM" |'''Figure 8.21:''' C/C++ Project Debug View
-
</div>
+
|-
 +
|
 +
[[Image:c-debug-03-perspective.png|Image c-debug-03-perspective]]
 +
|}
-
<div id="figure-esbox_usage_c_debug_04_variables">
+
{| summary="Inspect C/C++ Variables"
-
[[Image:c-debug-04-variables.png|frame|center|alt=Screenshot of inspecting C/C++ variables|Figure 8.22: Inspect C/C++ Variables]]
+
|+ align="BOTTOM" |'''Figure 8.22:''' Inspect C/C++ Variables
-
</div>
+
|-
 +
|
 +
[[Image:c-debug-04-variables.png|Image c-debug-04-variables]]
 +
|}
== Creating Python Projects ==
== Creating Python Projects ==
Line 219: Line 285:
Templates define the basic structure of the project. Most of the templates are examples but you can also use them as a basic structure for your project.
Templates define the basic structure of the project. Most of the templates are examples but you can also use them as a basic structure for your project.
-
To create a new Python project, select '''File &gt; New &gt; Project''' and then '''Python Maemo Project''', figure [[#figure-esbox_usage_project_python_new|8.23]].
+
To create a new Python project, select '''File &gt; New &gt; Project''' and then '''Python Maemo Project''', figure [[#fig:esbox_usage_project_python_new|8.23]].
-
<div id="figure-esbox_usage_project_python_new">
+
{| summary="New Project Menu"
-
[[Image:project-Python-new.png|frame|center|alt=Screenshot of new project menu|Figure 8.23: New Project Menu]]
+
|+ align="BOTTOM" |'''Figure 8.23:''' New Project Menu
-
</div>
+
|-
 +
|
 +
[[Image:project-Python-new.png|Image project-Python-new]]
 +
|}
-
Select any of the Python example templates on the '''Template''' page, figure [[#figure-esbox_usage_python_01_template|8.24]].
+
Select any of the Python example templates on the '''Template''' page, figure [[#fig:esbox_usage_python_01_template|8.24]].
-
<div id="figure-esbox_usage_python_01_template">
+
{| summary="Python Project Template"
-
[[Image:python-01-template.png|frame|center|alt=Screenshot of Python project template|Figure 8.24: Python Project Template]]
+
|+ align="BOTTOM" |'''Figure 8.24:''' Python Project Template
-
</div>
+
|-
 +
|
 +
[[Image:python-01-template.png|Image python-01-template]]
 +
|}
=== Python Targets ===
=== Python Targets ===
-
Select <code>DIABLO_X86</code> or <code>FREMANTLE_X86</code> as the target, figure [[#figure-esbox_usage_python_02_target|8.25]].
+
Select <span><font face="monospace">DIABLO_X86</font></span> or <span><font face="monospace">FREMANTLE_X86</font></span> as the target, figure [[#fig:esbox_usage_python_02_target|8.25]].
-
<div id="figure-esbox_usage_python_02_target">
+
{| summary="Python Project Target"
-
[[Image:python-02-target.png|frame|center|alt=Screenshot of Python project target|Figure 8.25: Python Project Target]]
+
|+ align="BOTTOM" |'''Figure 8.25:''' Python Project Target
-
</div>
+
|-
 +
|
 +
[[Image:python-02-target.png|Image python-02-target]]
 +
|}
=== Python Metadata ===
=== Python Metadata ===
-
The '''Basic Settings''' page defines different metadata the selected template uses. You can specify additional information in the fields or use the default values, figure [[#figure-esbox_usage_python_03_metadata|8.26]].
+
The '''Basic Settings''' page defines different metadata the selected template uses. You can specify additional information in the fields or use the default values, figure [[#fig:esbox_usage_python_03_metadata|8.26]].
-
<div id="figure-esbox_usage_python_03_metadata">
+
{| summary="Python Project Metadata"
-
[[Image:python-03-metadata.png|frame|center|alt=Screenshot of Python project metadata|Figure 8.26: Python Project Metadata]]
+
|+ align="BOTTOM" |'''Figure 8.26:''' Python Project Metadata
-
</div>
+
|-
 +
|
 +
[[Image:python-03-metadata.png|Image python-03-metadata]]
 +
|}
=== Python Configuration ===
=== Python Configuration ===
Line 251: Line 329:
You can define the Python configuration settings on the last page. If the wizard cannot find an existing Python configuration, it suggests to create a new configuration.
You can define the Python configuration settings on the last page. If the wizard cannot find an existing Python configuration, it suggests to create a new configuration.
-
You can use the default values and click '''Finish''' to a create project, figure [[#figure-esbox_usage_python_04_grammar|8.27]].
+
You can use the default values and click '''Finish''' to a create project, figure [[#fig:esbox_usage_python_04_grammar|8.27]].
-
<div id="figure-esbox_usage_python_04_grammar">
+
{| summary="Python Project Configuration"
-
[[Image:python-04-grammar.png|frame|center|alt=Screenshot of Python project configuration|Figure 8.27: Python Project Configuration]]
+
|+ align="BOTTOM" |'''Figure 8.27:''' Python Project Configuration
-
</div>
+
|-
 +
|
 +
[[Image:python-04-grammar.png|Image python-04-grammar]]
 +
|}
If there is no previous configuration for your project, ESbox asks you to create a new configuration. To create one, click '''Yes'''.
If there is no previous configuration for your project, ESbox asks you to create a new configuration. To create one, click '''Yes'''.
-
For the Python interpreter configuration, you can add all the Python paths and confirm this by clicking '''OK''', figure [[#figure-esbox_usage_python_05_path|8.28]].
+
For the Python interpreter configuration, you can add all the Python paths and confirm this by clicking '''OK''', figure [[#fig:esbox_usage_python_05_path|8.28]].
-
<div id="figure-esbox_usage_python_05_path">
+
{| summary="Python Project Interpreter Paths"
-
[[Image:python-05-path.png|frame|center|alt=Screenshot of Python project interpreter paths|Figure 8.28: Python Project Interpreter Paths]]
+
|+ align="BOTTOM" |'''Figure 8.28:''' Python Project Interpreter Paths
-
</div>
+
|-
 +
|
 +
[[Image:python-05-path.png|Image python-05-path]]
 +
|}
=== Validating Python Project Packages ===
=== Validating Python Project Packages ===
-
When you have created a new project, ESbox suggests package validation. Click '''Yes''' to accept, figure [[#figure-esbox_usage_python_c_05_validate|8.29]].
+
When you have created a new project, ESbox suggests package validation. Click '''Yes''' to accept, figure [[#fig:esbox_usage_python_c_05_validate|8.29]].
-
<div id="figure-esbox_usage_python_c_05_validate">
+
{| summary="Validate Packages"
-
[[Image:c-05-validate.png|frame|center|alt=Screenshot of package validation|Figure 8.29: Validate Packages]]
+
|+ align="BOTTOM" |'''Figure 8.29:''' Validate Packages
-
</div>
+
|-
 +
|
 +
[[Image:c-05-validate.png|Image c-05-validate]]
 +
|}
-
Click '''Finish''' on the Package Validation Wizard dialog, figure [[#figure-esbox_usage_python_c_06_validate_wizard|8.30]]. ESbox installs all the required dependencies for the selected targets.
+
Click '''Finish''' on the Package Validation Wizard dialog, figure [[#fig:esbox_usage_python_c_06_validate_wizard|8.30]]. ESbox installs all the required dependencies for the selected targets.
-
<div id="figure-esbox_usage_python_c_06_validate_wizard">
+
{| summary="Validate Packages Wizard"
-
[[Image:c-06-validate-wizard.png|frame|center|alt=Screenshot of package validation wizard|'''Figure 8.30:''' Validate Packages Wizard]]
+
|+ align="BOTTOM" |'''Figure 8.30:''' Validate Packages Wizard
-
</div>
+
|-
 +
|
 +
[[Image:c-06-validate-wizard.png|Image c-06-validate-wizard]]
 +
|}
If ESbox asks you about changing the target, click '''Yes''' to accept. Accept and install any packages ESbox suggests, and close the package validation wizard when the installation is complete.
If ESbox asks you about changing the target, click '''Yes''' to accept. Accept and install any packages ESbox suggests, and close the package validation wizard when the installation is complete.

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: