[poky] Python related Error while compiling xbmc-11.1 with poky

Sparsh Wid hope sparsh150847 at yahoo.com
Mon Aug 20 23:49:01 PDT 2012


Hi All,

I'm trying to cross-compile xbmc-11.1 on linux through poky. OE Build Configuration is given below:
BB_VERSION        = "1.11.0"
METADATA_BRANCH   = "bernard-cur"
METADATA_REVISION = "Commit:1f2e1ab"
TARGET_ARCH       = "i586"
TARGET_OS         = "linux"
MACHINE           = "fishriver"
DISTRO            = "poky"
DISTRO_VERSION    = "1.0"
TARGET_FPU        = ""

While do_configure() I got some python related error. Error log is given below:

checking for python... /home/sct/my_workspace/poky_xbmc_09Mar2012/build/tmp/sysroots/i686-linux/usr/bin/python
| checking for a version of Python >= '2.1.0'... yes
| checking for a version of Python >= 2.4... yes
| checking for the distutils Python package... yes
| checking for Python include path... Traceback (most recent call last):
|   File "<string>", line 1, in <module>
|   File 
"/home/sct/my_workspace/poky_xbmc_09Mar2012/build/tmp/sysroots/i686-linux/usr/lib/python2.6/distutils/sysconfig.py",
 line 22, in <module>
|     PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
| TypeError: expected a character buffer object
| 
| checking for Python library path... Traceback (most recent call last):
|   File "<stdin>", line 4, in <module>
|   File 
"/home/sct/my_workspace/poky_xbmc_09Mar2012/build/tmp/sysroots/i686-linux/usr/lib/python2.6/distutils/sysconfig.py",
 line 22, in <module>
|     PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
| TypeError: expected a character buffer object
| Traceback (most recent call last):
|   File "<stdin>", line 3, in <module>
|   File 
"/home/sct/my_workspace/poky_xbmc_09Mar2012/build/tmp/sysroots/i686-linux/usr/lib/python2.6/distutils/sysconfig.py",
 line 22, in <module>
|     PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
| TypeError: expected a character buffer object
| Traceback (most recent call last):
|   File "<string>", line 1, in <module>
|   File 
"/home/sct/my_workspace/poky_xbmc_09Mar2012/build/tmp/sysroots/i686-linux/usr/lib/python2.6/distutils/sysconfig.py",
 line 22, in <module>
|     PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
| TypeError: expected a character buffer object
| Traceback (most recent call last):
|   File "<string>", line 1, in <module>
|   File 
"/home/sct/my_workspace/poky_xbmc_09Mar2012/build/tmp/sysroots/i686-linux/usr/lib/python2.6/distutils/sysconfig.py",
 line 22, in <module>
|     PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
| TypeError: expected a character buffer object
| Traceback (most recent call last):
|   File "<string>", line 1, in <module>
|   File 
"/home/sct/my_workspace/poky_xbmc_09Mar2012/build/tmp/sysroots/i686-linux/usr/lib/python2.6/distutils/sysconfig.py",
 line 22, in <module>
|     PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
| TypeError: expected a character buffer object
| -L -lpython2.6
| checking for Python site-packages path... Traceback (most recent call last):
|   File "<string>", line 1, in <module>
|   File 
"/home/sct/my_workspace/poky_xbmc_09Mar2012/build/tmp/sysroots/i686-linux/usr/lib/python2.6/distutils/sysconfig.py",
 line 22, in <module>
|     PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
| TypeError: expected a character buffer object
| 
| checking python extra libraries... Traceback (most recent call last):
|   File "<string>", line 1, in <module>
|   File 
"/home/sct/my_workspace/poky_xbmc_09Mar2012/build/tmp/sysroots/i686-linux/usr/lib/python2.6/distutils/sysconfig.py",
 line 22, in <module>
|     PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
| TypeError: expected a character buffer object
| 
| checking python extra linking flags... Traceback (most recent call last):
|   File "<string>", line 1, in <module>
|   File 
"/home/sct/my_workspace/poky_xbmc_09Mar2012/build/tmp/sysroots/i686-linux/usr/lib/python2.6/distutils/sysconfig.py",
 line 22, in <module>
|     PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
| TypeError: expected a character buffer object
| 
| checking consistency of all components of python development environment... no
| configure: error: in `/home/sct/my_workspace/poky_xbmc_09Mar2012/build/tmp/work/atom-poky-linux/xbmc-11.1-r0/xbmc':
| configure: error:
|   Could not link test program to Python. Maybe the main Python library has been
|   installed in some non-standard library path. If so, pass it to configure,
|   via the LDFLAGS environment variable.
|   Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"
|   ============================================================================
|    ERROR!
|    You probably have to install the development version of the Python package
|    for your distribution.  The exact name of this package varies among them.
|   ============================================================================
| 
| See `config.log' for more details.
| FATAL: oe_runconf failed
| ERROR: Function 'do_configure' failed (see 
/home/sct/my_workspace/poky_xbmc_09Mar2012/build/tmp/work/atom-poky-linux/xbmc-11.1-r0/temp/log.do_configure.12512
 for further information)
NOTE: package xbmc-11.1-r0: task do_configure: Failed
ERROR: Task 705 
(/home/sct/my_workspace/poky_xbmc_09Mar2012/meta-sct/recipes-sct/xbmc/xbmc_11.1.bb,
 do_configure) failed with exit code '1'

Please help me to resolve this problem.
Thanks in advance 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20120821/100df277/attachment.html>


More information about the poky mailing list