Could you please try putting your TestGtkEmbed executable into
/usr/lib/mozilla-minimo directory and execute from there. This _may_
solve your problem.
Bahadir
saturn wrote:
> Hi listers,
>
> I am trying to run the TestGtkEmbed example, but when
> I run the application, it segfaults with
>
> (TestGtkEmbed:1435): Gtk-CRITICAL **: file
> ../../gtk/gtkbox.c: line 372 (gtk_box_pack_start):
> assertion `GTK_IS_WIDGET (child)' failed
>
> I looked up this forum and found someone suggest that this problemis
> related to version of Gtk libraries, so I rebuild mozilla with Gtk2
> and made sure there were no other gtk libraries on the system, but
the
> problem still persists.Following is the Makefle that I am using, and
I
> suspect theres something wrong with it.
>
> INCLUDEPATH =
> -I/usr/local/include/mozilla-1.7.3/gtkembedmoz/
> -I/usr/include/gtk-2.0/ -I/usr/include/glib-2.0/
> -I/usr/include/pango-1.0/ -I/usr/lib/gtk-2.0/include/
> -I/usr/lib/glib-2.0/include/ -I/usr/include/atk-1.0/
> -I/usr/local/include/mozilla-1.7.3/dom/
> -I/usr/local/include/mozilla-1.7.3/nspr/
> -I/usr/local/include/mozilla-1.7.3/
>
> LIBS = -lgtkembedmoz -lmozjs -lxpcom -lstring_s -lnspr4
>
> LIB_PATH = -L/usr/lib/ -L/usr/local/lib/mozilla-1.7.3/
> -L/home/deepesh/mozilla/suite-opt/dist/lib/
> srcdir = .
> CXX = g++
> CXX_DEBUG_FLAG =
> GDB_DEBUG = -g
> OBJECT_DEP = TestGtkEmbed.o
>
> TestGtkEmbed: ${OBJECT_DEP}
> ${CXX} ${GDB_DEBUG} -o $@ ${OBJECT_DEP} ${LIB_PATH} ${LIBS}
>
> .cpp.o:
> ${CXX} ${GDB_DEBUG} ${CXX_DEBUG_FLAG} ${INCLUDEPATH} -c $<
>
> clean :
> rm *.o *.*~ core
>
> --------end of makefile----------
>
> my $LD_LIBRARY_PATH shows
> :/usr/lib/:/usr/local/lib/mozilla-1.7.3/
>
> When I compared the TestGtkEmbed from mozilla/suite-opt/dist/bin/
with
> the one that I have compiled there is a visible difference in the
file
> size.
> mozilla-TestGtkEmbed = 33699bytes
> my-own-TestGtkEmbed = 298202bytes
>
> I think there is something wrong with the way I am linking the
> libraries.
> Any pointers, to what might have gone wrong ?
>
> PS: Would someone care to share a more correct Makefile to compile
the
> TesGtkEmbed application.
>
> thanks for your patience.
> Deepesh
_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding