I did this:
- pp -B --lib c:\strawberry\perl\vendor\lib -l 
"C:\strawberry\perl\site\lib\auto\Cairo\Cairo.dll" -l 
"C:\strawberry\perl\site\lib\auto\Pango\Pango.dll" -l 
"C:\strawberry\perl\site\lib\auto\Glib\Glib.dll" -l 
"C:\strawberry\perl\site\lib\auto\Gtk2\Gtk2.dll" -o invtot_l.par invtot.pl
- unzip the par files
- removed the lib/auto/Gtk2, lib/auto/Cairo lib/auto/Pango from the par 
unzipped directory
- copied the glade folder which contains my glade generated files in the script 
directory
- zipped all the directory tree back into invtot.par
- pp -o invtot.exe invtot.par

Now the .exe file run on my pc if it is located in the same folder as the 
original script.

On an other pc, first the exe failed complaining it missed a libglib-2.0-0.dll
I setup Gtk+ runtime from http://sourceforge.net/projects/gtk-win/
Now the line "use Gtk2 -init;" seems to pass. The exe failed latter because it 
miss the glade files.

Placing the glade folder and files under the script folder (see above) does not 
work... But the problem of the dll seems to be solved

François

> -----Original Message-----
> From: Roderich Schupp [mailto:roderich.sch...@googlemail.com]
> Sent: vendredi, 17. février 2012 09:04
> To: RAPPAZ Francois
> Subject: Re: packaging gtk2 script: use Gtk2 -init; failed
> 
> On Thu, Feb 16, 2012 at 16:29, RAPPAZ Francois
> <francois.rap...@unifr.ch> wrote:
> > No, I didn't implied to install the perl binding on the target
> machine. I thought "using the archived package  + Gtk2 set up separatly
> with the installer".
> 
> How is that different from your original approach?
> The whole packaging problem _is in the Gtk etc Perl bindings_, ie.
> Gtk2.pm etc
> 
> Cheers, Roderich

Reply via email to