Re: [directfb-dev] Error in running gtk example on cross compiled GTK with DirectFB on MIPS board
kaka <[email protected]> Tue, 18 Dec 2007 00:10:00 +0530
| Newsgroups | gmane.linux.fbdev.user,gmane.linux.uclinux.devel,gmane.comp.graphics.directfb.devel,gmane.comp.graphics.directfb.user |
|---|---|
| Message-ID | <[email protected]> |
--===============1450979911== Content-Type: multipart/alternative; boundary="----=_Part_7619_17142918.1197916800588" ------=_Part_7619_17142918.1197916800588 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 <[email protected]> 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 ------=_Part_7619_17142918.1197916800588 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline <div>Hi Denis,</div> <div> </div> <div>Thanks for the reply.</div> <div>I am running same example on X86 and it is running successfully and displaying image.</div> <div>On the other hand when i am running the same example on MIPS(GTK over DirecTFB)</div> <div>image is not being displayed.</div> <div> </div> <div>Could u plz provide some clue on it.</div> <div>Thanks.</div> <div> </div> <div>Kaka<br><br> </div> <div><span class="gmail_quote">On 12/17/07, <b class="gmail_sendername">Denis Oliver Kropp</b> <<a href="mailto:[email protected]">[email protected]</a>> wrote:</span> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">kaka wrote:<br>> HI ALL,<br>><br>> We have successfully cross compiled GTK and DIRECTFB with all its <br>> dependencies for MIPS board.<br>> On running the basic test example of GTK, it is getting struck in the thread<br>> loop infinitely.<br>> We had put the "debug printf" statement in the gtkmain.c and debugged the<br>> test example.<br>> It is getting struck in the * g_main_loop_run (loop);* given below is<br>> the code(code<br>> snippet from gtkmain.c)<br>><br>> void<br>> gtk_main (void)<br> > {<br>> GList *tmp_list;<br>> GList *functions;<br>> GtkInitFunction *init;<br>> GMainLoop *loop;<br>> printf("\n%s :: %d\n",__FILE__,__LINE__);<br>> gtk_main_loop_level++;<br>> <br>> loop = g_main_loop_new (NULL, TRUE);<br>> main_loops = g_slist_prepend (main_loops, loop);<br>> printf("\n%s :: %d\n",__FILE__,__LINE__);<br>> tmp_list = functions = init_functions;<br>> init_functions = NULL; <br>><br>> while (tmp_list)<br>> {<br>> init = tmp_list->data;<br>> tmp_list = tmp_list->next;<br>><br>> (* init->function) (init->data);<br>> g_free (init); <br>> }<br>> g_list_free (functions);<br>> printf("\n%s :: %d\n",__FILE__,__LINE__);<br>> if (g_main_loop_is_running (main_loops->data))<br>> {<br>> * printf("\n%s :: %d\n",__FILE__,__LINE__); <br>> GDK_THREADS_LEAVE ();<br>> g_main_loop_run (loop);<br>> GDK_THREADS_ENTER ();<br>> * printf("\n%s :: %d\n",__FILE__,__LINE__);<br><br>That's normal. If you want runtime you have to create a timer or register idle or timeout functions. <br><br>> gtk_container_add (GTK_CONTAINER (window), pMainWidget);<br>> printf("\n\n\ngtk_container_add (GTK_CONTAINER (window),<br>> pMainWidget);\n\n\n") ;<br>> gtk_widget_show (window); <br>> printf("\n\n\nABHISHEK START OF gtk_main\n\n\n");<br>> gtk_main ();<br>> printf("\n\n\nABHISHEK END OF gtk_main\n\n\n");<br>> return 0;<br><br>Simply/weakly put: it should not return before the application is quit. <br><br>--<br>Best regards,<br>Denis Oliver Kropp<br><br>.------------------------------------------.<br>| DirectFB - Hardware accelerated graphics |<br>| <a href="http://www.directfb.org/">http://www.directfb.org/</a> | <br>"------------------------------------------"<br></blockquote></div><br><br clear="all"><br>-- <br>Thanks & Regards,<br>kaka ------=_Part_7619_17142918.1197916800588-- --===============1450979911== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace --===============1450979911== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Linux-fbdev-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-fbdev-users --===============1450979911==--