[lxml-dev] Compilation of lxml on Windows 64-bit

Hi All, Came across this little gem of a Python module which seems able to translate some XML reports for me nicely. I was very pleased to see a Python 2.6 installer for windows, made checking it out much easier than many modules I use. So thanks for that. However although my testing seems to confirm this is the ideal module I do need to deploy to our production environment which is a 64-bit Windows environment running Python 2.6 (I code on 32-bit box for simplicity/resource reasons). Has anyone compiled and used lxml on this platform combination? If not does anyone foresee me having any issues compiling it for this platform? Thanks, Hanni

Haven't looked at that yet. I'm pretty confident though that we need libxml2 to be compiled for x64 first. I use the binaries provided by Igor Zlatkovic (http://www.zlatkovic.com/libxml.en.html) to build lxml. Maybe you can get the ball rolling by pinging Igor about providing x64 binaries? I'm a little bit short of time to start that discussion, but will eventually need a x64 build myself, for using lxml with IIS in Windows Server x64. On Thu, Oct 2, 2008 at 10:56 AM, Hanni Ali <hanni.ali@gmail.com> wrote:
Hi All,
Came across this little gem of a Python module which seems able to translate some XML reports for me nicely.
I was very pleased to see a Python 2.6 installer for windows, made checking it out much easier than many modules I use. So thanks for that.
However although my testing seems to confirm this is the ideal module I do need to deploy to our production environment which is a 64-bit Windows environment running Python 2.6 (I code on 32-bit box for simplicity/resource reasons).
Has anyone compiled and used lxml on this platform combination? If not does anyone foresee me having any issues compiling it for this platform?
Thanks,
Hanni
_______________________________________________ lxml-dev mailing list lxml-dev@codespeak.net http://codespeak.net/mailman/listinfo/lxml-dev
-- Sidnei da Silva Enfold Systems http://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214

OK thanks Sidnei, I was wondering if you had been using his binaries our compiling you own. Is there an appropriate mailing list or should I ping Igor directly. I will let you know how usage on 64-bit goes and let you know about any issues. Cheers, Hanni 2008/10/2 Sidnei da Silva <sidnei@enfoldsystems.com>
Haven't looked at that yet. I'm pretty confident though that we need libxml2 to be compiled for x64 first.
I use the binaries provided by Igor Zlatkovic (http://www.zlatkovic.com/libxml.en.html) to build lxml. Maybe you can get the ball rolling by pinging Igor about providing x64 binaries? I'm a little bit short of time to start that discussion, but will eventually need a x64 build myself, for using lxml with IIS in Windows Server x64.
Hi All,
Came across this little gem of a Python module which seems able to
On Thu, Oct 2, 2008 at 10:56 AM, Hanni Ali <hanni.ali@gmail.com> wrote: translate
some XML reports for me nicely.
I was very pleased to see a Python 2.6 installer for windows, made checking it out much easier than many modules I use. So thanks for that.
However although my testing seems to confirm this is the ideal module I do need to deploy to our production environment which is a 64-bit Windows environment running Python 2.6 (I code on 32-bit box for simplicity/resource reasons).
Has anyone compiled and used lxml on this platform combination? If not does anyone foresee me having any issues compiling it for this platform?
Thanks,
Hanni
_______________________________________________ lxml-dev mailing list lxml-dev@codespeak.net http://codespeak.net/mailman/listinfo/lxml-dev
-- Sidnei da Silva Enfold Systems http://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214

Forget that, found the mailing list. 2008/10/2 Hanni Ali <hanni.ali@gmail.com>
OK thanks Sidnei,
I was wondering if you had been using his binaries our compiling you own. Is there an appropriate mailing list or should I ping Igor directly.
I will let you know how usage on 64-bit goes and let you know about any issues.
Cheers,
Hanni
2008/10/2 Sidnei da Silva <sidnei@enfoldsystems.com>
Haven't looked at that yet. I'm pretty confident though that we need
libxml2 to be compiled for x64 first.
I use the binaries provided by Igor Zlatkovic (http://www.zlatkovic.com/libxml.en.html) to build lxml. Maybe you can get the ball rolling by pinging Igor about providing x64 binaries? I'm a little bit short of time to start that discussion, but will eventually need a x64 build myself, for using lxml with IIS in Windows Server x64.
Hi All,
Came across this little gem of a Python module which seems able to
On Thu, Oct 2, 2008 at 10:56 AM, Hanni Ali <hanni.ali@gmail.com> wrote: translate
some XML reports for me nicely.
I was very pleased to see a Python 2.6 installer for windows, made checking it out much easier than many modules I use. So thanks for that.
However although my testing seems to confirm this is the ideal module I do need to deploy to our production environment which is a 64-bit Windows environment running Python 2.6 (I code on 32-bit box for simplicity/resource reasons).
Has anyone compiled and used lxml on this platform combination? If not does anyone foresee me having any issues compiling it for this platform?
Thanks,
Hanni
_______________________________________________ lxml-dev mailing list lxml-dev@codespeak.net http://codespeak.net/mailman/listinfo/lxml-dev
-- Sidnei da Silva Enfold Systems http://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214

Hi Sidnei, I have suceeded in compiling some form of libxml2 and libxslt, however I have not been able to use them to compile lxml which I think is due to some issues I have been having with iconv. I have managed to get lxml to compile using the win_iconv I found here: http://www.gtk.org/download-windows-64bit.html However the linker throws a whole host of unresolved external symbol errors, would you mind taking a look at the attached file to see if you notice something I'm doing wrong? Let me know if I can provide anything else which may help. Kind Regards, Hanni 2008/10/2 Sidnei da Silva <sidnei@enfoldsystems.com>
Haven't looked at that yet. I'm pretty confident though that we need libxml2 to be compiled for x64 first.
I use the binaries provided by Igor Zlatkovic (http://www.zlatkovic.com/libxml.en.html) to build lxml. Maybe you can get the ball rolling by pinging Igor about providing x64 binaries? I'm a little bit short of time to start that discussion, but will eventually need a x64 build myself, for using lxml with IIS in Windows Server x64.
Hi All,
Came across this little gem of a Python module which seems able to
On Thu, Oct 2, 2008 at 10:56 AM, Hanni Ali <hanni.ali@gmail.com> wrote: translate
some XML reports for me nicely.
I was very pleased to see a Python 2.6 installer for windows, made checking it out much easier than many modules I use. So thanks for that.
However although my testing seems to confirm this is the ideal module I do need to deploy to our production environment which is a 64-bit Windows environment running Python 2.6 (I code on 32-bit box for simplicity/resource reasons).
Has anyone compiled and used lxml on this platform combination? If not does anyone foresee me having any issues compiling it for this platform?
Thanks,
Hanni
_______________________________________________ lxml-dev mailing list lxml-dev@codespeak.net http://codespeak.net/mailman/listinfo/lxml-dev
-- Sidnei da Silva Enfold Systems http://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214

Hi Sidnei, I have successfully compiled lxml for Windows 64, using libxml2-2.7.2, libxslt-1.1.24, using libiconv-1.11 and zlib-1.2.3. I managed to get it to compile using iconv.lib rather than iconv_a.lib so it requires that as well as installing libxml using the generated exe I need to copy over the iconv.dll, incase anyone knows how to resolve these three external symbol errors, here they are: libxml2_a.lib(encoding.obj) : error LNK2019: unresolved external symbol __imp_li biconv referenced in function xmlIconvWrapper libxml2_a.lib(encoding.obj) : error LNK2019: unresolved external symbol __imp_li biconv_close referenced in function xmlCharEncCloseFunc libxml2_a.lib(encoding.obj) : error LNK2019: unresolved external symbol __imp_li biconv_open referenced in function xmlFindCharEncodingHandler build\lib.win-amd64-2.6\lxml\etree.pyd : fatal error LNK1120: 3 unresolved exter nals I can provide you with the instruction to build, or just the egg and exe if you wish. Hanni 2008/10/15 Hanni Ali <hanni.ali@gmail.com>
Hi Sidnei,
I have suceeded in compiling some form of libxml2 and libxslt, however I have not been able to use them to compile lxml which I think is due to some issues I have been having with iconv. I have managed to get lxml to compile using the win_iconv I found here:
http://www.gtk.org/download-windows-64bit.html
However the linker throws a whole host of unresolved external symbol errors, would you mind taking a look at the attached file to see if you notice something I'm doing wrong?
Let me know if I can provide anything else which may help.
Kind Regards,
Hanni
2008/10/2 Sidnei da Silva <sidnei@enfoldsystems.com>
Haven't looked at that yet. I'm pretty confident though that we need
libxml2 to be compiled for x64 first.
I use the binaries provided by Igor Zlatkovic (http://www.zlatkovic.com/libxml.en.html) to build lxml. Maybe you can get the ball rolling by pinging Igor about providing x64 binaries? I'm a little bit short of time to start that discussion, but will eventually need a x64 build myself, for using lxml with IIS in Windows Server x64.
Hi All,
Came across this little gem of a Python module which seems able to
On Thu, Oct 2, 2008 at 10:56 AM, Hanni Ali <hanni.ali@gmail.com> wrote: translate
some XML reports for me nicely.
I was very pleased to see a Python 2.6 installer for windows, made checking it out much easier than many modules I use. So thanks for that.
However although my testing seems to confirm this is the ideal module I do need to deploy to our production environment which is a 64-bit Windows environment running Python 2.6 (I code on 32-bit box for simplicity/resource reasons).
Has anyone compiled and used lxml on this platform combination? If not does anyone foresee me having any issues compiling it for this platform?
Thanks,
Hanni
_______________________________________________ lxml-dev mailing list lxml-dev@codespeak.net http://codespeak.net/mailman/listinfo/lxml-dev
-- Sidnei da Silva Enfold Systems http://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214

Hi Hanni, I finally managed to compile lxml for x64 myself. Since now I have a working environment capable of generating those, I will start uploading x64 binaries to PyPI. Would be awesome if you could give those lxml 2.2.1 binaries a try and let me know if it works for you. They are completely statically linked so no extra dependencies should be needed. http://drop.io/ouequws -- Sidnei

Hi Sidnei, Seems to work well for me here, I will install it across our dev environment to give it some thorought testing time, but it looks good to me. Cheers, Hanni 2009/7/16 Sidnei da Silva <sidnei@enfoldsystems.com>
Hi Hanni,
I finally managed to compile lxml for x64 myself. Since now I have a working environment capable of generating those, I will start uploading x64 binaries to PyPI.
Would be awesome if you could give those lxml 2.2.1 binaries a try and let me know if it works for you. They are completely statically linked so no extra dependencies should be needed.
-- Sidnei
participants (2)
-
Hanni Ali
-
Sidnei da Silva