From: <ka...@ca...> - 2004-10-21 19:04:02
|
Duncan Coutts <dun...@wo...> wrote: > > > Would the maintainers then be willing to make this > > a part of the default distribution? > > If we can make it work, I'd say so. Thanks! > > Is it easy for somebody familiar with the autoconf and make setup > > of gtk2hs to integrate this into gtk2hs? > > >From your description it doesn't look too hard. We'll help you out with > this. Could you describe in more detail the dependencies, eg on > gtkmozembed & on mozilla and/or firefox? > ie what will the configure scrip need to look for? > what were the issues with header files & libs? It needs the .h file, looked for via #include<mozilla/gtkembedmoz/gtkmozembed.h> , and found in my case via lrwxrwxrwx 1 24 Sep 19 20:28 /usr/include/mozilla -> /usr/lib/mozilla/include (The gtkmozembed.h inside the firefox source is identical.) Then it needs the shared library libgtkembedmoz.so, of which I have two: /usr/lib/MozillaFirefox/libgtkembedmoz.so /usr/lib/mozilla/libgtkembedmoz.so By the way, all applications need to do: mozEmbedSetCompPath "/usr/lib/MozillaFirefox" -- or wherever.. , so this would be a nice application of module initialisation. (Possibly the link error I mentioned was due to mismatch between .so and components directory.) Now that I think more about it I would tend to integrate a call to this with configure-produced path into mozEmbedNew, and not export mozEmbedSetCompPath at all. So my proposed strategy for configure would be: * find the first .h file * find the first (Firefox before mozilla) .so file and components directory * allow user override for both. Also, I forgot to include a link to the home page of gtkembedmoz: http://www.mozilla.org/unix/gtk-embedding.html > > I know nothing of MacOS but I believe gtk2hs works there... I tried it when I had darwinports (machine since reinstalled), and it compiled without problems, but I have no idea how things like shared libraries work there, and was getting nowhere with my manual installation. Cheers, Wolfram |