Re: Firefox 1.5 beta



> I have no idea what part is relevant so I cut'n'paste quite a bit of the stuff that's above the error just incase, and I only assume it's firefox 1.5 since it's after the upgrade it stopped working and the gecko-utils errors.
<snip>
> gecko-utils.cpp: In function `gboolean gecko_prefs_set_string(const gchar*, cons t gchar*)':
> gecko-utils.cpp:76: error: `nsCOMPtr' undeclared (first use this function)
> gecko-utils.cpp:76: error: (Each undeclared identifier is reported only once for  each function it appears in.)
> gecko-utils.cpp:76: error: expected primary-_expression_ before '>' token
> gecko-utils.cpp:76: error: `prefService' undeclared (first use this function)
> gecko-utils.cpp:77: error: `do_GetService' undeclared (first use this function)

I'm new to this list, so sorry if this has already been solved.  I
wanted to install beagle with firefox-1.5b2, and ran into the same
problem above.  Doing a little googling and looking through the
firefox source, I found out that the xpcom implementation has changed
some between 1.0 and 1.5.  In particular, you're not supposed to call
do_GetService directly with the Gecko SDK.  See this post
http://www.mail-archive.com/mozilla-xpcom mozilla org/msg04076.html.

Anyway, if you want to use the beagle source as is, you can install a
header file from the firefox source and include it in the
gecko-utils.cpp file.  Here's what I did.

1. In firefox-1.5b2-source, copy
mozilla/xpcom/glue/nsServiceManagerUtils.h to
/usr/include/firefox-1.4.1.

[11:09 PM dbnichol conor] ls -l
/usr/include/firefox-1.4.1/nsServiceManagerUtils.h
-rw-r--r--  1 root root 4244 2005-10-16 22:44
/usr/include/firefox-1.4.1/nsServiceManagerUtils.h

2.  In the beagle-0.1.1 source, edit beagle-0.1.1/glue/gecko-utils.cpp
to include the above file.  Here's what a diff looked like for me:

--- beagle-0.1.1/glue/gecko-utils.cpp.orig      2004-10-28
15:14:41.000000000 -0700
+++ beagle-0.1.1/glue/gecko-utils.cpp   2005-10-16 23:08:59.000000000 -0700
@@ -26,6 +26,7 @@
 #include <config.h>

 #include <gtkmozembed.h>
+#include <nsServiceManagerUtils.h>

 #include <stdlib.h>

It then built directly through for me.  I'm new to beagle, so I don't
know if it's using the gecko stuff exactly.

Hope that helps someone,
--
Dan Nicholson



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]