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 106: | Line 106: | ||
The problem can be resolved like this (with thanks to Frank Banul in the developer list): | The problem can be resolved like this (with thanks to Frank Banul in the developer list): | ||
- | + | 1) add "deb http://scratchbox.org/debian/ maemo5-sdk main" to /etc/apt/sources.list | |
- | + | ||
- | add | + | 2) run: |
- | + | sudo apt-get remove scratchbox-devkit-debian | |
- | + | sudo apt-get install scratchbox-devkit-debian | |
- | run: | + | sudo apt-get remove scratchbox-devkit-perl |
- | + | sudo apt-get install scratchbox-devkit-perl | |
- | sudo apt-get remove scratchbox-devkit-debian | + | |
- | sudo apt-get install scratchbox-devkit-debian | + | |
- | sudo apt-get remove scratchbox-devkit-perl | + | |
- | sudo apt-get install scratchbox-devkit-perl | + | |
- | + | ||
- | + | ||
- | + | ||
=== Why can I reach an IP-address but no domain inside Scratchbox? === | === Why can I reach an IP-address but no domain inside Scratchbox? === | ||
Line 131: | Line 124: | ||
'''Error messages''' | '''Error messages''' | ||
Depends on the program, which is used. But here a small test client in python: | Depends on the program, which is used. But here a small test client in python: | ||
- | + | ||
- | import urllib2 | + | import urllib2 |
- | print urllib2.urlopen("http://google.com").read() | + | print urllib2.urlopen("http://google.com").read() |
- | + | ||
Then the following error message will be returned: | Then the following error message will be returned: | ||
Line 154: | Line 146: | ||
SBOX> sb-conf in -edFL | SBOX> sb-conf in -edFL | ||
- | This sets the | + | This sets the /scratchbox/etc/resolv.conf as default and ignores the one of the scratchbox. Info about the command you'll find [http://maemo.org/development/sdks/maemo_5_beta_2_sdk_installation/#manualinstall here]. |
These steps should solve the problem. If it still does not work, you could try to replace the entries of the resolv.conf '''within''' the scratchbox with the same entries of the resolv.conf of the '''host''' system by hand. | These steps should solve the problem. If it still does not work, you could try to replace the entries of the resolv.conf '''within''' the scratchbox with the same entries of the resolv.conf of the '''host''' system by hand. | ||
Line 179: | Line 171: | ||
To solve this stop the framework, kill all old processes and start it again. This can be done by: | To solve this stop the framework, kill all old processes and start it again. This can be done by: | ||
- | + | * stop the framework: | |
- | + | ~] > af-sb-init.sh stop | |
- | + | ||
+ | * kill old processes: | ||
+ | ~] > sb-conf killall | ||
+ | |||
+ | * restart: | ||
+ | ~] > af-sb-init.sh start | ||
=== How to install the SDK+ on a Linux AMD64 platform? === | === How to install the SDK+ on a Linux AMD64 platform? === | ||
Line 218: | Line 215: | ||
== Porting to Fremantle == | == Porting to Fremantle == | ||
- | |||
- | |||
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 264: | ||
'''Application Manager''' | '''Application Manager''' | ||
- | * Icon size: | + | * Icon size: HILDON_ICON_SIZE_FINGER. |
* In Gimp or Photoshop: 48x48 pixels | * In Gimp or Photoshop: 48x48 pixels | ||
'''Task Launcher''' | '''Task Launcher''' | ||
- | * Icon size: | + | * Icon size: HILDON_ICON_SIZE_THUMB. |
* In Gimp or Photoshop: 64x64 pixels | * In Gimp or Photoshop: 64x64 pixels | ||
Line 298: | Line 293: | ||
'''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 | + | :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 299: | ||
'''Problem''' | '''Problem''' | ||
- | :Users tend to want to edit /etc/sudoers to allow a command provided by a script they created to run with | + | :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 | + | :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 309: | ||
'''Action''' | '''Action''' | ||
- | :Add your specific sudo configuration to " | + | :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- | + | :Run update-sudores and profit. |
== Qt == | == Qt == | ||
Line 342: | Line 337: | ||
=== 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 | + | 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 343: | ||
dpkg-depcheck -m dpkg-buildpackage -rfakeroot -b | dpkg-depcheck -m dpkg-buildpackage -rfakeroot -b | ||
- | in the source tree. (You'll need to | + | 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 365: | ||
=== 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 | + | 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.