在Yocto bitb中为自动工具设置python distpackages路径

2024-06-07 16:02:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试为一个使用自动工具配置生成文件的项目编写bitbake文件。在

### tizonia.bb
SUMMARY = "Tizonia Library"
DESCRIPTION = "Tizonia"
LICENSE = "LGPL-3.0"
LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=e6a600fd5e1d9cbde2d983680233ad02"

SRC_URI = "git://github.com/tizonia/tizonia-openmax-il.git;protocol=https"
SRCREV = "9004bc40b89eeafb04b28fbb2b772e47dd62fdc9"

S = "${WORKDIR}/git"

DEPENDS = "python-dev python-setuptools mediainfo log4c python-pip python-soundcloud"

inherit autotools ccache pkgconfig python-dir pythonnative

RDEPENDS_${PN} = "libstdc++ dbus boost libgcc mediainfo log4c libspotify python-pip python-soundcloud"

^{pr2}$

在调用do_configure脚本的do_configure步骤中,我得到以下错误消息:

| checking for python2.7... (cached) /home/developer/build-webos-ose/BUILD/sysroots/x86_64-linux/usr/bin/python-native/python
| checking for a version of Python >= '2.1.0'... yes
| checking for a version of Python >= '2.7'... yes
| checking for the distutils Python package... yes
| checking for Python include path... -I/home/developer/build-webos-ose/BUILD/sysroots/raspberrypi3/usr/include/python2.7
| checking for Python library path... -L/home/developer/build-webos-ose/BUILD/sysroots/raspberrypi3/usr/lib -lpython2.7
| checking for Python site-packages path... /home/developer/build-webos-ose/BUILD/sysroots/x86_64-linux/usr/lib/python2.7/site-packages
| checking python extra libraries... -lpthread -ldl  -lpthread -lutil -lm
| checking python extra linking flags... -Xlinker -export-dynamic
| checking consistency of all components of python development environment... yes
| checking python module: soundcloud... no
| configure: error: failed to find required module soundcloud

如您所见,configure正在使用sysroots/x86_64-linux/usr/lib/python2.7/site-packages来查找modules,但是这些模块安装在sysroots/raspberrypi3/usr/lib/python2.7/site-packages中。在

如何在autoconf/configure调用中设置site-packages路径,使其指向正确的路径?在


Tags: ofbuilddeveloperhomeforconfigurepackagesusr
1条回答
网友
1楼 · 发布于 2024-06-07 16:02:27

安装包所需的本地包取决于包,这意味着您需要使用什么样的本地编译包来保存,将自动填充到配方sysroot native/x86_64-linux/usr/lib/python2.7/site-packages上(因为它依赖于它),配置脚本也会自动读取。在

相关问题 更多 >

    热门问题