I've not added the API to do this yet, I'm afraid. It's not a priority,
but patches welcome.

I'd suggest that the cluttermozembed should create a shared memory
segment, write the data to that segment, then send a message to headless
along the lines of 'render-html <shm-name>', then block for a reply
(something like 'html-rendered'), after which it can free the shared
memory segment.

--Chris

On Mon, 2009-05-11 at 14:31 +0800, Yao wrote:
> Hi, All:
> 
>     I have built mozilla-headless and clutter-mozembed successfully.
> and Tests under clutter-mozembed/tests works well. And now i have a
> question about clutter-mozembed, how can i use clutter-mozembed to
> load a partial html string not a web url just like
> webkit_web_view_load_string (int webkit)? 
> 
> 
>     Thanks a lot. I really appreciate any help.
> 
> 
> On Sun, May 3, 2009 at 3:58 PM, Harry Zhang <[email protected]>
> wrote:
>         I've figured out the solution by myself, of course, based on
>         Chris's original hints. :)
>         
>         Simply use "make SKIP_GRE_REGISTRATION=1 install" command in
>         objdir, and all the related stuffs will be installed into
>         "/opt/mozzila" which is set in .mozconfig using
>         "--prefix=PREFIX" option.
>         
>         After set configuration path for pkg and ldconfig,
>         clutter-mozembed was successfully built and tests also work
>         well.
>         
>         Thanks Chris a lot for your help!
>         
>         
>         On Sat, May 2, 2009 at 12:54 AM, Harry Zhang
>         <[email protected]> wrote:
>                 Chris,
>                 
>                 Thanks a lot for your great help, I've compiled the
>                 trunk with headless branch and your example .mozconfig
>                 file by using command:
>                 make -f client.mk build
>                 
>                 After the successful compilation, I've get an object
>                 directory; then I follow the Build and Install
>                 instructions of Mozilla
>                 (https://developer.mozilla.org/en/Build_and_Install)
>                 and run "make package" in the object dir, so I get a
>                 tarball in the end.
>                 
>                 I unpacked it in "/opt/mozzila" and add a
>                 configuration file for ldconfig to recognize it; but
>                 my problem become how can I make use of the stuffs in
>                 "dist" dir of objdir, to somehow install them so that
>                 clutter-mozembed can be configured and compiled?
>                 
>                 Many thanks in advance!
>                 
>                 
>                 
>                 On Thu, Apr 30, 2009 at 8:22 PM, Chris Lord
>                 <[email protected]> wrote:
>                         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 clutter
>                         [email protected]
>                         
>                 
>                 
>         
>         
> 
> 
> 
> 
> 
> -- 
> 
> Best Regards
> 
> Yao
> 
> 
> 
-- 
Chris Lord, Intel Open Source Technology Centre

-- 
To unsubscribe send a mail to [email protected]

Reply via email to