python - 无法在 Ubuntu 18.04.1 LTS 中从 OpenPLI 存储库创建镜像

标签 python ubuntu-18.04 yocto bitbake openembedded

我是 PVR 机顶盒开发的新手。我想为 PVR 机顶盒进行 UI 定制。所以当我搜索时,我发现Open PLI 。所以我遵循了他们的基本教程,这似乎很容易完成 here 。除了最后一步之外,我已经顺利完成了所有步骤。当我第一次在终端中运行最后一个命令 MACHINE=dm8000 make image 进行测试构建时,首先我收到错误 /usr/bin/env 'python3\r' is Not a文件或目录。后来我发现是Linux和Dos之间的CRLFLF换行问题。然后我通过使用 dos2unix 终端工具将整个 bitbake 文件夹及其内容转换为 unix 格式的行结尾来修复它。然后我注意到一些作业正在运行,但我再次遇到了问题,即来自 openembedded 存储库的 licencesChecksum 与下载的不匹配一。所以我去了 openembedded 官方存储库,然后用正确的存储库替换了本地存储库,并且该问题得到了解决。然后现在我开始遇到另一个问题,来自 openembedded-core/meta/recipes-xxxxxx 的工具失败了。我当前面临的问题的日志如下

user@TLSPC-AND71:~/Documents/kautham/openpli40/openpli-oe-core$ MACHINE=dm8000 make image
Building image for dm8000
Loading cache: 100% |######################################################################################################################################| Time: 0:00:00
Loaded 3405 entries from dependency cache.
Parsing recipes: 100% |####################################################################################################################################| Time: 0:00:14
Parsing of 2880 .bb files complete (2588 cached, 292 parsed). 3692 targets, 655 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.34.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "ubuntu-18.04"
TARGET_SYS        = "mipsel-oe-linux"
MACHINE           = "dm8000"
DISTRO            = "openpli"
DISTRO_VERSION    = "homebuild"
TUNE_FEATURES     = "o32 fpu-hard mips32"
TARGET_FPU        = ""
meta-oe           
meta-filesystems  
meta-multimedia   
meta-networking   
meta-python       
meta-webserver    = "HEAD:dfbdd28d206a74bf264c2f7ee0f7b3e5af587796"
meta              = "HEAD:93dd2f9f3edf0584f9e806c629611d645dd72dbf"
meta-openpli      
meta-dream        = "develop:7614d888ee07baff7a3197f00051e0f6bac00782"
meta-vuplus       = "HEAD:4666f262c93c379678585b97d99375690d90e0fa"
meta-xsarius.pli5 = "HEAD:becd6945c9cc29a290b90c1bfa9d8b23c784d686"
meta-qviart       = "HEAD:e29333f48e443c02c171b148b28e214758f5c649"
meta-xp           = "HEAD:42958cf03e531dd9447b2f06fcba934cdf1d85b8"
meta-xtrend       = "HEAD:0bb2fec713b620d36c0734118edd3ec03e675b89"
meta-formuler     = "HEAD:b5cd4f24b62825740dc2d43b2ebd22b07b9ecd05"
meta-gfutures     = "HEAD:10c7ab9a58d738c634613163ebb8b82f4c842573"
meta-xpeedc       = "HEAD:f12908a5573de8a6a06ad9f75081846a590511c4"
meta-zgemma       = "HEAD:b2aaedc62ffbb949485db90d9b0517fd6a0529ad"
meta-edision      = "HEAD:563c99925e465dc601b2096b4c066e8661478cc7"
meta-miraclebox   = "HEAD:99117bcc87c3bcf1885b631af915834e4d31bb9a"
meta-spycat       = "HEAD:a19f11bbcdcad969e9f6f8d2c30df0653427d4cb"
meta-gi           = "HEAD:01fd1e8256f53d40371e65514e13a53ef53e400d"
meta-sab          = "HEAD:92262feb14e4005c8096150daac7313e9cb3d85a"
meta-gigablue     = "HEAD:80a5584686f87feee6260d05f1e3df65b2271c84"
meta-amiko        = "HEAD:b6416ddfc6130265e0b3054d144b96b59fdf7a03"
meta-axasuhd      = "HEAD:f454aabecfdfccf2ec338a30971b20fdd1d58130"
meta-maxytec      = "HEAD:c7cbbeefae15b3d6cdeb419f72f5595e978c83e4"
meta-octagon      = "HEAD:25af00715c91d1f17ca7db9b581060071a44cf9d"
meta-local        = "develop:7614d888ee07baff7a3197f00051e0f6bac00782"
meta-qt5          = "HEAD:c6aa602d0640040b470ee81de39726276ddc0ea3"

Initialising tasks: 100% |#################################################################################################################################| Time: 0:00:06
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: pkgconfig-native-0.29.2+gitAUTOINC+edf8e6f0ea-r0 do_patch: Command Error: 'quilt --quiltrc /home/user/Documents/kautham/openpli40/openpli-oe-core/build/tmp
/work/x86_64-linux/pkgconfig-native/0.29.2+gitAUTOINC+edf8e6f0ea-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:
Applying patch fix-glib-configure-libtool-usage.patch
patching file glib/configure.ac
Hunk #1 FAILED at 1438 (different line endings).
Hunk #2 FAILED at 1503 (different line endings).
Hunk #3 FAILED at 1582 (different line endings).
3 out of 3 hunks FAILED -- rejects in file glib/configure.ac
Patch fix-glib-configure-libtool-usage.patch does not apply (enforce with -f)
ERROR: pkgconfig-native-0.29.2+gitAUTOINC+edf8e6f0ea-r0 do_patch: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/user/Documents/kautham/openpli40/openpli-oe-core/build/tmp/work/x86_64-linux/pkgconfig-native/0.29.2+gitAUTOINC+edf8e6f
0ea-r0/temp/log.do_patch.24110
ERROR: Task (virtual:native:/home/user/Documents/kautham/openpli40/openpli-oe-core/openembedded-core/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_patch) fa
iled with exit code '1'
ERROR: file-native-5.30-r0 do_patch: Command Error: 'quilt --quiltrc /home/user/Documents/kautham/openpli40/openpli-oe-core/build/tmp/work/x86_64-linux/file-nativ
e/5.30-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:
Applying patch debian-742262.patch
(Stripping trailing CRs from patch; use --binary to disable.)
patching file magic/Magdir/commands
Hunk #1 FAILED at 57 (different line endings).
1 out of 1 hunk FAILED -- rejects in file magic/Magdir/commands
Patch debian-742262.patch does not apply (enforce with -f)
ERROR: file-native-5.30-r0 do_patch: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/user/Documents/kautham/openpli40/openpli-oe-core/build/tmp/work/x86_64-linux/file-native/5.30-r0/temp/log.do_patch.2435
7
ERROR: Task (virtual:native:/home/user/Documents/kautham/openpli40/openpli-oe-core/openembedded-core/meta/recipes-devtools/file/file_5.30.bb:do_patch) failed with
 exit code '1'
WARNING: dbus-native-1.10.14-r0 do_fetch: Failed to fetch URL http://dbus.freedesktop.org/releases/dbus/dbus-1.10.14.tar.gz, attempting MIRRORS if available
NOTE: Tasks Summary: Attempted 159 tasks of which 143 didn't need to be rerun and 2 failed.

Summary: 2 tasks failed:
  virtual:native:/home/user/Documents/kautham/openpli40/openpli-oe-core/openembedded-core/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_patch
  virtual:native:/home/user/Documents/kautham/openpli40/openpli-oe-core/openembedded-core/meta/recipes-devtools/file/file_5.30.bb:do_patch
Summary: There was 1 WARNING message shown.
Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
Makefile:127: recipe for target 'image' failed
make: *** [image] Error 1

我不确定问题是什么。但是当我查看教程和论坛时,它是用 Ubuntu 12.02 和 14.04 编写的。但我用的是18.04。这会是一个问题吗?

我的系统配置: Intel-i7、256 GB SSD、16 GB RAM、Ubuntu 18.04.1 LTS。

最佳答案

整个问题是由于您为 bitbake 本身修复的 CRLF 与 LF 问题造成的。在您 checkout 的所有层上运行该工具,或者理想情况下找出为什么行结尾是Windows样式并解决这个问题:也许您在迁移到Linux之前在Windows中进行了初始克隆?如果是这样,只需在 Linux 中重新克隆即可。

关于python - 无法在 Ubuntu 18.04.1 LTS 中从 OpenPLI 存储库创建镜像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59613232/

相关文章:

python - 如何将参数传递给 Tkinter `bind` 回调?

python - 如何向 matplotlib 注释添加附加文本

ubuntu - WSL2 中的 Nvidia Docker : Error Response From Daemon: OCI Runtime Create Failed

mysql - 在 ubuntu 18.04 中安装 mysql 的问题

Yocto:oe_runmake 失败,来自 bitbake 图像的 do_compile 出错

python - Django 导入 LDAP 库

python - Python 2 中的 TicTacToe 项目 : I am trying to avoid using global variables and return variables instead

linux - 如何在 Ubuntu 上授予英特尔实感摄像头的权限

linux - 在 Yocto 构建期间使用 Linux setcap 命令设置功能

shell - 如何在 BitBake 配方中递归安装我的目录和文件