You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



Build a MathML-enabled Mozilla

Roger B. Sidje <rbs@maths.uq.edu.au>

Starting with milestone m0.9.9, MathML became a default part of official mozilla.org builds on Windows and Linux. It was subsequently enabled by default on the Mac with milestone m1.1. Official mozilla.org releases now have MathML support by default.


OUTDATED: old notes when MathML wasn't enabled by default

This is a summary of the build rules to get a MathML-enabled Mozilla binary on Win32 and Linux. If you already have a build environment for Mozilla, it is straightforward to enable MathML in your build and to try out the examples in the mozilla/layout/mathml/tests directory. If you want to try your own examples, see this simple cross-browser example. Remember this is work in progress (WIP), not everything works flawlessly. If you do not yet have a build environment for Mozilla, you must first download the source and make sure that it compiles and runs normally (MathML is not part of the build by default). Proceed as indicated below to enable MathML in your build.

For Mac users

Follow bug 74821 and bug 70161

For Windows users

  1. Activate MathML

    > set MOZ_MATHML=1

  2. Rebuild only the necessary part

    > cd %MOZ_SRC%\mozilla\intl\uconv\ucvmath
    > nmake makefile.win

    > cd %MOZ_SRC%\mozilla\gfx
    > nmake -f makefile.win clean
    > nmake makefile.win

    > cd %MOZ_SRC%\mozilla\layout
    > nmake -f makefile.win clean
    > nmake makefile.win

For Linux users

  1. Activate MathML

    % cd $MOZ_SRC/mozilla
    % ./configure --enable-mathml

  2. Rebuild only the necessary part


  3. % cd $MOZ_SRC/mozilla/intl/uconv/ucvmath; gmake
    % cd $MOZ_SRC/mozilla/gfx; gmake clean; gmake
    % cd $MOZ_SRC/mozilla/layout; gmake clean; gmake


IMPORTANT NOTES