in reply to Fail to pp cairo, pango on windows

You could at least show us how you are using pp, or the actual error message you experience :) Try something like:

pp -l libCairoPerl.dll -l Cairo.dll -l Glib.dll -l Gtk2.dll .....

Though you should use the correct path to these libraries. Please note that I've not tested this. Double check the pp documentation, and let us know if you have any further problems with this.

Cheers,

Martin

Replies are listed 'Best First'.
Re^2: Fail to pp cairo, pango on windows
by llancet (Friar) on Nov 24, 2009 at 01:46 UTC

    This time, I included some related files, but still got a failure.

    pp params:
    D:\>pp -l c:\camelbox\site\lib\auto\Glib\Glib.dll -l c:\camelbox\site\lib\auto\Gtk2\Gtk2.dll -l c:\camelbox\site\lib\auto\Cairo\Cairo.dll -l c:\camelbox\site\lib\auto\Pango\Pango.dll -l c:\camelbox\lib\libcairo.dll.a -l c:\camelbox\lib\libcairo.dll.a -o Corr.exe mydoc\Corr.pl
    Error message:
    GLib-GObject-CRITICAL **: g_boxed_type_register_static: assertion `g_t +ype_from_name (name) == 0' failed at C:/camelbox/lib/DynaLoader.pm li +ne 226. cannot register alias Gtk2::Pango::Attribute for the unregistered type + (null) at C:/camelbox/lib/DynaLoader.pm line 226. Compilation failed in require at script/Corr.pl line 16. BEGIN failed--compilation aborted at script/Corr.pl line 16.

      I'm not a camelbox user, their mailing list has several threads on this topic which I found via seraching google. Perhaps you should ask over at http://code.google.com/p/camelbox/ either via IRC or their google group.

      You don't want libcairo.dll.a What you want is to use lisdlls (or dependencywalker) to find which dlls are loaded, which for me turned out to be
      -l libglib-2.0-0.dll -l libgobject-2.0-0.dll -l libgthread-2.0-0.d +ll -l libcairo-2.dll -l libfontconfig-1.dll -l libexpat-1.dll -l +freetype6.dll -l libpng12-0.dll -l zlib1.dll -l libpango-1.0-0.dll + -l libgmodule-2.0-0.dll -l libpangocairo-1.0-0.dll -l libpangoft2 +-1.0-0.dll -l libpangowin32-1.0-0.dll -l libatk-1.0-0.dll -l libgd +k-win32-2.0-0.dll -l libgdk_pixbuf-2.0-0.dll -l libgio-2.0-0.dll - +l libgtk-win32-2.0-0.dll -l intl.dll
      But that didn't work It seems like PAR/Gtk2-perl teams could use an infusion of cash :)

      You should use the Cava packager, I've tested it just now and it worked.

        The Cava also don't work, with same error message...