[maemo-developers] Tips for making an application installer package
Through somewhat painful trial and error, I've discovered that the most effective way to make a package from a standard source tarball (which uses autoconf) is to: - configure with --prefix=/var/lib/install/usr - add the following lines to debian/rules after the $(MAKE) install line: mv $(CURDIR)/debian/p/var/lib/install/* $(CURDIR)/debian/p/ rm -rf $(CURDIR)/debian/p/var (where p is replaced by the package name). This method means that the installed files correctly reference /var/lib/install where they need to (e.g. config files, shell scripts, libtool .la files), but that the .deb contains files whose names don't include the leading /var/lib/install - which appears to be what the application installer requires. Has anyone else reached the same or a different conclusion? Are these tips already documented anywhere? Regards, Neil ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Tips for making an application installer package
Yes, I do the same thing.Moreover, if your project doesn't orginally contain .service and .desktop files you should manually create theme somewhere in your source dir and add these lines to debian/rules (and create p.links accordingly to the Wiki, of course):mkdir -p $(CURDIR)/debian/p/usr/share/applications/hildoncp -vf $(CURDIR)/p.desktop $(CURDIR)/debian/p/usr/share/applications/hildonmkdir -p $(CURDIR)/debian/p/usr/lib/dbus- 1.0/servicescp -f $(CURDIR)/p.service $(CURDIR)/debian/p/usr/lib/dbus-1.0/servicesLuca Donaggio2006/2/22, Neil Jerram [EMAIL PROTECTED] :Through somewhat painful trial and error, I've discovered that themost effective way to make a package from a standard source tarball (which uses autoconf) is to:- configure with --prefix=/var/lib/install/usr- add the following lines to debian/rules after the $(MAKE) installline:mv $(CURDIR)/debian/p/var/lib/install/* $(CURDIR)/debian/p/ rm -rf $(CURDIR)/debian/p/var(where p is replaced by the package name).This method means that the installed files correctly reference/var/lib/install where they need to (e.g. config files, shell scripts, libtool .la files), but that the .deb contains files whose names don'tinclude the leading /var/lib/install - which appears to be what theapplication installer requires.Has anyone else reached the same or a different conclusion?Are these tips already documented anywhere?Regards,Neil___maemo-developers mailing listmaemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
[maemo-developers] Old FIASCO versions?
Hi all, is there an archive existing with all the old Fiasco versions? - I'm searching for 46-1. I have found only two different versions (45-8 and 51-13) here [1], but that's all. Cheers, Timo [1]: http://www.maemo.org/downloads/nokia_770.php ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
[maemo-developers] Profiling on the device?
Hi all, has anyone tried to profile an application on the device? - What is the best way to do this? Cheers, Timo ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
[maemo-developers] Profiling on the device?
Hi, has anyone tried to profile an application on the device? What is the best way to do this? Before profiling on the device, I would check it on PC: - Grep the source code for 'float' and 'double' and get rid of everything using them, at least if it's anything frequently used - Massif the source code and remove anything using memory excessively. If there's not enough memory for your program, there's no way you can make it faster before reducing the memory usage - Cachegrind the source code and if it Kcachegrind shows any really major bottlenecks, fix those. Really major bottlenecks should be bottlenecks also on the target, but you should take care how you optimize them (as on device there might be other major bottlenecks). Kcachegrind is really nice UI for this - Valgrind that there are no definate memory leaks or Invalid memory accesses Only then I would start looking into device specific bottlenecks. Note that however you do the profiling, you have to validate your optimizations on the device properly. E.g. add to the critical places in the code (before and after some functions doing a lot of work) some timestamp output, or creating special test-code for this. You should do several measurement rounds and use an average or median values for comparing the speeds of original and optimized software versions. These timestamps can also be used to profile your code without affecting significantly it's normal operational speed (like compiling with -pg would or installing special kernel version could). - Eero ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
[maemo-developers] Re: [maemo-users] New on list Problem executing on Nokia 770
In filemanager I click twice on the icon and it says the unknown file type. If I execute it on the X Terminal I get: $ ./media/mmc1/Testing/a_ARM sh: ./media/mmc1/Testing/a_ARM: Permission denied It's not the permissions because I also tried to execute it as root (using gainroot first) and I get the same answer. With the Mono package I also get the same problem (because it doesn't install, it's just to copy the folder). Antonio PS: I send a copy of this message to maemo-developers and continue the thread on that list. On Wed, 22 Feb 2006, Clemens Eisserer wrote: How did you execute it - in filemanager? You need to download the Terminal to be able to execute applications. lg Clemens PS: This topic belongs to maemo-developers 2006/2/22, Antonio Nó Rodríguez [EMAIL PROTECTED]: Hello all :), I got a Nokia 770 this January and I was thinking to develop some aplication on it (not sure what about yet). To start, I wrote the example Hello World program, executed it in the scratchbox (for PC and ARM) and it worked fine. The problem is when I put the app in the Nokia 770 and try to execute it because I get an unknown file type (both with the PC and ARM compilation). I don't know if it would be necessary an extension or to create an installation for the program. I also tried to install mono on the Nokia 770 but couldn't get it working too. Thank you Antonio ___ maemo-users mailing list maemo-users@maemo.org https://maemo.org/mailman/listinfo/maemo-users ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: [maemo-users] New on list Problem executing on Nokia 770
Antonio Nó Rodríguez [EMAIL PROTECTED] writes: In filemanager I click twice on the icon and it says the unknown file type. If I execute it on the X Terminal I get: $ ./media/mmc1/Testing/a_ARM sh: ./media/mmc1/Testing/a_ARM: Permission denied It's not the permissions because I also tried to execute it as root (using gainroot first) and I get the same answer. With the Mono package I also get the same problem (because it doesn't install, it's just to copy the folder). /media/mmc1 has filesystem (FAT?) that doesn't hold execute permissions. copy the binary to ... hmm, your home directory, chmod 755 a_ARM and then try again from there. Tomi Antonio ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: [maemo-users] New on list Problem executing on Nokia 770
On Wed, 2006-02-22 at 19:53, ext Antonio Nó Rodríguez wrote: In filemanager I click twice on the icon and it says the unknown file type. If I execute it on the X Terminal I get: $ ./media/mmc1/Testing/a_ARM sh: ./media/mmc1/Testing/a_ARM: Permission denied It's not the permissions because I also tried to execute it as root (using gainroot first) and I get the same answer. With the Mono package I also get the same problem (because it doesn't install, it's just to copy the folder). Editing the 'noexec' option away from /etc/fstab might help. BR; Kimmo Antonio PS: I send a copy of this message to maemo-developers and continue the thread on that list. On Wed, 22 Feb 2006, Clemens Eisserer wrote: How did you execute it - in filemanager? You need to download the Terminal to be able to execute applications. lg Clemens PS: This topic belongs to maemo-developers 2006/2/22, Antonio Nó Rodríguez [EMAIL PROTECTED]: Hello all :), I got a Nokia 770 this January and I was thinking to develop some aplication on it (not sure what about yet). To start, I wrote the example Hello World program, executed it in the scratchbox (for PC and ARM) and it worked fine. The problem is when I put the app in the Nokia 770 and try to execute it because I get an unknown file type (both with the PC and ARM compilation). I don't know if it would be necessary an extension or to create an installation for the program. I also tried to install mono on the Nokia 770 but couldn't get it working too. Thank you Antonio ___ maemo-users mailing list maemo-users@maemo.org https://maemo.org/mailman/listinfo/maemo-users ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Using network connection within emulator
Scratchbox will by default use the same internet connection as your host. To test, just login to scratchbox and ping something. If you get a responds, then any program you write that goes out to the Internet should work. micxer wrote: Hi, I managed to install maemo and all the needed stuff to develop applications for the Nokia 770. Now I was wondering if it is possible to use the internet connection of my PC to emulate the WLAN connection of the 770 since I need network connectivity for my project. I don't own a 770 right now, but I want to start developing soon. So if anyone has got an idea, please let me know. Michael ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Adding swapon/off to Jakub's Load-Plugin applet
Any suggestions? How about hooking swapoff to the hotplug event for the MMC card cover opening? Maybe even insertion also. - Thomas Swindell ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Adding swapon/off to Jakub's Load-Plugin applet
[EMAIL PROTECTED] wrote: Any suggestions? How about hooking swapoff to the hotplug event for the MMC card cover opening? Maybe even insertion also. Yes, *please* hook the cover open/cover close events and enable/disable swap as appropriate. Also, please scan not just for swap files, but also for swap partitions - I prefer to have a swap partition since the time the FAT file system on the card got corrupted and trying to swap to the swap file was, let us say, rather ugly. ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers