On Thu, Jun 19, 2008 at 11:49:03PM -0700, Shaun Jackman wrote:
> On Fri, Jun 13, 2008 at 12:35 AM, Mike Hommey <[EMAIL PROTECTED]> wrote:
> > The first obvious thing would be to ensure you use the proper includes,
> > which means you need, at some point, to use pkgconfig --cflags
> > libxul-embedding.
> >
> > The second thing I would do is ensure it works properly if you
> > build with pkg-config --libs libxul instead of libxul-embedding.
> > When testing this setup, make sure you set the LD_LIBRARY_PATH to
> > /usr/lib/xulrunner-1.9, as it is necessary with what is called the
> > dependent glue (which is what you get with libxul.pc).
> >
> > Once you have things working with this setup, you can switch to
> > libxul-embedding, which requires some additional changes, but we'll
> > see then.
> 
> Hi Mike,
> 
> If I use pkg-config libxul-embedding, when running Azureus I get the error:
> Browser: org.eclipse.swt.SWTError: XPCOM error -1041039359
> which corresponds to NS_ERROR_NOT_INITIALIZED.
> 
> With pkg-config libxul it almost works. The embedded browser seems to
> load because it replaces the "Loading..." splash screen that Azureus
> displays, but all I get is a white background. It seems to be almost
> working though. I don't see any error messages on the console.
> 
> Where do I go from here?

It looks like all you need is to add the xpcom initialization code. The
embedding variant needs explicit xpcom loading. You can check how it is
done in impl_init() in mozilla-embed-single.cpp in epiphany-browser
source, or xulrunner_init() in mozilla.cpp in kazehakase source.
You will need to #include <gtkmozembed_glue.cpp> in the source file
doing the initialization.

Cheers,

Mike



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to