linux-mips
[Top] [All Lists]

Re: [directfb-dev] Error in running gtk example on cross compiled GTK wi

To: "Denis Oliver Kropp" <dok@directfb.org>
Subject: Re: [directfb-dev] Error in running gtk example on cross compiled GTK with DirectFB on MIPS board
From: kaka <share.kt@gmail.com>
Date: Tue, 18 Dec 2007 00:10:00 +0530
Cc: linux-mips@linux-mips.org, uclinux-dev@uclinux.org, celinux-dev@tree.celinuxforum.org, linux-fbdev-users@lists.sourceforge.net, directfb-users@directfb.org, directfb-dev@directfb.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=Q0aNLBuxfgiX7g/CjPAS9TEtOi5pA6oHDUxDhydDeGs=; b=xKxHYQ9Eugxl8qEH0wFZJIbrFBhuIPwuaXC5nGODyVykGfN3qWol3QxQegORF7eQSt8XMTg2JFV22qGDzoeTKLDsb6AZv9rHFCdLrWhcG05b2A3hkjEveF+G0dwb9WhVkECplwJZkimI64tSNfEzCPk4MF7Eaq6U339x/et6SGA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=STgQVr5NUxZrUHEAt2/jKZXWB1HQc4Q6wpYen3j3iy7S+xszWKB1Mqhui+xIYcLBa+r12Enj3h9uqA1ruukDsUoMi3W2eZOXOCH0qru/ttTM92qJlPa/8H1u2i95njg11sYewfQHSqxXfLUJpqHk8hsUwl1JmywESMpwdZp353g=
In-reply-to: <4766B149.5050109@directfb.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <eea8a9c90712170031i62e4ac4ak687a198200f59920@mail.gmail.com> <4766B149.5050109@directfb.org>
Sender: linux-mips-bounce@linux-mips.org
Hi Denis,
 
Thanks for the reply.
I am running same example on X86 and it is running successfully and displaying image.
On the other hand when i am running the same example on MIPS(GTK over DirecTFB)
image is not being displayed.
 
Could u plz provide some clue on it.
Thanks.
 
Kaka

 
On 12/17/07, Denis Oliver Kropp <dok@directfb.org> wrote:
kaka wrote:
> HI ALL,
>
> We have successfully cross compiled GTK and DIRECTFB with all its
> dependencies for MIPS board.
> On running the basic test example of GTK, it is getting struck in the thread
> loop infinitely.
> We had put the  "debug printf"  statement in the gtkmain.c and debugged the
> test example.
> It is getting struck in the * g_main_loop_run (loop);* given below is
> the  code(code
> snippet from gtkmain.c)
>
> void
> gtk_main (void)
> {
>   GList *tmp_list;
>   GList *functions;
>   GtkInitFunction *init;
>   GMainLoop *loop;
> printf("\n%s :: %d\n",__FILE__,__LINE__);
>   gtk_main_loop_level++;
>
>   loop = g_main_loop_new (NULL, TRUE);
>   main_loops = g_slist_prepend (main_loops, loop);
> printf("\n%s :: %d\n",__FILE__,__LINE__);
>   tmp_list = functions = init_functions;
>   init_functions = NULL;
>
>   while (tmp_list)
>     {
>       init = tmp_list->data;
>       tmp_list = tmp_list->next;
>
>       (* init->function) (init->data);
>       g_free (init);
>     }
>   g_list_free (functions);
> printf("\n%s :: %d\n",__FILE__,__LINE__);
>   if (g_main_loop_is_running (main_loops->data))
>     {
>    * printf("\n%s :: %d\n",__FILE__,__LINE__);
>       GDK_THREADS_LEAVE ();
>       g_main_loop_run (loop);
>       GDK_THREADS_ENTER ();
> *      printf("\n%s :: %d\n",__FILE__,__LINE__);

That's normal. If you want runtime you have to create a timer or register idle or timeout functions.

>       gtk_container_add (GTK_CONTAINER (window), pMainWidget);
>  printf("\n\n\ngtk_container_add (GTK_CONTAINER (window),
> pMainWidget);\n\n\n") ;
>       gtk_widget_show (window);
> printf("\n\n\nABHISHEK START OF gtk_main\n\n\n");
>       gtk_main ();
> printf("\n\n\nABHISHEK END OF gtk_main\n\n\n");
>       return 0;

Simply/weakly put: it should not return before the application is quit.

--
Best regards,
Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"



--
Thanks & Regards,
kaka
<Prev in Thread] Current Thread [Next in Thread>