Editing Developer FAQ

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 218: Line 218:
== Porting to Fremantle ==
== Porting to Fremantle ==
-
 
-
{{main|Documentation/Maemo 5 Developer Guide/Porting Software}}
 
This section is intended to consolidate the common errors that occur while trying to port [[Open development/Maemo roadmap/Diablo|Diablo]] applications to [[Open development/Maemo roadmap/Fremantle|Fremantle]]. Feel free to improve this page and/or add additional information.
This section is intended to consolidate the common errors that occur while trying to port [[Open development/Maemo roadmap/Diablo|Diablo]] applications to [[Open development/Maemo roadmap/Fremantle|Fremantle]]. Feel free to improve this page and/or add additional information.
Line 269: Line 267:
'''Application Manager'''
'''Application Manager'''
-
* Icon size: <code>HILDON_ICON_SIZE_FINGER</code>
+
* Icon size: HILDON_ICON_SIZE_FINGER.
* In Gimp or Photoshop: 48x48 pixels
* In Gimp or Photoshop: 48x48 pixels
'''Task Launcher'''
'''Task Launcher'''
-
* Icon size: <code>HILDON_ICON_SIZE_THUMB</code>
+
* Icon size: HILDON_ICON_SIZE_THUMB.
* In Gimp or Photoshop: 64x64 pixels
* In Gimp or Photoshop: 64x64 pixels
Line 298: Line 296:
'''Action'''
'''Action'''
:Create '''upstart''' job definitions instead of init scripts.  Information on writing these can be found on http://upstart.ubuntu.com/getting-started.html. However, be aware that the directory used on Maemo 5 is <code>/etc/event.d</code>.
:Create '''upstart''' job definitions instead of init scripts.  Information on writing these can be found on http://upstart.ubuntu.com/getting-started.html. However, be aware that the directory used on Maemo 5 is <code>/etc/event.d</code>.
-
:The job script should be placed in <code>/etc/event.d/''package''</code>.  And the package postinst, prerm and postrm should use the ''start --quiet'' and ''stop --quiet'' commands to start and stop the service.  Unfortunately there is no debhelper tool to assist with this.
+
:The job script should be placed in /etc/event.d/''package''.  And the package postinst, prerm and postrm should use the ''start --quiet'' and ''stop --quiet'' commands to start and stop the service.  Unfortunately there is no debhelper tool to assist with this.
Line 304: Line 302:
'''Problem'''
'''Problem'''
-
:Users tend to want to edit /etc/sudoers to allow a command provided by a script they created to run with raised privileges. This is highly likely to result in a bricked device forcing you to re-flash to make it work again from scratch.
+
:Users tend to want to edit /etc/sudoers to allow a command provided by a script they created to run with raise privileges. This is highly likely to result in a bricked device forcing you to re-flash to make it work again from scratch.
'''Reason'''
'''Reason'''
-
:The <code>/etc/sudoers</code> file seems deceivingly straight forward to edit. It's not:
+
:The /etc/sudoers file seems deceivingly straight forward to edit. It's not:
   <code>
   <code>
     17:27 < MohammadAG51> listen to that advice<BR>
     17:27 < MohammadAG51> listen to that advice<BR>
Line 314: Line 312:
'''Action'''
'''Action'''
-
:Add your specific sudo configuration to "<code>/etc/sudoers.d/*</code>" as a new file (courtuesy to the reader, you are advised to read [http://www.sudo.ws/sudo/sudoers.man.html this] to understand how to create sudoers.d/ snippets appropriate for your application or script.
+
:Add your specific sudo configuration to "/etc/sudoers.d/*" as a new file (courtuesy to the reader, you are advice to read [http://www.sudo.ws/sudo/sudoers.man.html this] to understand how to create sudoers.d/ snippets appropriate for your application or script.
-
:Run update-sudoers and profit.
+
:Run update-sudores and profit.
== Qt ==
== Qt ==
Line 342: Line 340:
=== Build failed: No such file or directory in log file ===
=== Build failed: No such file or directory in log file ===
-
You probably forgot to specify the correct Build-Depends in <code>debian/control</code>. The autobuilder starts every build with a clean SDK image. If you need any application during building which is not available in the default SDK image, you need to specify it specifically.
+
You probably forgot to specify the correct Build-Depends in debian/control. The autobuilder starts every build with a clean SDK image. If you need any application during building which is not available in the default SDK image, you need to specify it specifically.
You may verify that your Build-Depends field in debian/control is complete by running
You may verify that your Build-Depends field in debian/control is complete by running
Line 348: Line 346:
  dpkg-depcheck -m dpkg-buildpackage -rfakeroot -b
  dpkg-depcheck -m dpkg-buildpackage -rfakeroot -b
-
in the source tree.  (You'll need to "<code>fakeroot apt-get install devscripts</code>" for this to work).
+
in the source tree.  (You'll need to <code>fakeroot apt-get install devscripts</code> for this to work).
=== Build failed, works in my own scratchbox ===
=== Build failed, works in my own scratchbox ===
Line 370: Line 368:
=== How do I enable extras, extras-testing, and extras-devel in Scratchbox ===
=== How do I enable extras, extras-testing, and extras-devel in Scratchbox ===
-
Add the following lines to <code>/etc/apt/sources.list</code> from within scratchbox:
+
Add the following lines to /etc/apt/sources.list from within scratchbox:
  deb http://repository.maemo.org/extras/ fremantle free non-free
  deb http://repository.maemo.org/extras/ fremantle free non-free
  deb-src http://repository.maemo.org/extras/ fremantle free
  deb-src http://repository.maemo.org/extras/ fremantle free

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: