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

2024-10-02 02:28:00 发布

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

我是PVR机顶盒开发的新手。我想为PVR机顶盒进行用户界面定制。所以当我搜索时,我发现了Open PLI。因此,我遵循了他们的基本教程,从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。这会是个问题吗

我的系统配置: 英特尔i7,256 GB SSD,16 GB RAM,Ubuntu 18.04.1 LTS


Tags: coreerrordoheadmetadocumentsfilepatch
1条回答
网友
1楼 · 发布于 2024-10-02 02:28:00

整个问题都是由于您为bitbake本身修复的CRLF vs LF问题造成的。在您签出的层的所有层上运行该工具,或者理想地找出为什么行尾是Windows风格的,并修复它:也许您在移动到Linux之前在Windows中进行了初始克隆?如果是这样,只需在Linux中重新克隆即可

相关问题 更多 >

    热门问题