Hey Guys,
I've emailed about this before but the project never really went
anywhere. It's in full swing now and I'm not having much of a fun time.
Basically, we've got a Gtk application on Linux that's been using
GtkMozEmbed since pre Mozilla 1.0 days. It's used as a fullscreen
browser for the UI on a touchscreen device.
I'm currently porting from using FireFox 2.0 on an older Fedora Core
platform to FireFox 3.5.5(xulrunner 1.9.1) on Fedora12.
I'd like some pointers on how to build the TestGtkEmbed.cpp file outside
the scope of the xulrunner/ path. I think the compiler and linker
changes are the key to my problems, so if I could get that side of
things working properly then I'd have a good platform to figure out why
my code isn't working.
1) I've replicated the API calls from TestGtkEmbed.cpp for the new GRE
and XPCOMGlue changes
2) I've used the pkg_config --cflags and --libs values from
"mozilla-gtkmozembed-embedding", which gives me
pkg-config --libs mozilla-gtkmozembed-embedding
-L/usr/lib/xulrunner-sdk-1.9.1/lib -lxpcomglue -lplds4 -lplc4 -lnspr4
-lpthread -ldl
3) At runtime, I'm segfaulting in gtk_moz_embed_new()
Found xpcom path [/usr/lib/xulrunner-1.9.1/libxpcom.so]
Setting profile to [/home/glen]
Program received signal SIGSEGV, Segmentation fault.
_dl_runtime_resolve () at ../sysdeps/i386/dl-trampoline.S:43
43 ret $12 # Jump to function address.
Current language: auto
The current source language is "auto; currently asm".
(gdb) bt
#0 _dl_runtime_resolve () at ../sysdeps/i386/dl-trampoline.S:43
#1 0x02fbf43e in gtk_moz_embed_new () at gtkmozembed2.cpp:418
#2 0x0805a4f6 in moz_embed_new () at moz_embed.c:83
#3 0x08053d39 in main_window_init () at main.c:527
#4 0x08055347 in main (argc=3, argv=0xbffff274) at main.c:151
Thanks in advance,
--
Glen Gray<sla...@slaine.org>
http://slaine.org
_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding