Problem compiling Python bindings in Windows using Borland
"Andrew Ittner" <[email protected]> Mon, 22 Jul 2002 19:51:43 -0700
| Newsgroups | gmane.comp.gnome.lib.xml.bindings |
|---|---|
| Message-ID | <[email protected]> |
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! 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:[email protected] http://zip.to/tephyr