Re: [lxml-dev] Compiling lxml with OpenOffice embeded python 2.3.4 runtime

Voici le résultat de la compilation après installation de python 2.3.5 C:\Download\lxml-source\lxml-1.0.2>python setup.py bdist_wininst --static Building lxml version 1.0.2 *NOTE*: Trying to build without Pyrex, needs pre-generated 'src/lxml/etree.c' ! running bdist_wininst running build running build_py running build_ext building 'lxml.etree' extension C:\Program Files\Microsoft Visual Studio\VC98\BIN\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -IC:\soft\python23\include -IC:\soft\python23\PC /Tcsrc/l xml/etree.c /Fobuild\temp.win32-2.3\Release\src/lxml/etree.obj -w -I..\libxml2-2.6.26.win32\include -I..\libxslt-1.1.17.win32\include -I..\zlib-1.2.3. win32\include -I..\iconv-1.9.2.win32\include Command line warning D4025 : overriding '/W3' with '/w' etree.c C:\Program Files\Microsoft Visual Studio\VC98\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\soft\python23\libs /LIBPATH:C:\soft\python23\PCBui ld /EXPORT:initetree build\temp.win32-2.3\Release\src/lxml/etree.obj /OUT:build\lib.win32-2.3\lxml\etree.pyd /IMPLIB:build\temp.win32-2.3\Release\src/ lxml\etree.lib ..\libxml2-2.6.26.win32\lib\libxml2_a.lib ..\libxslt-1.1.17.win32\lib\libxslt_a.lib ..\libxslt-1.1.17.win32\lib\libexslt_a.lib ..\zlib- 1.2.3.win32\lib\zlib.lib ..\iconv-1.9.2.win32\lib\iconv_a.lib Creating library build\temp.win32-2.3\Release\src/lxml\etree.lib and object build\temp.win32-2.3\Release\src/lxml\etree.exp LINK : warning LNK4049: locally defined symbol "_xmlFree" imported LINK : warning LNK4049: locally defined symbol "_xsltDocDefaultLoader" imported LINK : warning LNK4049: locally defined symbol "_xsltLibxsltVersion" imported libxslt_a.lib(numbers.obj) : error LNK2001: unresolved external symbol __ftol2 libexslt_a.lib(date.obj) : error LNK2001: unresolved external symbol __ftol2 libexslt_a.lib(strings.obj) : error LNK2001: unresolved external symbol __ftol2 libexslt_a.lib(math.obj) : error LNK2001: unresolved external symbol __ftol2 libxml2_a.lib(xpath.obj) : error LNK2001: unresolved external symbol __ftol2 libxml2_a.lib(xpointer.obj) : error LNK2001: unresolved external symbol __ftol2 libxml2_a.lib(xmlschemastypes.obj) : error LNK2001: unresolved external symbol __ftol2 libxslt_a.lib(xsltutils.obj) : error LNK2001: unresolved external symbol __ftol2 build\lib.win32-2.3\lxml\etree.pyd : fatal error LNK1120: 1 unresolved externals error: command '"C:\Program Files\Microsoft Visual Studio\VC98\BIN\link.exe"' failed with exit status 1120
Stefan Behnel <behnel_ml@gkec.informatik.tu-darmstadt.de> 26/07/06 9:02 AM >>> Hi Olivier,
Olivier Collioud wrote:
No, en fait, je pensais plutôt que ça vaut le coup d'essayer avec un 'vrais' Python. Si le mystérieux "sdkinstallrootv1.1" vient de OOo, ça se peut que tu arriveras à utiliser un lxml compilé pour un python.org Python dans le OOo Python. Donc: Installer Python 2.3.4 'normal', compiler et installer lxml avec ça, et après copier le répertoire installé (site-packages/lxml) dans le Python de OOo. Stefan
------ World Intellectual Property Organization Disclaimer: This electronic message may contain privileged, confidential and copyright protected information. If you have received this e-mail by mistake, please immediately notify the sender and delete this e-mail and all its attachments. Please ensure all e-mail attachments are scanned for viruses prior to opening or using.

Hi Olivier, Olivier Collioud wrote:
Hmm, ok, lxml commonly links against libm, so my guess is that you need to supply that one also. Another possibility could be that libxml2/xslt/exslt were compiled with a newer compiler than the one you use. If you want to try, you can compile libxml2 and libxslt also from source. Since you're building lxml statically anyway, that should be ok for your purpose. Stefan PS: C'est soit l'Anglais pour la liste, soit le Français pour moi. Pas trop bien de malin les deux...

Stefan Behnel wrote:
could be that libxml2/xslt/exslt were compiled with a newer compiler than the one you use.
Yup, that's it: http://www.mail-archive.com/openssl-users@openssl.org/msg31551.html http://www.issociate.de/board/post/9216/Compiling_with_VC6.html So, try this:
Stefan

Hi Olivier, Olivier Collioud wrote:
Hmm, ok, lxml commonly links against libm, so my guess is that you need to supply that one also. Another possibility could be that libxml2/xslt/exslt were compiled with a newer compiler than the one you use. If you want to try, you can compile libxml2 and libxslt also from source. Since you're building lxml statically anyway, that should be ok for your purpose. Stefan PS: C'est soit l'Anglais pour la liste, soit le Français pour moi. Pas trop bien de malin les deux...

Stefan Behnel wrote:
could be that libxml2/xslt/exslt were compiled with a newer compiler than the one you use.
Yup, that's it: http://www.mail-archive.com/openssl-users@openssl.org/msg31551.html http://www.issociate.de/board/post/9216/Compiling_with_VC6.html So, try this:
Stefan
participants (2)
-
Olivier Collioud
-
Stefan Behnel