[mythtv] Problem cross-compiling from Windows to Linux

Andrew Wilkinson andrewjwilkinson at gmail.com
Sat Mar 23 13:44:14 UTC 2013


Hi,

I'm trying to cross-compile from my Ubuntu 12.10 install to Windows, but
I'm getting the following error.

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's not clear what the fix is.

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
In file included from /usr/include/python2.7/Python.h:58,
                 from libxml_wrap.h:1,
                 from types.c:13:
/usr/include/python2.7/pyport.h:338:24: error: sys/select.h: No such file
or directory
In file included from /usr/include/python2.7/Python.h:58In file included
from /usr/include/python2.7/Python.h:58,
                 from libxml_wrap.h:1,
                 from libxslt.c:14:
,
                 from
libxslt_wrap.h:1/usr/include/python2.7/pyport.h:338:24:,
                 from libxslt-py.c:4 :
error: /usr/include/python2.7/pyport.h:338:24:sys/select.h: No such file or
directory
error: sys/select.h: No such file or directory
In file included from types.c:13:
libxml_wrap.h:55: error: expected specifier-qualifier-list before
‘xmlCatalogPtr’
libxml_wrap.h:80: error: expected ‘)’ before ‘obj’
In file included from libxslt_wrap.h:1,
                 from libxslt-py.c:4:
libxml_wrap.h:55: error: expected specifier-qualifier-list before
‘xmlCatalogPtr’
libxml_wrap.h:80: error: expected ‘)’ before ‘obj’
types.c: In function ‘libxml_xmlXPathObjectPtrConvert’:
types.c:462: warning: dereferencing type-punned pointer will break
strict-aliasing rules
types.c: At top level:
types.c:533: error: expected ‘)’ before ‘catal’
make[3]: *** [types.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from libxslt_wrap.h:1,
                 from libxslt.c:20:
libxml_wrap.h:55: error: expected specifier-qualifier-list before
‘xmlCatalogPtr’
libxml_wrap.h:80: error: expected ‘)’ before ‘obj’
make[3]: *** [libxslt.lo] Error 1
make[3]: *** [libxslt-py.lo] Error 1
make[3]: Leaving directory
`/home/andrew/Programming/packaging/Win32/mythbuild/libxslt-1.1.26/python'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/andrew/Programming/packaging/Win32/mythbuild/libxslt-1.1.26/python'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/andrew/Programming/packaging/Win32/mythbuild/libxslt-1.1.26'
make: *** [all] Error 2

Many thanks,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-dev/attachments/20130323/fa746344/attachment.html>


More information about the mythtv-dev mailing list