Click here to get back home

Win32:Printer Windows x86 build with FreeImage.dll support build issues

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Win32:Printer Windows x86 build with FreeImage.dll support build issues Eadmund 05-29-2008
Posted by Eadmund on May 29, 2008, 2:58 pm
Please log in for more thread options
Hi,

I'm trying to build Win32::Printer with Freeimage.dll support (under
windows xp using the MS free compilers). The default build is to have
it without FreeImage support when you install it using 'c:\perl\bin
\cpan' , so I am manually unzipping the source ans running
makefile.pl, then nmake. When I do this I get referneces to
delayimp.lib not being found, but it works OK.

HOWEVER, when I run the makefile.pl with command line options (ARGS),
that trigger the "do you want freeimage support' etc, and I say yes -
the delayimp.lib is used and the compilation fails with:

"FreeImage.lib(FreeImage.dll) : error LNK2001: unresolved external
symbol ___delayLoadHelper2@8"

(I have freeimage installed in my perl bin directory and in my path)

I have tried editing out the delay calls in the makefile, but it still
breakes the build.
I cannot find a copy of delayimp.lib ANYWHERE (and I've really looked)

Sooo:

1) Does anyone have the Win32:Printer DLL pre-complied with
Freeimage support they can mail me OR
2) Does anyone know how to over come my build issues?

Any help gratefully recieved

Regards

Eadmund

Eadmund@letterbee.com

Posted by Bjoern Hoehrmann on May 29, 2008, 3:51 pm
Please log in for more thread options
* Eadmund@letterbee.com wrote in comp.lang.perl.modules:
>I'm trying to build Win32::Printer with Freeimage.dll support (under
>windows xp using the MS free compilers). The default build is to have
>it without FreeImage support when you install it using 'c:\perl\bin
>\cpan' , so I am manually unzipping the source ans running
>makefile.pl, then nmake. When I do this I get referneces to
>delayimp.lib not being found, but it works OK.

How did you install the compiler? If delayimp.lib cannot be found on
your hard drive, you could download and install the Platform SDK or
the Driver Development Kit, they both include the library. If you do
have it on the hard drive and it cannot be found, you have to adjust
the library paths (e.g. using `set LIBS=...`). Usually the compilers
come with a special command prompt and batch file that sets the en-
vironment up properly.

If you use ActivePerl you might also be able to install the module
via ppm, e.g. http://cpan.uwinnipeg.ca/dist/Win32-Printer has a ppm
module for Perl 5.8.x and ActiveState might also offer one.
--
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/

Posted by Eadmund on May 30, 2008, 12:57 pm
Please log in for more thread options
> * Eadm...@letterbee.com wrote in comp.lang.perl.modules:
>
> >I'm trying to build Win32::Printer with Freeimage.dll support (under
> >windows xp using the MS free compilers). The default build is to have
> >it without FreeImage support when you install it using 'c:\perl\bin
> >\cpan' , so I am manually unzipping the source ans running
> >makefile.pl, then nmake. When I do this I get referneces to
> >delayimp.lib not being found, but it works OK.
>
> How did you install the compiler? If delayimp.lib cannot be found on
> your hard drive, you could download and install the Platform SDK or
> the Driver Development Kit, they both include the library. If you do
> have it on the hard drive and it cannot be found, you have to adjust
> the library paths (e.g. using `set LIBS=3D...`). Usually the compilers
> come with a special command prompt and batch file that sets the en-
> vironment up properly.
>
> If you use ActivePerl you might also be able to install the module
> via ppm, e.g.http://cpan.uwinnipeg.ca/dist/Win32-Printerhas a ppm
> module for Perl 5.8.x and ActiveState might also offer one.
> --
> Bj=F6rn H=F6hrmann =B7 mailto:bjo...@hoehrmann.de =B7http://bjoern.hoehrma=
nn.de
> Weinh. Str. 22 =B7 Telefon:=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0+49(0)621/4=
309674=A0=A0=A0=A0=A0=A0=A0=B7http://www.bjoernsworld.de
> 68309 Mannheim =B7 PGP Pub. KeyID: 0xA4357E78 =B7http://www.websitedev.de/=



Posted by Eadmund on May 30, 2008, 12:59 pm
Please log in for more thread options
> * Eadm...@letterbee.com wrote in comp.lang.perl.modules:
>
> >I'm trying to build Win32::Printer with Freeimage.dll support (under
> >windows xp using the MS free compilers). The default build is to have
> >it without FreeImage support when you install it using 'c:\perl\bin
> >\cpan' , so I am manually unzipping the source ans running
> >makefile.pl, then nmake. When I do this I get referneces to
> >delayimp.lib not being found, but it works OK.
>
> How did you install the compiler? If delayimp.lib cannot be found on
> your hard drive, you could download and install the Platform SDK or
> the Driver Development Kit, they both include the library. If you do
> have it on the hard drive and it cannot be found, you have to adjust
> the library paths (e.g. using `set LIBS=3D...`). Usually the compilers
> come with a special command prompt and batch file that sets the en-
> vironment up properly.
>
> If you use ActivePerl you might also be able to install the module
> via ppm, e.g.http://cpan.uwinnipeg.ca/dist/Win32-Printerhas a ppm
> module for Perl 5.8.x and ActiveState might also offer one.
> --
> Bj=F6rn H=F6hrmann =B7 mailto:bjo...@hoehrmann.de =B7http://bjoern.hoehrma=
nn.de
> Weinh. Str. 22 =B7 Telefon:=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0+49(0)621/4=
309674=A0=A0=A0=A0=A0=A0=A0=B7http://www.bjoernsworld.de
> 68309 Mannheim =B7 PGP Pub. KeyID: 0xA4357E78 =B7http://www.websitedev.de/=


Hi Bjorn,

Thanks for the info, I can now compile. The library file WAS inthe DDK
as you said, I had downloaded the platform and .net developer packages
(which it is not in).

Thanks again

Eadmund

Similar ThreadsPosted
List of sample Build::Module Build.PL May 7, 2007, 6:49 pm
XSUB example in perlxstut fails to build on Win32 June 9, 2005, 11:40 pm
Win32::Printer::Enum::Printer($server) June 23, 2005, 2:18 pm
DBD-Pg for Perl 5.8.4 Build 810 December 11, 2004, 1:05 pm
Help with Module::Build June 19, 2006, 10:50 am
Using Module::Build to XS December 18, 2007, 4:50 pm
Perl/Tk build fails on HP-UX February 27, 2006, 4:58 pm
Filesys::SmbClient Build Errors July 14, 2006, 1:36 pm
HTML-Parser-3.56 build problem February 6, 2007, 4:32 am
Re: Best Practice - Modules to build a web application March 17, 2007, 10:10 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap