[voikko] Voikko Firefox 3:ssa

Harri Pitkänen hatapitk at iki.fi
Mon Nov 5 18:06:14 EET 2007

On Sunday 04 November 2007, Andris Pavenis wrote:
> Kysyin IRC:issa (irc://irc.mozilla.org, channel #extdev):
>         <andris>        Is use of configure parameters --enable-static
> --disable-shared --disable-libxul compatible with building an extension
> written in C++ inside Firefox (current CVS trunk) source tree? #extdev
>         <biesi> andris, I'd enable libxul
>         <biesi> oh, and definitely disable static

Näillä neuvoilla lähti lisäosa minullakin toimimaan. Lisäsin alla olevan
tarkennuksen ohjeisiin:

--- trunk/mozvoikko/README.BUILD        2007-11-05 07:55:06 UTC (rev 1751)
+++ trunk/mozvoikko/README.BUILD        2007-11-05 16:04:29 UTC (rev 1752)
@@ -51,7 +51,17 @@
 1) unpack source archive into Firefox or Thunderbird source directory (mozvoikko
    directory must go to mozilla/extensions/mozvoikko)
-2) read http://developer.mozilla.org/en/docs/Creating_Custom_Firefox_Extensions_with_the_Mozilla_Build_System
+2) Create file .mozconfig at the top of the source tree. Not all configurations
+   result in a working extension. At least the following is known to work:
+   . $topsrcdir/browser/config/mozconfig
+   mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-mozvoikko
+   ac_add_options --enable-optimize
+   ac_add_options --disable-debug
+   ac_add_options --disable-tests
+   ac_add_options --enable-extensions=default,mozvoikko
+3) Read http://developer.mozilla.org/en/docs/Creating_Custom_Firefox_Extensions_with_the_Mozilla_Build_System
    about using Mozilla build system for building extensions and follow instructions.
    Extension name is mozvoikko

More information about the voikko mailing list