I installed the Fedora Core 6(FC-6-i386)  and  the firefox-2.0.0.1-
source.tar.bz2 on my Pentium 4 PC.

I have successfully(???) compiled the firefox-2.0.0.1-source by
using .mozconfig as follows.

<< .mozconfig >>
------------------------------------------------------------------------
mk_add_options MOZ_CO_PROJECT=browser
mk_add_options MOZ_OBJDIR=/root/mozilla/objdir
ac_add_options --enable=static
ac_add_options --distable-shared
ac_add_options --enable-application=browser
------------------------------------------------------------------------

When I execute the firefox execution file(/root/mozilla/browser/app/
firefox), it works well and there is no problem in firefox. (This is
the reason why I consider that the compilation is successful.)

But when I try to test the embedding sample(/root/mozilla/embedding/
browser/gtk/tests/TestGtkEmbed.cpp), it fails with Segmentation
Fault.  I guess that there is a problem in gtkmozembed2.cpp(/root/
mozilla/embedding/browser/gtk/src/gtkmozembed2.cpp) because the
sample, TestGtkEmbed.cpp fails with Segmentation Fault whenever I I
add the GtkWidget object which is returned from gtk_moz_embed_new()
function to a Gtk container.

I tested a very simple example as follow. This sample generates
"Segmentation Fault".

int main(int argc, char **argv)
{
    GtkWidget *window;
    GtkWidget *mozEmbed;

    gtk_set_locale();
    gtk_init(&argc, &argv);

    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
    mozEmbed = gtk_moz_embed_new();

    gtk_container_add(GTK_CONTAINER(window), mozEmbed);
    gtk_widget_show_all(window);

    gtk_main();
}

If anyone could help with this I would really appreciate it.

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to