<div dir="ltr">Hi,<div><br></div><div style>I&#39;m trying to cross-compile from my Ubuntu 12.10 install to Windows, but I&#39;m getting the following error.</div><div style><br></div><div style>The error seems to be related to libxslt picking up the host Python and using that, rather than a cross-compiled one. Can anyone shed some light on how to fix this? I see from the build script that libxml, build immediately before libxslt, had the same issue, but it&#39;s not clear what the fix is.</div>

<div style><br></div><div style><div>libtool: compile:  i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/python2.7 -I/home/andrew/Programming/packaging/Win32/mythinstall/include/libxml2 -I../libxslt -I.. -I../libexslt -I/home/andrew/Programming/packaging/Win32/mythinstall/include -g -O2 -Wall -MT libxslt.lo -MD -MP -MF .deps/libxslt.Tpo -c libxslt.c  -DDLL_EXPORT -DPIC -o .libs/libxslt.o</div>

<div>In file included from /usr/include/python2.7/Python.h:58,</div><div>                 from libxml_wrap.h:1,</div></div><div style><div>                 from types.c:13:</div><div>/usr/include/python2.7/pyport.h:338:24: error: sys/select.h: No such file or directory</div>

<div>In file included from /usr/include/python2.7/Python.h:58In file included from /usr/include/python2.7/Python.h:58,</div><div>                 from libxml_wrap.h:1,</div><div>                 from libxslt.c:14:</div><div>

,</div><div>                 from libxslt_wrap.h:1/usr/include/python2.7/pyport.h:338:24:,</div><div>                 from libxslt-py.c:4 :</div><div>error: /usr/include/python2.7/pyport.h:338:24:sys/select.h: No such file or directory </div>

<div>error: sys/select.h: No such file or directory</div><div>In file included from types.c:13:</div><div>libxml_wrap.h:55: error: expected specifier-qualifier-list before ‘xmlCatalogPtr’</div><div>libxml_wrap.h:80: error: expected ‘)’ before ‘obj’</div>

<div>In file included from libxslt_wrap.h:1,</div><div>                 from libxslt-py.c:4:</div><div>libxml_wrap.h:55: error: expected specifier-qualifier-list before ‘xmlCatalogPtr’</div><div>libxml_wrap.h:80: error: expected ‘)’ before ‘obj’</div>

<div>types.c: In function ‘libxml_xmlXPathObjectPtrConvert’:</div><div>types.c:462: warning: dereferencing type-punned pointer will break strict-aliasing rules</div><div>types.c: At top level:</div><div>types.c:533: error: expected ‘)’ before ‘catal’</div>

<div>make[3]: *** [types.lo] Error 1</div><div>make[3]: *** Waiting for unfinished jobs....</div><div>In file included from libxslt_wrap.h:1,</div><div>                 from libxslt.c:20:</div><div>libxml_wrap.h:55: error: expected specifier-qualifier-list before ‘xmlCatalogPtr’</div>

<div>libxml_wrap.h:80: error: expected ‘)’ before ‘obj’</div><div>make[3]: *** [libxslt.lo] Error 1</div><div>make[3]: *** [libxslt-py.lo] Error 1</div><div>make[3]: Leaving directory `/home/andrew/Programming/packaging/Win32/mythbuild/libxslt-1.1.26/python&#39;</div>

<div>make[2]: *** [all-recursive] Error 1</div><div>make[2]: Leaving directory `/home/andrew/Programming/packaging/Win32/mythbuild/libxslt-1.1.26/python&#39;</div><div>make[1]: *** [all-recursive] Error 1</div><div>make[1]: Leaving directory `/home/andrew/Programming/packaging/Win32/mythbuild/libxslt-1.1.26&#39;</div>

<div>make: *** [all] Error 2</div><div><br></div><div style>Many thanks,</div><div style>Andrew</div><div style><br></div></div></div>