March 24, 2006

Yay, disappointment

So, I was trying to get a wxPerl wrapper around the wxMozilla widget, which is a Wx wrapper for an embedded mozilla rendering engine. Should be simple, right?

Hah, I wish.

I got lucky, in a way, starting the module on my Linux box. It turns out that Linux is the only place that the mozilla embedding interface actually works. Everywhere else (or at least on OS X and Windows) it doesn't. At all. Apparently the mozilla interface kept changing, leaving them dancing to try and keep up, and it just wasn't worth it. (I found this when I tried getting it all working on OS X -- The embedding interface had a bunch of changes between Firefox 1.0.x and 1.5. WxMozilla worked with the 1.0.x version of the embedding interface, but Firefox 1.0.x won't compile at all on OS X 10.4)

Anyway. Wx::Mozilla, the perl module to let you use mozilla's HTML rendering widget in a wxPerl program, is up to version 0.05, and on CPAN. It only works on Linux, unless by some miracle someone hacks up the WxMozilla code to build on OS X or Windows. (Yes, I know, there's a win installer for WxMozilla -- it doesn't work)

Wx::WebKit's on CPAN too, for folks that want to play with OS X's native WebKit HTML engine from within WxPerl programs.

Posted by Dan at March 24, 2006 10:31 AM | TrackBack (0)

In Win32, at least, it's much easier to embed the Mozilla OCX container that does most of the work for you almost automatically, as long as you can host ActiveX components.

I think it should be pretty easy to do using ActivePerl on Win32, provided you install the Mozilla OCX control.

(I've done it in Ruby and Delphi before, should be non-trivial in Perl too)

Project Homepage: Mozilla Activex Control

Posted by: vruz at March 24, 2006 05:16 PM