Posted on 2005-04-29 17:50:46-07 by i18n
Prequisites for this module?
Hi Scott - I wonder if you can helpme out with the prereqs for this module. Ultimately I am interested in the Mozilla DOM tree encapuslated by module Mozilla-DOM, not so much the visual aspects of the browser.

But it looks like Mozilla-DOM requires this module. So be it.

On my machine, do I get any libraries needed by either module installing either Firefox or Mozilla? If so, does the version matter? If not, does the make file buld them directly (where does it get the source if that is what happens?).

Eventually I will be interested in the answers for Linux, Windows, and Mac in that order, but for now I am most interested in the details for Linux, and looking ahead for Windows.

Thanks,

Barry
Direct Responses: 407 | Write a response
Posted on 2005-05-02 07:47:38-07 by slanning in response to 401
Re: Prequisites for this module?

Currently you'll need to install Mozilla. I want to make it work with Firefox like Gtk2::MozEmbed does, but I have to test it (which requires me actually installing Firefox). Mozilla will install libraries:

$ pkg-config --libs mozilla-xpcom -L/usr/lib/mozilla -lxpcom -lplds4 -lplc4 -lnspr4 -ldl -lc -lpthread

You'll want at least version 1.7.5 of Mozilla, since that's what I used, though it might work with earlier versions.

Mozilla::DOM will not work with Windows. In order to get it to work with Windows you'd have to make ExtUtils::Depends work with Windows, which I'm not sure that it does. I don't use Windows. Mozilla::DOM may work on MacOS X, but nobody has confirmed that. I don't use MacOS X.

You can't currently use Mozilla::DOM without showing a window, as far as I know. It might be possible to create a kind of "null" widget toolkit library, equivalent to Gtk, Qt, or wxWidgets, that doesn't require displaying windows; then wrap it in Perl and use it in the same way that you use Gtk2::MozEmbed.

Direct Responses: 2350 | Write a response
Posted on 2006-05-25 17:15:26-07 by johnsmith in response to 407
Re: Prequisites for this module?
"In order to get it to work with Windows you'd have to make ExtUtils::Depends work with Windows, which I'm not sure that it does"

That's the easy part actually ;) ExtUtils::PkgConf is much harder as far as I know. However you can get them both installed via cygwin. (I could get Depends installed normally, it was PkgConf which forced me to break out the cygwin).

However what I'm having problems with is the xpcom requirement. Your Makefile.PL is making a lot of linuxy assumptions (not that I can blame you ;) but do you think it would still work if I work around them or would is simply not understand anything without knowing how to hook into dlls instead of .h files and such?

thanks

JS
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.