Re: [xml-bindings]Problem compiling Python bindings in Windows using Borland



On Mon, Jul 22, 2002 at 07:51:43PM -0700, Andrew Ittner wrote:
> Hi:
> 
> I'm trying to use the libxml2-2.4.22.win32 & libxslt-1.0.18.win32 Windows
> pre-compiled binaries to build the libxml2-python-2.4.22 Python/libxml
> binding using Borland's free compiler
> <http://www.borland.com/products/downloads/download_cbuilder.html> (and
> Python's "python setup.py build --compiler=bcpp" syntax).
> 
> After some hours of trying to understand what it does (I am NOT conversant
> in writing or building C), I've gotten partway through and hit the following
> roadblock.
> 
> includes= [xml_includes]
> libs    = ["xml2", "m", "z"]
> 
> What does the 2nd line (from the setup.py file in the libxml2-python-2.4.22
> binding package) means?  Specifically, what are the "m" and "z" libraries?
> I've found the xml2 library, and converted it to Borland's object format.
> But I have no idea what or where the "m" or "z" libraries are!

Hello Andrew,
 
(un)fortunately i'm not a windows user/developer but i can probably provide
some information about the 'libs' line:

 'libm' is a mathematical library and comes as part of the GNU c library.  
 'libz' is a library of compression functions.

I bet you can get both by installing the cygwin environment.

  Ralf Mattes 
> The compiler output is <ilink32.exe line prettified>:
> 
> D:\Dev\temp\libxml2-python-2.4.22>python setup.py build --compiler=bcpp
> setup.py:0: SyntaxWarning: name 'xml_files' is assigned to before global
> declaration
> running build
> running build_py
> not copying libxml2.py (output up-to-date)
> not copying libxslt.py (output up-to-date)
> running build_ext
> building 'libxml2mod' extension
> skipping libxml2-py.c (build\temp.win32-2.2\Release\libxml2-py.obj
> up-to-date)
> skipping libxml.c (build\temp.win32-2.2\Release\libxml.obj up-to-date)
> skipping types.c (build\temp.win32-2.2\Release\types.obj up-to-date)
> skipping libxslt-py.c (build\temp.win32-2.2\Release\libxslt-py.obj
> up-to-date)
> skipping libxslt.c (build\temp.win32-2.2\Release\libxslt.obj up-to-date)
> writing build\temp.win32-2.2\Release\libxml2mod.def
> C:\BORLAND\BCC55\BIN\ilink32.exe /Tpd /Gn /q /x /LC:\PYTHON22\libs /L. c0d32
>  build\temp.win32-2.2\Release\libxml2-py.obj
>  build\temp.win32-2.2\Release\libxml.obj
>  build\temp.win32-2.2\Release\types.obj
>  build\temp.win32-2.2\Release\libxslt-py.obj
>  build\temp.win32-2.2\Release\libxslt.obj ,
>  build\lib.win32-2.2\libxml2mod.pyd ,,
>  xslt xml2 z m C:\PYTHON22\libs\python22_bcpp.lib import32 cw32mt ,
>  build\temp.win32-2.2\Release\libxml2mod.def ,
> Fatal: Unable to open file 'M.LIB'
> error: command 'ilink32.exe' failed with exit status 2
> 
> Thanks,
> 
> Andrew Ittner
> mailto:andrew ittner usa net
> http://zip.to/tephyr
> 
> _______________________________________________
> xml-bindings mailing list, project page  http://xmlsoft.org/
> xml-bindings gnome org
> http://mail.gnome.org/mailman/listinfo/xml-bindings



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]