| To: | 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 |
|---|---|
| Subject: | Error in running gtk example on cross compiled GTK with DirectFB on MIPS board |
| From: | kaka <share.kt@gmail.com> |
| Date: | Mon, 17 Dec 2007 14:01:05 +0530 |
| 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:mime-version:content-type; bh=7VRmMX7iKjii4EkYWS3w18NfmrZAQgrMcgDs6rdXJVQ=; b=cUEh1H38RsObAmfkwUzyCwRvKt7rfu1uHChemRAhIb25V77TPdadL0UngwrFH1UBwNdapD5PsqMksQtupkeGzpQcboxdSmo0HnFVwr1Zyw8VsqTuAOi0UbyzG1V5IQQlejdc2hcmYPE7ILsX4mbKpXInDrCV1X7CRdOZZsAQrXU= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=QSFaIBDpYlFea09dK4la6hsoo63ga3WFSJ9nIx/l+W7EAYMwUjsBaVRIyKkFUR7QO/OEw9GRj+N57LMoRc4y2Vmyl+IIhr4KjtcZsrxIsmhy0QsXZNDnj7xnEeYCbzRYfyEPtu8LV5siwMoQFFb6pbJruJDHpCoQWY1p5X0Rdjs= |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
|
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__); gdk_flush (); } printf("\n%s :: %d\n",__FILE__,__LINE__); if (quit_functions) { GList *reinvoke_list = NULL; GtkQuitFunction *quitf; Given below is the src code for test example of GTK: #include <gtk/gtk.h>
int main( int argc, char *argv[] )
{
GtkWidget *window;
GtkWidget *pMainWidget;
GdkPixbuf *image;
gboolean ret = 0;
gtk_init (&argc, &argv);
printf("\n\n\ngtk_init (&argc, &argv);\n\n\n");
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
//gtk_container_set_border_width (GTK_CONTAINER (window), 10);
image = gdk_pixbuf_new_from_file ("test.gif", NULL);
if (!image)
return FALSE;
pMainWidget = gtk_image_new_from_pixbuf(image);
printf("\n\n\npMainWidget = gtk_image_new_from_pixbuf(image);\n\n\n");
gtk_widget_show (pMainWidget);
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;
}
Can anybody Plz throw some light on it?
Thanks in advcance
-- Thanks & Regards, kaka |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: GCC 3.4.5 and mftc0, Mikael Starvik |
|---|---|
| Next by Date: | timer irq setup, Thomas Koeller |
| Previous by Thread: | [PATCH][1/2][MIPS] remove unused struct bootloader_header, Yoichi Yuasa |
| Next by Thread: | Re: [directfb-dev] Error in running gtk example on cross compiled GTK with DirectFB on MIPS board, Denis Oliver Kropp |
| Indexes: | [Date] [Thread] [Top] [All Lists] |