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 36 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 289: Line 289:
First, select the build configuration. Change the build configuration to <span><font face="monospace">DIABLO_X86</font></span> or <span><font face="monospace">FREMANTLE_X86</font></span>.
First, select the build configuration. Change the build configuration to <span><font face="monospace">DIABLO_X86</font></span> or <span><font face="monospace">FREMANTLE_X86</font></span>.
-
Right-click the project and select '''Properties''', figures [[#figure-esbox_usage_python_06_properties|8.31]].
+
Right-click the project and select '''Properties''', figures [[#fig:esbox_usage_python_06_properties|8.31]].
-
<div id="figure-esbox_usage_python_06_properties">
+
{| summary="Python Project Properties"
-
[[Image:python-06-properties.png|frame|center|alt=Screenshot of Python project properties|Figure 8.31: Python Project Properties]]
+
|+ align="BOTTOM" |'''Figure 8.31:''' Python Project Properties
-
</div>
+
|-
 +
|
 +
[[Image:python-06-properties.png|Image python-06-properties]]
 +
|}
-
Select '''Maemo Build Configurations''' and activate the configuration, figures [[#figure-esbox_usage_python_07_configuration|8.32]]
+
Select '''Maemo Build Configurations''' and activate the configuration, figures [[#fig:esbox_usage_python_07_configuration|8.32]]
-
<div id="figure-esbox_usage_python_07_configuration">
+
{| summary="Python Project Build Configuration"
-
[[Image:python-07-configuration.png|frame|center|alt=Screenshot of Python project build configuration|Figure 8.32: Python Project Build Configuration]]
+
|+ align="BOTTOM" |'''Figure 8.32:''' Python Project Build Configuration
-
</div>
+
|-
 +
|
 +
[[Image:python-07-configuration.png|Image python-07-configuration]]
 +
|}
-
To launch the project on Maemo SDK, right-click the project and select '''Run As &gt; Python Maemo Local Application''', figure [[#figure-esbox_usage_python_08_run_as|8.33]].
+
To launch the project on Maemo SDK, right-click the project and select '''Run As &gt; Python Maemo Local Application''', figure [[#fig:esbox_usage_python_08_run_as|8.33]].
-
<div id="figure-esbox_usage_python_08_run_as">
+
{| summary="Python Project Run as Local Application"
-
[[Image:python-08-run-as.png|frame|center|alt=Screenshot of Pyton project run as a local application|Figure 8.33: Python Project Run as Local Application]]
+
|+ align="BOTTOM" |'''Figure 8.33:''' Python Project Run as Local Application
-
</div>
+
|-
 +
|
 +
[[Image:python-08-run-as.png|Image python-08-run-as]]
 +
|}
-
Select the file you want to run on Maemo SDK. Do not select setup.py because it is used only for Debian package creation, figure [[#figure-esbox_usage_python_09_run_file|8.34]].
+
Select the file you want to run on Maemo SDK. Do not select setup.py because it is used only for Debian package creation, figure [[#fig:esbox_usage_python_09_run_file|8.34]].
-
<div id="figure-esbox_usage_python_09_run_file">
+
{| summary="Python Project Select File on Launch"
-
[[Image:python-09-run-file.png|frame|center|alt=Screenshot of selecting a file on launch of a Python project|Figure 8.34: Python Project Select File on Launch]]
+
|+ align="BOTTOM" |'''Figure 8.34:''' Python Project Select File on Launch
-
</div>
+
|-
 +
|
 +
[[Image:python-09-run-file.png|Image python-09-run-file]]
 +
|}
-
If Maemo Application Framework is not running, ESbox asks you to launch it. When you have launched Maemo Application Framework successfully, you can see the Application Framework and the program running, figure [[#figure-esbox_usage_python_10_result|8.35]].
+
If Maemo Application Framework is not running, ESbox asks you to launch it. When you have launched Maemo Application Framework successfully, you can see the Application Framework and the program running, figure [[#fig:esbox_usage_python_10_result|8.35]].
-
<div id="figure-esbox_usage_python_10_result">
+
{| summary="Python Project Local Launch Result"
-
[[Image:python-10-result.png|frame|center|alt=Screenshot of the result of launching a local Python project|Figure 8.35: Python Project Local Launch Result]]
+
|+ align="BOTTOM" |'''Figure 8.35:''' Python Project Local Launch Result
-
</div>
+
|-
 +
|
 +
[[Image:python-10-result.png|Image python-10-result]]
 +
|}
== Running Python Applications on a Maemo Device ==
== Running Python Applications on a Maemo Device ==
Line 323: Line 338:
To be able to run your Python 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 Python 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.
-
First, make sure that <code>DIABLO_ARMEL</code> or <code>FREMANTLE_ARMEL</code> target is selected by right-clicking the project and selecting '''Maemo Build Configurations'''. Select <code>DIABLO_ARMEL</code> or <code>FREMANTLE_ARMEL</code> as the target, figure [[#figure-esbox_usage_python_remote_02_target|8.36]].
+
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 '''Maemo Build Configurations'''. Select <span><font face="monospace">DIABLO_ARMEL</font></span> or <span><font face="monospace">FREMANTLE_ARMEL</font></span> as the target, figure [[#fig:esbox_usage_python_remote_02_target|8.36]].
-
<div id="figure-esbox_usage_python_remote_02_target">
+
{| summary="Select Python Project Target"
-
[[Image:python-remote-02-target.png|frame|center|alt=Screenshot of selecting a Python project target|Figure 8.36: Select Python Project Target]]
+
|+ align="BOTTOM" |'''Figure 8.36:''' Select Python Project Target
-
</div>
+
|-
 +
|
 +
[[Image:python-remote-02-target.png|Image python-remote-02-target]]
 +
|}
If there is no configuration for the target, ESbox asks you to create one. To configure a new target, click '''Select all'''.
If there is no configuration for the target, ESbox asks you to create one. To configure a new target, click '''Select all'''.
Line 335: Line 353:
To be able to run your application on a 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 a 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_python_c_remote_04_validate_device|8.37]].
+
Select '''Project Menu &gt; Validate Installed Packages'''. On the first page, select the project to be validated, figure [[#fig:esbox_usage_python_c_remote_04_validate_device|8.37]].
-
<div id="figure-esbox_usage_python_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.37: Validate Packages Menu]]
+
|+ align="BOTTOM" |'''Figure 8.37:''' 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 <code>ARMEL</code> target, Figure [[#figure-esbox_usage_python_c_remote_05_validate_targets|8.38]].
+
On the '''Target Selection''' page, select the correct Maemo device connection and <span><font face="monospace">ARMEL</font></span> target, Figure [[#fig:esbox_usage_python_c_remote_05_validate_targets|8.38]].
-
<div id="figure-esbox_usage_python_c_remote_05_validate_targets">
+
{| summary="Validate Package Targets"
-
[[Image:c-remote-05-validate-targets.png|frame|center|alt=Screenshot of validating package targets|'''Figure 8.38:''' Validate Package Targets]]
+
|+ align="BOTTOM" |'''Figure 8.38:''' 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 355: Line 379:
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 <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 [[#figure-esbox_usage_python_remote_03_run|8.39]].
+
After you have set the target to <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_python_remote_03_run|8.39]].
-
<div id="figure-esbox_usage_python_remote_03_run">
+
{| summary="Python Project Run as Remote Application"
-
[[Image:python-remote-03-run.png|frame|center|alt=Screenshot of Python project being run as a remote application|Figure 8.39: Python Project Run as Remote Application]]
+
|+ align="BOTTOM" |'''Figure 8.39:''' Python Project Run as Remote Application
-
</div>
+
|-
 +
|
 +
[[Image:python-remote-03-run.png|Image python-remote-03-run]]
 +
|}
-
Select the Python file you want to run. Do not select <code>setup.py</code> because it is used only for Debian package creation. Select SSH as the connection type (using SBRSH requires additional configuration). Select the correct device connection.
+
Select the Python file you want to run. Do not select setup.py because it is used only for Debian package creation. Select SSH as the connection type (using SBRSH requires additional configuration). Select the correct device connection.
You can now see your application running on the Maemo device.
You can now see your application running on the Maemo device.
Line 368: Line 395:
{{ambox
{{ambox
-
|text=To be able to use VNC Viewer, the <code>x11vnc</code> service must be installed on the Maemo device either separately (<code>apt-get install x11vnc</code>) or as part of Maemo PC Connectivity.
+
|text=To be able 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 Python Applications ==
== Debugging Python 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_python_debug_01_breakpoint|8.40]].
+
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_python_debug_01_breakpoint|8.40]].
-
<div id="figure-esbox_usage_python_debug_01_breakpoint">
+
{| summary="Add Breakpoint to Python Project"
-
[[Image:python-debug-01-breakpoint.png|frame|center|alt=Screenshot of adding a breakpoint to a Python project|Figure 8.40: Add Breakpoint to Python Project]]
+
|+ align="BOTTOM" |'''Figure 8.40:''' Add Breakpoint to Python Project
-
</div>
+
|-
 +
|
 +
[[Image:python-debug-01-breakpoint.png|Image python-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_python_debug_02_debug|8.41]].
+
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_python_debug_02_debug|8.41]].
-
<div id="figure-esbox_usage_python_debug_02_debug">
+
{| summary="Debug Python Project as"
-
[[Image:python-debug-02-debug.png|frame|center|alt=Screenshot of debugging a Python project|Figure 8.41: Debug Python Project as]]
+
|+ align="BOTTOM" |'''Figure 8.41:''' Debug Python Project as
-
</div>
+
|-
 +
|
 +
[[Image:python-debug-02-debug.png|Image python-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_python_debug_03_perspective|8.42]] and [[#figure-esbox_usage_python_debug_04_variables|8.43]].
+
In the debug perspective, you can stop and continue the execution, step lines, inspect variables, and so on. See Figures [[#fig:esbox_usage_python_debug_03_perspective|8.42]] and [[#fig:esbox_usage_python_debug_04_variables|8.43]].
{{ambox
{{ambox
Line 391: Line 424:
}}
}}
-
<div id="figure-esbox_usage_python_debug_03_perspective">
+
{| summary="Python Debug View"
-
[[Image:python-debug-03-perspective.png|frame|center|alt=Screenshot of Python debug view|Figure 8.42: Python Debug View]]
+
|+ align="BOTTOM" |'''Figure 8.42:''' Python Debug View
-
</div>
+
|-
 +
|
 +
[[Image:python-debug-03-perspective.png|Image python-debug-03-perspective]]
 +
|}
-
<div id="figure-esbox_usage_python_debug_04_variables">
+
{| summary="Inspect Python Variables"
-
[[Image:python-debug-04-variables.png|frame|center|alt=Screenshot of inspecting Python variables|Figure 8.43: Inspect Python Variables]]
+
|+ align="BOTTOM" |'''Figure 8.43:''' Inspect Python Variables
-
</div>
+
|-
 +
|
 +
[[Image:python-debug-04-variables.png|Image python-debug-04-variables]]
 +
|}
== Debian Packaging ESbox Project ==
== Debian Packaging ESbox Project ==
Line 405: Line 444:
=== Debian Package Structure ===
=== Debian Package Structure ===
-
Debian structure is <code>debian</code> folder under project directory. If you do not have Debian structure in your project you can create it by right clicking project and choosing '''Debian Package &gt; Create Debian Structure'''.
+
Debian structure is <span><font face="monospace">debian</font></span> folder under project directory. If you do not have Debian structure in your project you can create it by right clicking project and choosing '''Debian Package &gt; Create Debian Structure'''.
Python projects need setup.py script to create a Debian package and it should be in the project root folder. You can create setup.py from the last page of the '''Structure''' wizard.
Python projects need setup.py script to create a Debian package and it should be in the project root folder. You can create setup.py from the last page of the '''Structure''' wizard.
-
ESbox does not automate the whole Debian structure creation process, so you might need to manually modify the files in <code>debian</code> folder. A Debian installation package is built using <code>Makefile</code> located at <code>debian/rules</code> directory. Other files are usually install scripts and metadata.
+
ESbox does not automate the whole Debian structure creation process, so you might need to manually modify the files in <span><font face="monospace">debian</font></span> folder. A Debian installation package is built using <span><font face="monospace">Makefile</font></span> located at <span><font face="monospace">debian/rules</font></span> directory. Other files are usually install scripts and metadata.
You can find complete information on the Debian installation package structure from [http://www.debian.org/doc/maint-guide/ Debian New Maintainers' Guide]
You can find complete information on the Debian installation package structure from [http://www.debian.org/doc/maint-guide/ Debian New Maintainers' Guide]
Line 429: Line 468:
=== Repositories and package types ===
=== Repositories and package types ===
-
In the Debian package manager <code>apt</code> (used in Scratchbox and Maemo devices), the <code>sources.list</code> repository configuration files contain two kinds of entries: <code>deb</code> and <code>deb-src</code> repositories. Both point to external or local repositories of packages (called system packages here). <code>deb</code> repositories point to binary packages while <code>deb-src</code> repositories point to the (usually in sync) source packages for those binary packages.
+
In the Debian package manager <span><font face="monospace">apt</font></span> (used in Scratchbox and Maemo devices), the <span><font face="monospace">sources.list</font></span> repository configuration files contain two kinds of entries: <span><font face="monospace">deb</font></span> and <span><font face="monospace">deb-src</font></span> repositories. Both point to external or local repositories of packages (called system packages here). <span><font face="monospace">deb</font></span> repositories point to binary packages while <span><font face="monospace">deb-src</font></span> repositories point to the (usually in sync) source packages for those binary packages.
One source package may generate several binary packages; for instance, one for programs and primary data, one for auxiliary data, one for libraries, and one for development.
One source package may generate several binary packages; for instance, one for programs and primary data, one for auxiliary data, one for libraries, and one for development.
-
In <code>apt</code>, when fetching the sources for a binary package, you start with an interesting binary package and find its corresponding source package (for example, <code>apt-get source <package></code>).
+
In <span><font face="monospace">apt</font></span>, when fetching the sources for a binary package, you start with an interesting binary package and find its corresponding source package (for example, <span><font face="monospace">apt-get source &lt;package&gt;</font></span>).
=== Source package structure ===
=== Source package structure ===
-
The sources for a package come usually in three files: a ''control file'' (<code>*.dsc</code>), an ''archive'' (<code>*.tar.gz</code> or <code>*.tar.bz2</code>), and a ''patch'' (<code>*.diff.gz</code>). <code>apt-get source</code> command invokes the <code>dpkg-source</code> command to expand the archive and apply the patch. The control file is used when rebuilding the binary package.
+
The sources for a package come usually in three files: a ''control file'' (<span><font face="monospace"><nowiki>*.dsc</nowiki></font></span>), an ''archive'' (<span><font face="monospace"><nowiki>*.tar.gz</nowiki></font></span> or <span><font face="monospace"><nowiki>*.tar.bz2</nowiki></font></span>), and a ''patch'' (<span><font face="monospace"><nowiki>*.diff.gz</nowiki></font></span>). <span><font face="monospace">apt-get source</font></span> command invokes the <span><font face="monospace">dpkg-source</font></span> command to expand the archive and apply the patch. The control file is used when rebuilding the binary package.
-
Once extracted, the contents of the original patched sources vary wildly. The contents may contain a bare-bones <code>Makefile</code> project, an autotools-based project, a nest of programs and libraries and test code, or even another archive.
+
Once extracted, the contents of the original patched sources vary wildly. The contents may contain a bare-bones <span><font face="monospace">Makefile</font></span> project, an autotools-based project, a nest of programs and libraries and test code, or even another archive.
-
There is one guarantee, though: the package expands to contain a <code>debian</code> directory and its various control files (see the "Source packages" chapter of the [http://www.debian.org/doc/debian-policy/ch-source.html Debian Policy Manual] for more details).
+
There is one guarantee, though: the package expands to contain a <span><font face="monospace">debian</font></span> directory and its various control files (see the "Source packages" chapter of the [http://www.debian.org/doc/debian-policy/ch-source.html Debian Policy Manual] for more details).
-
The <code>debian/rules</code> file is an executable <code>Makefile</code> which is the primary means of interaction with the source from the perspective of a Debian package. In other words, even if the extracted sources contain autoconf files or <code>Makefiles</code>, you must use <code>debian/rules</code> to configure, build, clean, install, and re-package the package.
+
The <span><font face="monospace">debian/rules</font></span> file is an executable <span><font face="monospace">Makefile</font></span> which is the primary means of interaction with the source from the perspective of a Debian package. In other words, even if the extracted sources contain autoconf files or <span><font face="monospace">Makefiles</font></span>, you must use <span><font face="monospace">debian/rules</font></span> to configure, build, clean, install, and re-package the package.
-
For example, <code>debian/rules configure</code>, <code>debian/rules build</code>, <code>debian/rules install</code> are typical ways to use a source package.
+
For example, <span><font face="monospace">debian/rules configure</font></span>, <span><font face="monospace">debian/rules build</font></span>, <span><font face="monospace">debian/rules install</font></span> are typical ways to use a source package.
-
It must be mentioned that even <code>debian/rules</code> can have varying degrees of fluctuation in the targets it provides. Most packages not developed in the Debian project itself come from a large community of people who think differently, and the targets vary accordingly. While the utility <code>dh_make</code> tries to promote a standard set of guidelines, some projects may, for instance, lack a <code>configure</code> target (or have several), lack a <code>build</code> target (or have several), and so on.
+
It must be mentioned that even <span><font face="monospace">debian/rules</font></span> can have varying degrees of fluctuation in the targets it provides. Most packages not developed in the Debian project itself come from a large community of people who think differently, and the targets vary accordingly. While the utility <span><font face="monospace">dh_make</font></span> tries to promote a standard set of guidelines, some projects may, for instance, lack a <span><font face="monospace">configure</font></span> target (or have several), lack a <span><font face="monospace">build</font></span> target (or have several), and so on.
ESbox attempts to corral this kind of diversity with its import wizard.
ESbox attempts to corral this kind of diversity with its import wizard.
Line 453: Line 492:
=== Using the Wizard ===
=== Using the Wizard ===
-
Find the wizard under '''File &gt; Import &gt; ESbox &gt; Project from Debian Repository''', figure [[#figure-esbox_usage_import_package_wizard|8.44]].
+
Find the wizard under '''File &gt; Import &gt; ESbox &gt; Project from Debian Repository''', figure [[#fig:esbox_usage_import_package_wizard|8.44]].
-
<div id="figure-esbox_usage_import_package_wizard">
+
{| summary="Import"
-
[[Image:ImportPackageWizard.png|frame|center|alt=Screenshot of project import|Figure 8.44: Import]]
+
|+ align="BOTTOM" |'''Figure 8.44:''' Import
-
</div>
+
|-
 +
|
 +
[[Image:ImportPackageWizard.png|Image ImportPackageWizard]]
 +
|}
-
Select the package to import, figure [[#figure-esbox_usage_import_package_select|8.45]].
+
Select the package to import, figure [[#fig:esbox_usage_import_package_select|8.45]].
-
<div id="figure-esbox_usage_import_package_select">
+
{| summary="Import ESbox Project from Repository - Select Package"
-
[[Image:ImportPackageSelect.png|frame|center|alt=Screenshot of selecting a package during ESBox prject import|Figure 8.45: Import ESbox Project from Repository - Select Package]]
+
|+ align="BOTTOM" |'''Figure 8.45:''' Import ESbox Project from Repository - Select Package
-
</div>
+
|-
 +
|
 +
[[Image:ImportPackageSelect.png|Image ImportPackageSelect]]
 +
|}
The target providing packages is one of the Scratchbox targets on the host PC.
The target providing packages is one of the Scratchbox targets on the host PC.
{{ambox
{{ambox
-
|text=The target must have the necessary <code>deb-src</code> entries in <code>sources.list</code>. Standard Maemo SDK configurations have such entries by default.
+
|text=The target must have the necessary <span><font face="monospace">deb-src</font></span> entries in <span><font face="monospace">sources.list</font></span>. Standard Maemo SDK configurations have such entries by default.
|}
|}
Line 477: Line 522:
The '''Always re-fetch source components''' option asks the wizard to always go to the network and find the source components (the .dsc file, archives, and patches) for the package. This may be necessary if you have modified the package locally.
The '''Always re-fetch source components''' option asks the wizard to always go to the network and find the source components (the .dsc file, archives, and patches) for the package. This may be necessary if you have modified the package locally.
-
The '''Delete source components''' option deletes the <code>.dsc</code> file, source archives, and patches after extraction.
+
The '''Delete source components''' option deletes the <span><font face="monospace">.dsc</font></span> file, source archives, and patches after extraction.
-
Next, select the build targets for the package, figure [[#figure-esbox_usage_import_package_project|8.46]].
+
Next, select the build targets for the package, figure [[#fig:esbox_usage_import_package_project|8.46]].
-
<div id="figure-esbox_usage_import_package_project">
+
{| summary="Import ESbox Project from Repository - Project Configuration"
-
[[Image:ImportPackageProject.png|frame|center|alt=Screenshot of project configuration during import of ESBox project|Figure 8.46: Import ESbox Project from Repository - Project Configuration]]
+
|+ align="BOTTOM" |'''Figure 8.46:''' Import ESbox Project from Repository - Project Configuration
-
</div>
+
|-
 +
|
 +
[[Image:ImportPackageProject.png|Image ImportPackageProject]]
 +
|}
-
The next page prepares for the source fetch, figure [[#figure-esbox_usage_import_package_fetch0|8.47]].
+
The next page prepares for the source fetch, figure [[#fig:esbox_usage_import_package_fetch0|8.47]].
-
<div id="figure-esbox_usage_import_package_fetch0">
+
{|
-
[[Image:ImportPackageFetch0.png|frame|center|alt=Screenshot of fetching and imprting during import of a ESBox project|Figure 8.47: Import ESbox Project from Repository - Fetching and Importing, proxy]]
+
|+ align="BOTTOM" |'''Figure 8.47:''' Import ESbox Project from Repository - Fetching and Importing, proxy
-
</div>
+
|-
 +
|
 +
[[Image:ImportPackageFetch0.png|Image ImportPackageFetch0]]
 +
|}
Visit the link to ensure your proxy is configured, or else the download does not work.
Visit the link to ensure your proxy is configured, or else the download does not work.
-
Press '''Next''' to start the process, figure [[#figure-esbox_usage_import_package_fetch1|8.48]].
+
Press '''Next''' to start the process, figure [[#fig:esbox_usage_import_package_fetch1|8.48]].
-
<div id="figure-esbox_usage_import_package_fetch1">
+
{|
-
[[Image:ImportPackageFetch1.png|frame|center|alt=Screenshot of fetching and imprting during import of an ESBox project|Figure 8.48: Import ESbox Project from Repository - Fetching and Importing, fetching]]
+
|+ align="BOTTOM" |'''Figure 8.48:''' Import ESbox Project from Repository - Fetching and Importing, fetching
-
</div>
+
|-
 +
|
 +
[[Image:ImportPackageFetch1.png|Image ImportPackageFetch1]]
 +
|}
-
If the fetch fails then it is usually indicated by a long pause after the '''Building dependency tree''' message - press '''Cancel''' to abort the process. You can select '''View Log''' from the dialog, press '''Back''', then press '''Next''' again to retry.
+
If the fetch fails â usually indicated by a long pause after the '''Building dependency tree''' message - press '''Cancel''' to abort the process. You can select '''View Log''' from the dialog, press '''Back''', then press '''Next''' again to retry.
The next page lets you choose the project type and builder for the package.
The next page lets you choose the project type and builder for the package.
-
This is a normal case, figure [[#figure-esbox_usage_import_package_convert1|8.49]].
+
This is a normal case, figure [[#fig:esbox_usage_import_package_convert1|8.49]].
-
<div id="figure-esbox_usage_import_package_convert1">
+
{| summary="Import ESbox Project from Repository - Convert Project"
-
[[Image:ImportPackageConvert1.png|frame|center|alt=Screenshot of convert a project during import of an ESBox project|Figure 8.49: Import ESbox Project from Repository - Convert Project]]
+
|+ align="BOTTOM" |'''Figure 8.49:''' Import ESbox Project from Repository - Convert Project
-
</div>
+
|-
 +
|
 +
[[Image:ImportPackageConvert1.png|Image ImportPackageConvert1]]
 +
|}
-
Here, the project (sysstat from earlier pages) expands into a project with a <code>Makefile</code>. Also (off-screen) there are C sources and headers. Thus, the wizard is able to guess the project type. This page, therefore, is merely informative and you can press '''Next'''.
+
Here, the project (sysstat from earlier pages) expands into a project with a <span><font face="monospace">Makefile</font></span>. Also (off-screen) there are C sources and headers. Thus, the wizard is able to guess the project type. This page, therefore, is merely informative and you can press '''Next'''.
An imported package may, however, be provided as a compressed archive with patches. In this case, you can preconfigure the project to extract the sources and decide whether the project is really the one you are looking for.
An imported package may, however, be provided as a compressed archive with patches. In this case, you can preconfigure the project to extract the sources and decide whether the project is really the one you are looking for.
-
The following screenshot shows the inimitable bash shell, which is packaged as an archive, figure [[#figure-esbox_usage_import_package_convert2|8.50]].
+
The following screenshot shows the inimitable bash shell, which is packaged as an archive, figure [[#fig:esbox_usage_import_package_convert2|8.50]].
-
<div id="figure-esbox_usage_import_package_convert2">
+
{| summary="Import ESbox Project from Repository - Convert Project, compressed archive"
-
[[Image:ImportPackageConvert2.png|frame|center|alt=Screenshot of project conversion during import of an ESBox project|Figure 8.50: Import ESbox Project from Repository - Convert Project, compressed archive]]
+
|+ align="BOTTOM" |'''Figure 8.50:''' Import ESbox Project from Repository - Convert Project, compressed archive
-
</div>
+
|-
 +
|
 +
[[Image:ImportPackageConvert2.png|Image ImportPackageConvert2]]
 +
|}
To handle this case, the wizard selects a build rule, which appears to be a configuration rule. This would be expected to extract the archive and apply the patches.
To handle this case, the wizard selects a build rule, which appears to be a configuration rule. This would be expected to extract the archive and apply the patches.
-
You can manually select the rule for configuration, if desired. For example, bash can be built in several configurations for different footprints. Here are the rules found in bash's <code>debian/rules</code>, figure [[#figure-esbox_usage_import_package_convert3|8.51]].
+
You can manually select the rule for configuration, if desired. For example, bash can be built in several configurations for different footprints. Here are the rules found in bash's <span><font face="monospace">debian/rules</font></span>, figure [[#fig:esbox_usage_import_package_convert3|8.51]].
-
<div id="figure-esbox_usage_import_package_convert3">
+
{| summary="Import ESbox Project from Repository - Convert Project, rule selection"
-
[[Image:ImportPackageConvert3.png|frame|center|alt=Screenshot of project conversion during import of an ESBox project|Figure 8.51: Import ESbox Project from Repository - Convert Project, rule selection]]
+
|+ align="BOTTOM" |'''Figure 8.51:''' Import ESbox Project from Repository - Convert Project, rule selection
-
</div>
+
|-
 +
|
 +
[[Image:ImportPackageConvert3.png|Image ImportPackageConvert3]]
 +
|}
Select a rule and click '''Setup project...''' to run the build for the given rule. The build results go to the Console behind the wizard.
Select a rule and click '''Setup project...''' to run the build for the given rule. The build results go to the Console behind the wizard.
-
For <code>bash</code>, and probably other packages, this configure step actually proceeds to build the entire program and run its tests, you may '''Cancel''' after the archive has been extracted and the patches have been applied, then proceed with the wizard, figure [[#figure-esbox_usage_import_package_convert3b|8.52]].
+
For <span><font face="monospace">bash</font></span>, and probably other packages, this configure step actually proceeds to build the entire program and run its tests â you may '''Cancel''' after the archive has been extracted and the patches have been applied, then proceed with the wizard, figure [[#fig:esbox_usage_import_package_convert3b|8.52]].
-
<div id="figure-esbox_usage_import_package_convert3b">
+
{| summary="Import ESbox Project from Repository - Convert Project, building"
-
[[Image:ImportPackageConvert3b.png|frame|center|alt=Screenshot of building during import of an ESBox project|Figure 8.52: Import ESbox Project from Repository - Convert Project, building]]
+
|+ align="BOTTOM" |'''Figure 8.52:''' Import ESbox Project from Repository - Convert Project, building
-
</div>
+
|-
 +
|
 +
[[Image:ImportPackageConvert3b.png|Image ImportPackageConvert3b]]
 +
|}
-
Once the configuration step has been run, the conversion page updates its guess about the project, figure [[#figure-esbox_usage_import_package_convert4|8.53]].
+
Once the configuration step has been run, the conversion page updates its guess about the project, figure [[#fig:esbox_usage_import_package_convert4|8.53]].
-
<div id="figure-esbox_usage_import_package_convert4">
+
{| summary="Import ESbox Project from Repository - Convert Project, updated"
-
[[Image:ImportPackageConvert4.png|frame|center|alt=Screenshot of project conversion during import of an ESBox project|Figure 8.53: Import ESbox Project from Repository - Convert Project, updated]]
+
|+ align="BOTTOM" |'''Figure 8.53:''' Import ESbox Project from Repository - Convert Project, updated
-
</div>
+
|-
 +
|
 +
[[Image:ImportPackageConvert4.png|Image ImportPackageConvert4]]
 +
|}
Once the project type and builder type are known, you can '''Finish''' the wizard.
Once the project type and builder type are known, you can '''Finish''' the wizard.

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: