无法从 Ubuntu 18.04.1 LTS 中的 OpenPLI 存储库创建图像

Couldn't create image from OpenPLI repository in Ubuntu 18.04.1 LTS

我是PVR机顶盒开发的新手。我想为 PVR 机顶盒进行 UI 定制。所以当我搜索时,我发现了Open PLI. So i followed their basic tutorial which seemed very easy to accomplish from here。除了最后一步,我已经顺利完成了所有步骤。当我首先 运行 最后一个命令 MACHINE=dm8000 make image 在终端中进行测试构建时,首先我得到了 /usr/bin/env 'python3\r' is Not a file or directory 的错误。然后我发现是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 固态硬盘、16 GB 内存,Ubuntu 18.04.1 LTS。

整个问题是由于您为 bitbake 本身修复的 CRLF 与 LF 问题造成的。 运行 该工具覆盖了您检出的 所有 层,或者理想地弄清楚为什么行结尾是 Windows 样式并修复它:也许您做了在移动到 Linux 之前在 Windows 中进行初始克隆?如果是这样,只需在 Linux.

中重新克隆