Re: RE: Building XML::LibXML on Windows

"Michael Ludwig" <[email protected]> Tue, 07 Jun 2011 10:25:12 +0200
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
-------- Original-Nachricht --------
> Datum: Mon, 6 Jun 2011 18:13:48 +0100
> Von: "Steve Hay" <[email protected]>

> Michael Ludwig wrote on 2011-06-06:

> > C:\OPT\LIBXML2
> > ├───bin          - .exe and .dll
> > ├───include      - headers
> > │   ├───libxml
> > │   └───openssl
> > └───lib          - .lib files (import libraries for DLLs)
> > 
> > C:\Opt\libxml2\bin is in the PATH.
> > 
> > So I downloaded the current tarball and ran "perl Makefile.PL":
> > 
> > C:\Opt\Src\XML-LibXML-1.70 :: perl Makefile.PL
> > enable native perl UTF8
> > looking for -lxml2... no
> > looking for -llibxml2... no
> > libxml2 not found
> > Try setting LIBS and INC values on the command line

> I do it by adding libxml2's INCLUDE and LIB folders to the %INCLUDE% and
> %LIB% environment variables in the command prompt, after setting up the
> vsvars32 environment:
> 
> 	set INCLUDE=%INCLUDE%;C:\Opt\libxml2\include
> 	set LIB=%LIB%;C:\Opt\libxml2\lib
> 

Thanks, Steve. I set LIB and INCLUDE as you suggested. LIB now has:

c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\LIB
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\lib
C:\Opt\libxml2\lib

And INCLUDE has:

c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include
C:\Opt\libxml2\include

But this still fails in the same way:

perl Makefile.PL LIBS="-LC:\Opt\libxml2\bin -llibxml2 -lzlib -lzlib"

Note that it's LIBS (for linker options?) as per the Makefile.PL, whereas the Windows environment variable is LIB (search path for import libraries?).

Michael
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs