ManjaroKDE安装Yocto eSDK

前提

Manjaro版本:5.3.8-3
yocto版本:2.6.1(thud)
使用crops/yocto编译出eSDK后想要安装到ManjaroKDE

安装依赖

OpenEmbedded requires 'python' to be python v2 (>= 2.7.3), not python v3.

当报以上错误时需要执行sudo pacman -S python2安装python2

Traceback (most recent call last):
  File "/home/fefr/poky_sdk/layers/poky/bitbake/lib/bb/cookerdata.py", line 292, in parseBaseConfiguration
    bb.event.fire(bb.event.ConfigParsed(), self.data)
  File "/home/fefr/poky_sdk/layers/poky/bitbake/lib/bb/event.py", line 225, in fire
    fire_class_handlers(event, d)
  File "/home/fefr/poky_sdk/layers/poky/bitbake/lib/bb/event.py", line 134, in fire_class_handlers
    execute_handler(name, handler, event, d)
  File "/home/fefr/poky_sdk/layers/poky/bitbake/lib/bb/event.py", line 106, in execute_handler
    ret = handler(event)
  File "/home/fefr/poky_sdk/layers/poky/meta/classes/base.bbclass", line 228, in base_eventhandler
    setup_hosttools_dir(d.getVar('HOSTTOOLS_DIR'), 'HOSTTOOLS', d)
  File "/home/fefr/poky_sdk/layers/poky/meta/classes/base.bbclass", line 138, in setup_hosttools_dir
    bb.fatal("The following required tools (as specified by HOSTTOOLS) appear to be unavailable in PATH, please install them in order to proceed:\n  %s" % " ".join(notfound))
  File "/home/fefr/poky_sdk/layers/poky/bitbake/lib/bb/__init__.py", line 120, in fatal
    raise BBHandledException()
bb.BBHandledException

当报以上错误时使用使用ls -al /your/path/to/build/tmp/hosttools查看缺少哪些包(缺少的包底色不一样)如 下图中的rpcgen:

rpcgen

我这里缺少chrpath pod2man rpcgen,对应的包分别是chrpath perl rpcsvc-proto
安装完perl后需要使用sudo ln -S /usr/bin/core_perl/pod2man /usr/bin/pod2man进行软链接,使用where pod2man可知pod2man路径是否符合hosttools内的路径。
另外sudo比较特别,需然底色不一样但路径是对的,系统自带不用管。
之后正常安装eSDK即可。

你可能感兴趣的:(ManjaroKDE安装Yocto eSDK)