Show quoted text> <URL:
http://rt.cpan.org/Ticket/Display.html?id=48759 >
>
> I think it's reasonable for the first attempt to just use the .dll files.
>
> We can improve it in a subsequent release if we does actually display
> DLL clash problems.
>
> Adam K
OK In that case it will be quite simple.
This scenario works for me:
### libjpeg
1) download jpeg-6b-4-bin.zip and jpeg-6b-4-lib.zip
from
http://gnuwin32.sourceforge.net/packages/jpeg.htm
2) copy the following files into your strawberry:
jpeg-6b-4-bin.zip/bin/jpeg62.dll => c:\strawberry\c\bin\jpeg62.dll
jpeg-6b-4-lib.zip/include/* => c:\strawberry\c\include\
jpeg-6b-4-lib.zip/lib/libjpeg.dll.a => c:\strawberry\c\lib\libjpeg.a
### libgif
1) download giflib-4.1.4-1-bin.zip and giflib-4.1.4-1-lib.zip
from
http://gnuwin32.sourceforge.net/packages/giflib.htm
2) copy the following files into your strawberry:
giflib-4.1.4-1-bin.zip/bin/giflib4.dll => c:\strawberry\c\bin\giflib4.dll
giflib-4.1.4-1-lib.zip/include/gif_lib.h =>
c:\strawberry\c\include\gif_lib.h
giflib-4.1.4-1-lib.zip/lib/libgif.dll.a => c:\strawberry\c\lib\libgif.a
### linpng
1) download libpng-1.2.37-bin.zip and libpng-1.2.37-lib.zip
from
http://gnuwin32.sourceforge.net/packages/libpng.htm
2) copy the following files into your strawberry:
libpng-1.2.37-bin.zip/bin/libpng12.dll => c:\strawberry\c\bin\libpng12.dll
libpng-1.2.37-bin.zip/bin/libpng3.dll => c:\strawberry\c\bin\libpng3.dll
libpng-1.2.37-lib.zip/include/* => c:\strawberry\c\include\
libpng-1.2.37-lib.zip/lib/libpng.dll.a => c:\strawberry\c\lib\libpng.a
libpng-1.2.37-lib.zip/lib/libpng12.dll.a => c:\strawberry\c\lib\libpng12.a
### libtiff
1) download tiff-3.8.2-1-bin.zip and tiff-3.8.2-1-lib.zip
from
http://gnuwin32.sourceforge.net/packages/tiff.htm
2) copy the following files into your strawberry:
tiff-3.8.2-1-bin.zip/bin/libtiff3.dll => c:\strawberry\c\bin\libtiff3.dll
tiff-3.8.2-1-lib.zip/include/* => c:\strawberry\c\include\
tiff-3.8.2-1-lib.zip/lib/libtiff.dll.a => c:\strawberry\c\lib\libtiff.a
### libfreetype
1) download freetype-2.3.5-1-bin.zip and freetype-2.3.5-1-lib.zip
from
http://gnuwin32.sourceforge.net/packages/freetype.htm
2) copy the following files into your strawberry:
freetype-2.3.5-1-bin.zip/bin/freetype6.dll =>
c:\strawberry\c\bin\freetype6.dll
freetype-2.3.5-1-lib.zip/include/* => c:\strawberry\c\include\
freetype-2.3.5-1-lib.zip/lib/libfreetype.dll.a =>
c:\strawberry\c\lib\libfreetype.a
Then you can simply install Imager by running:
cpan Imager
(compiles OK, all tests PASS)
NOTE 1:
- the size of all copied files (*.dll/*.a/*.h) is about 3.7MB
- there are 6 new DLLs (I put them into c:\strawberry\c\bin\ but I am
wondering whether c:\strawberry\perl\bin\ would not be slightly better)
NOTE 2:
- not all libraries are available on gnuwin32 in the latest version
- however I do not see this as a big problem especially comparing with
effort needed to rebuild them all from sources
NOTE 3:
- 4 DLLs (freetype6.dll libpng12.dll libpng3.dll libtiff3.dll) have a
dependency on zlib1.dll
- therefore my idea of getting rid of zlib1.dll discussed here
https://rt.cpan.org/Public/Bug/Display.html?id=48671 was wrong
Is the description above enough or should I prepare something else to
help you with adding these libraries into strawberry?
--
kmx
P.S. BTW it would be a good idea to give CSJewell co-maint to
Perl-Dist-Strawberry (he will be notified about posts like this by e-mail)