develooper Front page | perl.par | Postings from February 2012

RE: using -l and a list of dll in a file

Thread Previous | Thread Next
From:
RAPPAZ Francois
Date:
February 24, 2012 05:09
Subject:
RE: using -l and a list of dll in a file
Message ID:
FEFE4227FE41814EAAC5D1AADE3DA3BCE15FED288E@EXCHANGE2.unifr.ch

To summer here what I did with the help of Roderich Schupp to get a perl script using Gtk2 packed with pp 
(on Windows7, with Strawberry perl 5.12.3, 32bits, Gtk2 set up with http://code.google.com/p/gtk-perl-compiler/ which takes the glib and co from http://ftp.gnome.org/pub/gnome/binaries/win32, 7-zip as zipper) 

This bat file in c:\docs\dokpe_i01 (with my perl sripts on a share under U:\docs\perl\dokpe_i01)
>>>>>>>>>>>>>>>>>>>>>>>>>>
set file=invtot1
U:
cd U:\docs\perl\dokpe_i01
call pp -B -a glade -I C:\strawberry\c\bin\ -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 -l C:\strawberry\perl\site\lib\auto\Cairo\Cairo.dll @ppopts.txt -o %file%.par invtot.pl
if "%ERRORLEVEL%" == "1" exit /B 1
rd /s /q c:\docs\dokpe_i01\tmp
7z x %file%.par -aoa -oC:\docs\dokpe_i01\tmp
c:
cd c:\docs\dokpe_i01\tmp\lib\auto
ren Gtk2 _Gtk2
ren Glib _Glib
ren Pango _Pango
cd c:\docs\dokpe_i01\tmp
7z a %file%.zip .\*
move /Y %file%.zip c:\docs\dokpe_i01
cd c:\docs\dokpe_i01
call pp -o %file%.exe %file%.zip
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

With the following for ppopts.txt:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-l libgobject-2.0-0.dll
-l libglib-2.0-0.dll
-l libgthread-2.0-0.dll
-l libcairo-2.dll
-l libfontconfig-1.dll
-l libexpat-1.dll
-l freetype6.dll
-l libpng12-0_.dll
-l libpng14-14.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 libgdk-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
-l libmysql_.dll
-X DBD::ADO
-X DBD::Gofer
-X DBD::ODBC
-X DBD::SQLite
-X DBD::File
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

The exe now runs on a pc without any perl or gtk binaries installed.

Strangely, I was unable to include the -l C:\strawberry\perl\site\lib\auto\Pango\Pango.dll & co in the option file since the dll were not found in that case.

Best, François

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About