On Thu, 2009-04-30 at 15:58 +0800, Harry Zhang wrote: > Hi all, > > I'm trying to compile the clutter-mozembed from the git source > http://git.clutter-project.org/cgit.cgi?url=clutter-mozembed/tree/ > > During the configuration steps, I was told that mozilla-js and > mozilla-headless > 1.9.2alpre are required, so I follow the log > message in http://git.o-hand.com/cgit.cgi/mozilla-headless/ and > download the mozilla sources from > http://hg.mozilla.org/incubator/offscreen/file/cac1faadfc8f > > However, after successfully configure, make and make install the > codes (configure --enable-application=xulrunner --disable-javaxpcom), > the required header file <moz-headless.h> are still not found during > the compilation of clutter-mozembed, so anybody can kindly offer some > hints on how to make this work? > > Thanks in advance! > > Regards, > Harry
After downloading the mozilla sources, you need to switch to the headless or headless-plugins branch, done by running 'hg checkout <branch>' (where <branch> is 'headless' or 'headless-plugins'). You then need the correct configure arguments, or the default backend will be compiled (which is the gtk2 backend on Unix, I think). I'd recommend putting your configure options in $HOME/.mozconfig, which will be read when you run the Mozilla configure. You can find a suitable ~/.mozconfig in the related Mozilla bug: https://bugzilla.mozilla.org/show_bug.cgi?id=446591 Change --disable-plugins to --enable-plugins if you're building with the headless-plugins branch and you want plugin support (you'll also need to configure clutter-mozembed with --enable-plugins). You'll likely need to change your LD_LIBRARY_PATH, and I'd recommend installing Mozilla into a completely separate prefix, such as /opt/mozilla so you can easily remove it. A final tip, when installing mozilla, run 'make SKIP_GRE_REGISTRATION=1 install', or it will try to install (and possibly overwrite) files in /etc/gre.d, which will likely cause Mozilla-using applications (such as devhelp) to stop working. Hope that helps, and good luck! -- Chris Lord, Intel Open Source Technology Centre -- To unsubscribe send a mail to [email protected]
