Re: Testing apps
On Feb 7, 2010, at 1:14 AM, ma...@bitblit.net wrote: Ive built a command-line app. I can bring up the Maemo UI and run the tool from Terminal just fine (from inside its source folder), however related utilities that come with the tool dont work - Im assuming I need to do a make install to fully test it. I could install it but then Im 'polluting' my dev environment with something that may not work and may be hard to remove all traces of correctly. What's a good strategy to test then? Should I make a package and use the package manager to install, test and uninstall? How do developers test apps like this? The packaging system is designed for this process. It has the added benefit of allowing you to provide a way for others to install your software. :) Using a chroot is also an easy way to do testing of your app with its environment, this can sometimes be easier than a virtual machine, but virtual machines work well too. Jeremiah ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
calling a Qt dbus method from a HILDON desktop widget
greetings; I was creating an application with Qt that exposes a dbus service. the service returns its output as a QStringList. I tested this dbus service with a client written in Qt and it worked perfectly. I wanted to create a Desktop widget that can consume this dbus service. I created a normal C file that calls the dbus service - just as POC to see if it works by modifying some code i found (a C file that gets the imei , written by mr.faheem http://talk.maemo.org/showpost.php?p=371496postcount=45) my code is : #include stdlib.h #include glib.h #include glib/gprintf.h #include dbus/dbus-glib.h #include string.h #include stdio.h static GList* ptimes_list = NULL; int fn() { DBusGConnection *conn; GError *error = NULL; conn = dbus_g_bus_get (DBUS_BUS_SYSTEM, error); if (!conn) { g_printerr (Error: %s\n, error-message); g_error_free (error); return 0; } DBusGProxy *proxy = NULL; /* replaced the cinstants with values from my dbus interface */ proxy = dbus_g_proxy_new_for_name(conn, SERVICE_NAME,PATH ,INTERFACE); if (!proxy) { printf(No proxy, dbus_g_proxy_new_for_name() failed \n); return 0; } if (!dbus_g_proxy_call(proxy,mthod_name, error,my_list) ) { /* dbus_g_proxy_call failed */ printf(dbus_g_proxy_call(proxy,method, error,myList) returned FALSE \n); return 0; } if (!my_list) { /* output list is empty */ printf(my_list) glist is still NULL \n); return 0; } g_object_unref(proxy); char[10] element = (char*) g_list_nth_data(my_list),0); printf(the value of the fajr first is %s \n,element); return 1; } the program fails at this point: proxy = dbus_g_proxy_new_for_name(conn, SERVICE_NAME,PATH ,INTERFACE); and my application stops. I wonder what is wrong with the way I called my DBus service . Any help is appreciated! ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Developing virtual keyboard plugin for Maemo 5
Hi, Kimmo Hämäläinen wrote: says hildon_im_ui_button_set_* APIs are supported. But when verified in header file hildon-im-ui.h there aren't any of the APIs starting from hildon_im_ui_button_set_ This documentation seems out-dated. Some of that API has been removed. Please report a bug for it to get it updated. https://bugs.maemo.org/show_bug.cgi?id=8946 Cheers, Dave. -- maemo.org docsmaster Email: dne...@maemo.org Jabber: bo...@jabber.org ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Packaging questions
Hi, Ajai Khattri wrote: That depends, but for the current situation, I would say no. Firstly, creating multiple binary packages is harder than a single binary, though not by much. I recommend you start out with just a single binary if you can. OK, but Im curious: what would be an example of a package with multiple binaries? binutils, for example? gcc has a few (c89 c99 versions, for example) textutils openssh (scp, sftp, ssh, ...) 2) I got an error saying it could not find package.orig.tar.gz - what does that mean? This means you do not have an original tarball of your package that has the suffix orig.tar.gz. Take a look at the debian documentation here which should help: http://www.debian.org/doc/maint-guide/ch-first.en.html#s-dh_make So, to clarify, I need to have a tarball of the original source inside the untarred tarball build directory? :-) Have a look at this page: http://wiki.maemo.org/Packaging#A_concrete_example_-_rot13 dh_make takes a -f argument that points to the original .tar.gz, and generates rot13_0.1.orig.tar.gz, rot13_0.1-1.diff.gz, rot13_0.1-1.dsc and rot13_0.1-1_i386.changes afterwards. I was following the Maemo docs which dont mention anything about licenses. Maybe there ought to be a link to the dh_make man page from there? Which docs were you following, and how did you get there? we're trying to make http://wiki.maemo.org/Packaging the standard quick start page, and http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Packaging%2C_Deploying_and_Distributing and http://www.debian.org/doc/maint-guide/ the definitive more than you ever needed or wanted to know about Debian packaging, but were too afraid to ignore pages. Cheers, Dave. -- maemo.org docsmaster Email: dne...@maemo.org Jabber: bo...@jabber.org ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Packaging questions
On 09/02/10 08:29, Dave Neary wrote: Hi, Ajai Khattri wrote: That depends, but for the current situation, I would say no. Firstly, creating multiple binary packages is harder than a single binary, though not by much. I recommend you start out with just a single binary if you can. OK, but Im curious: what would be an example of a package with multiple binaries? binutils, for example? gcc has a few (c89 c99 versions, for example) textutils openssh (scp, sftp, ssh, ...) git, imagemagick, mysql, ... 2) I got an error saying it could not find package.orig.tar.gz - what does that mean? This means you do not have an original tarball of your package that has the suffix orig.tar.gz. Take a look at the debian documentation here which should help: http://www.debian.org/doc/maint-guide/ch-first.en.html#s-dh_make So, to clarify, I need to have a tarball of the original source inside the untarred tarball build directory? :-) Have a look at this page: http://wiki.maemo.org/Packaging#A_concrete_example_-_rot13 dh_make takes a -f argument that points to the original .tar.gz, and generates rot13_0.1.orig.tar.gz, rot13_0.1-1.diff.gz, rot13_0.1-1.dsc and rot13_0.1-1_i386.changes afterwards. I was following the Maemo docs which dont mention anything about licenses. Maybe there ought to be a link to the dh_make man page from there? Which docs were you following, and how did you get there? we're trying to make http://wiki.maemo.org/Packaging the standard quick start page, and http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Packaging%2C_Deploying_and_Distributing and http://www.debian.org/doc/maint-guide/ the definitive more than you ever needed or wanted to know about Debian packaging, but were too afraid to ignore pages. Cheers, Dave. ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Maemo 5 and hw accelerated X.Org?
Hi, ext Kuba Irzabek wrote: Is xserver in Maemo 5 (Nokia N900 OMAP 3) using hardware acceleration (SGX)? Yes, to some extent, but SGX is 3D accelerator, you cannot really expect it to make much difference for most 2D operations. For simple 2D operations like blitting, SGX is actually slower. In those kind of operations both CPU and SGX are memory bandwidth bound, but SGX is run at slower speed than CPU and has command setup cost. Memory ownership change between CPU and SGX has also a performance cost because this requires cache flush. I cannot find confirmation on that anywhere. I found inforamtion that accelerated user interface on omap 3 can be done using qt embedded or clutter and not xserver. Where can I find more on that topic? - Eero ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Packaging questions
On Mon, Feb 08, 2010 at 12:19:10AM -0500, Ajai Khattri wrote: Im trying to create my first Maemo package and I had a few questions: 1) This package has a main binary, but also has additional binaries/scripts and library files, so do I select 'Multiple binaries' when running dh_make ? There's some confusion here that I haven't seen addressed in this thread: binary can mean a binary execution file, which is what you're thinking about, or it can mean a binary Debian package, which is what dh_make is asking about. You most likely want a single binary deb that contains all your executables. Marius Gedminas -- ...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly). -- Matt Welsh signature.asc Description: Digital signature ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Maemo 5 and hw accelerated X.Org?
W dniu 10-02-09 15:37, Eero Tamminen pisze: Hi, ext Kuba Irzabek wrote: Is xserver in Maemo 5 (Nokia N900 OMAP 3) using hardware acceleration (SGX)? Yes, to some extent, but SGX is 3D accelerator, you cannot really expect it to make much difference for most 2D operations. Thanks for your answers. I still have some... Are the drivers released to public? Where can I find them? I've read that OMAP 3 SGX accelerator can be used in a 2.5D user interface acceleration using OpenGL ES 2.0 and also to accelerate Adobe Flash or SVG using OpenVG (Introduction to Graphics Software Development for OMAPTM 2/3 - TI document spry110.pdf). And what about composite window managers for X on OMAP? Is it possible for now to run them using SGX? I'm not very familiar with graphics, so my questions are basic. Best regards, Kuba For simple 2D operations like blitting, SGX is actually slower. In those kind of operations both CPU and SGX are memory bandwidth bound, but SGX is run at slower speed than CPU and has command setup cost. Memory ownership change between CPU and SGX has also a performance cost because this requires cache flush. I cannot find confirmation on that anywhere. I found inforamtion that accelerated user interface on omap 3 can be done using qt embedded or clutter and not xserver. Where can I find more on that topic? - Eero ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Broken Qt Packages?
Apologies if this is answered elsewhere, but is anybody else unable to install the Qt4.6 packages from the Extras Devel Maemo repo? I've got all the repos in my sources.list, but: apt-get install libqt4-maemo5-dev currently gives an error about Broken Packages because of dependency problems. It looks like qt4-dev is 4.6.2, while qt4-core is 4.6.0. Ben ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Packaging questions
On Feb 9, 2010, at 16:23, Marius Gedminas wrote: On Mon, Feb 08, 2010 at 12:19:10AM -0500, Ajai Khattri wrote: Im trying to create my first Maemo package and I had a few questions: 1) This package has a main binary, but also has additional binaries/scripts and library files, so do I select 'Multiple binaries' when running dh_make ? There's some confusion here that I haven't seen addressed in this thread: binary can mean a binary execution file, which is what you're thinking about, or it can mean a binary Debian package, which is what dh_make is asking about. You most likely want a single binary deb that contains all your executables. Exactly. Thanks for pointing this out Marius. Unless I am mistaken Ajai, you were referring to building multiple *package* binaries, correct? (Not multiple application/runtime binaries.) Jeremiah ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Packaging questions
On Tuesday 09 February 2010 14:29:14 Bernd Stramm wrote: On 09/02/10 08:29, Dave Neary wrote: Hi, Ajai Khattri wrote: OK, but Im curious: what would be an example of a package with multiple binaries? binutils, for example? gcc has a few (c89 c99 versions, for example) textutils openssh (scp, sftp, ssh, ...) git, imagemagick, mysql, ... I think of it like this: A single source package may generate multiple programs (normally related in some way). If the programs are grouped together such that if the user installs one they almost certainly also want another then they should go into the same binary package (this often occurs with programs and scripts which make use of them or set them up, for example). On the other hand, if it is likely that the user may want one program without another, then they should go into different binary packages so that space is not wasted (and possible user confusion caused) by having both installed when you only want one. A good example of that is openssh-server and openssh-client: in many cases you need one or the other, not both, so they are two different binary packages built from the same source package (openssh). Graham ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Maemo 5 and hw accelerated X.Org?
Kuba Irzabek skrev: Are the drivers released to public? Where can I find them? Doesn't look like it to me. And what about composite window managers for X on OMAP? Is it possible for now to run them using SGX? That's what the N900 runs on. It looks very stylish... ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
How to override load_desktop_file in hildon home plugins?
I need to hook into load_desktop_file for my own plugin, in order to read some custom keys there (I'm basically using a single .so file to provide the code, and configure the functionality in desktop files). Currently, I have a hack that seems to work, but it fails when plugin is loaded, unloaded and loaded once more. The hack in question is: ... G_DEFINE_DYNAMIC_TYPE_EXTENDED (ProxyHomePlugin, proxy_home_plugin, HD_TYPE_HOME_PLUGIN_ITEM, 0, G_IMPLEMENT_INTERFACE (HD_TYPE_PLUGIN_ITEM, proxy_home_plugin_item_init_plugin_item)); HD_PLUGIN_MODULE_SYMBOLS_CODE (proxy_home_plugin, {}, {}); ... static void proxy_home_plugin_item_init_plugin_item (HDPluginItemIface *iface) { iface-load_desktop_file = proxy_home_plugin_item_load_desktop_file; return; } Note that I'm using this instead of the standard HD_DEFINE_PLUGIN_MODULE (ExampleHomeApplet, example_home_applet, HD_TYPE_HOME_PLUGIN_ITEM); (As I understand it, using this wouldn't allow me to override load_dekstop_file). This way, my proxy_home_plugin_item_load_desktop_file() function gets called. But indeed it appears this is not working fine for unloading loading. Is there another way to get at HDPluginItemIface from my HDHomePluginItem subclass? -- Ville M. Vainio http://tinyurl.com/vainio ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: How to override load_desktop_file in hildon home plugins?
On Wed, Feb 10, 2010 at 7:56 AM, Ville M. Vainio vivai...@gmail.com wrote: This way, my proxy_home_plugin_item_load_desktop_file() function gets called. But indeed it appears this is not working fine for unloading loading. More details (from looking at the crash in hildon-home): 6319]: GLIB WARNING ** GLib-GObject - cannot add interface type `HDPluginItem' to type `Pr oxyHomePlugin', since type `ProxyHomePlugin' already conforms to interface Program received signal SIGSEGV, Segmentation fault. Backtrace: #0 0x00e41fd0 in ?? () #1 0x00b3e193 in type_iface_vtable_iface_init_Wm (iface=0x80a41a0, node=value optimized o ut) at /home/bifh6/fremantle-i386-prereleased.cs2007q3/work/glib2.0-2.20.3/gobject/gtype.c :1827 #2 0x00b421fd in IA__g_type_class_ref (type=135958760) at /home/bifh6/fremantle-i386-prere leased.cs2007q3/work/glib2.0-2.20.3/gobject/gtype.c:2015 #3 0x00b26e84 in IA__g_object_new_valist (object_type=135958760, first_property_name=0x378 707 plugin-id, var_args=0xbfffebd8 8\266\32\b) at /home/bifh6/fremantle-i386-prerelease d.cs2007q3/work/glib2.0-2.20.3/gobject/gobject.c:1280 #4 0x00b271c7 in IA__g_object_new (object_type=135958760, first_property_name=0x378707 pl ugin-id) at /home/bifh6/fremantle-i386-prereleased.cs2007q3/work/glib2.0-2.20.3/gobject/go bject.c:1060 #5 0x00371725 in hd_plugin_module_new_object (module=0x8283008, plugin_id=0x81ab638 proxy -home-widget.desktop-0) at hd-plugin-module.c:247 #6 0x0036e649 in hd_plugin_loader_default_open_module (loader=0x8287480, plugin_id=0x81ab6 38 proxy-home-widget.desktop-0, keyfile=0x8275d40, error=0xbfffec6c) at hd-plugin-loader- default.c:105 #7 0x0036e79d in hd_plugin_loader_default_load (loader=0x8287480, plugin_id=0x81ab638 pro xy-home-widget.desktop-0, keyfile=0x8275d40, error=0xbfffecbc) at hd-plugin-loader-default .c:141 #8 0x0036f3de in hd_plugin_loader_load (loader=0x8287480, plugin_id=0x81ab638 proxy-home- widget.desktop-0, keyfile=0x8275d40, error=0xbfffecbc) at hd-plugin-loader.c:57 #9 0x0036f244 in hd_plugin_loader_factory_create (factory=0x8063e00, plugin_id=0x81ab638 proxy-home-widget.desktop-0, module_id=0x828 /usr/share/applications/hildon-home/prox y-home-widget.desktop, error=0xbfffed10) at hd-plugin-loader-factory.c:321 #10 0x0036f804 in load_plugin_idle (idle_data=0x819c550) at hd-plugin-manager.c:235 #11 0x003b486c in gdk_threads_dispatch (data=0x81b3970) at gdk.c:473 #12 0x0027b0e3 in g_idle_dispatch (source=0x82770a0, callback=0x817db38, user_data=0x81b397 0) at /home/bifh6/fremantle-i386-prereleased.cs2007q3/work/glib2.0-2.20.3/glib/gmain.c:3966 #13 0x0027ce3c in IA__g_main_context_dispatch (context=0x8071888) at /home/bifh6/fremantle- i386-prereleased.cs2007q3/work/glib2.0-2.20.3/glib/gmain.c:1836 #14 0x002803c5 in g_main_context_iterate (context=0x8071888, block=1, dispatch=1, self=0x80 55ac0) at /home/bifh6/fremantle-i386-prereleased.cs2007q3/work/glib2.0-2.20.3/glib/gmain.c: 2467 #15 0x002806b8 in IA__g_main_loop_run (loop=0x819dbf0) at /home/bifh6/fremantle-i386-prerel eased.cs2007q3/work/glib2.0-2.20.3/glib/gmain.c:2675 #16 0x01013eb9 in IA__gtk_main () at gtkmain.c:1200 #17 0x0039a726 in main (argc=134691256, argv=0x9) at hildon-home.c:199 #18 0x08048983 in summon_process (prog=0xbfffef6c) at summoner.c:43 #19 0x08048c2a in main (argc=2, argv=0xb054) at summoner.c:128 -- Ville M. Vainio http://tinyurl.com/vainio ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers
Re: Maemo 5 and hw accelerated X.Org?
The Xorg part, that is, I've seen in xserver-xorg-video-fbdev, which is published in http://repository.maemo.org/pool/maemo5.0/free/x/xserver-xorg-video-fbdev/ - it has some SGX parts in it. Regards, Carsten Munk maemo.org distmaster 2010/2/10 Ove Kaaven o...@arcticnet.no: Kuba Irzabek skrev: Are the drivers released to public? Where can I find them? Doesn't look like it to me. And what about composite window managers for X on OMAP? Is it possible for now to run them using SGX? That's what the N900 runs on. It looks very stylish... ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://lists.maemo.org/mailman/listinfo/maemo-developers