【问题标题】:Error while bitbake to create a ROS package for beaglebonebitbake 为 beaglebone 创建 ROS 包时出错
【发布时间】:2015-09-15 13:07:33
【问题描述】:

我正在尝试使用 bitbake 将 ROS 教程的 hello world 程序编译为 beaglebone black。我使用的是 Ubuntu PC,并按照vmayoral github link 中提供的用户手册中的说明设置了工作区 我修改了 /build/conf 文件夹中的 local.conf 文件,内容如下所示

DL_DIR = "${OEBASE}/sources"
BBFILES = "${OEBASE}/openembedded/recipes/*/*.bb" 
ASSUME_PROVIDED += "help2man-native"
PREFERRED_PROVIDERS = "virtual/qte:qte virtual/libqpe:libqpe-opie"
PREFERRED_PROVIDERS += " virtual/libsdl:libsdl-x11"
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial"
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc-intermediate:gcc-cross-intermediate"
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}gcc:gcc-cross"
PREFERRED_PROVIDERS += " virtual/${TARGET_PREFIX}g++:gcc-cross"
MACHINE = "beaglebone"
DISTRO = "angstrom-2008.1"
IMAGE_FSTYPES = "jffs2 tar"
BBINCLUDELOGS = "yes"

bitbake 配方如下

DESCRIPTION = "Beginner_tutorials, talker/listener ROS package"
SECTION = "devel"
LICENSE = "MIT"
LIC_FILES_CHKSUM =     "file://package.xml;;beginline=16;endline=16;md5=05c8b019cf5b0834bc5e547a1 4f26ca3"
DEPENDS = "roscpp catkin rospy std-msgs"
RDEPENDS = "roscpp rospy std-msgs"
SRC_URI = "git://github.com/vmayoral/beginner_tutorials.git"
SRCREV = "${AUTOREV}"
PV = "1.0.0+gitr${SRCPV}"
S = "${WORKDIR}/git"
inherit catkin

当我从 oe/build 文件夹运行 bitbake test.bb 时,出现以下错误

ERROR: Traceback (most recent call last):File /home/srijit/oe/bitbake/lib/bb/cookerdata.py", line 175 in wrapped return func(fn, *args)File "/home/srijit/oe/bitbake/lib/bb/cookerdata.py", line 185, in parse_config_filereturn bb.parse.handle(fn, data, include) File "/home/srijit/oe/bitbake/lib/bb/parse/__init__.py", line 107, in handle return h['handle'](fn, data, include)File "/home/srijit/oe/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 145, in handle feeder(lineno, s, abs_fn, statements) File  "/home/srijit/oe/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 182, in feederraise ParseError("unparsed line: '%s'" % s, fn, lineno);ParseError: ParseError at home/srijit/oe/openembedded/conf/bitbake.conf:377: unparsed line: 'IMAGE_EXTRA_SPACE = 10240' ERROR: Unable to parse conf/bitbake.conf: ParseError at /home/srijit/oe/openembedded/conf/bitbake.conf:377: unparsed line: 'IMAGE_EXTRA_SPACE = 10240'

我不知道该怎么办

提前感谢您的帮助

【问题讨论】:

    标签: ros bitbake


    【解决方案1】:

    当我在 google 上进行更多搜索时。我发现 here 我们不能使用最新的 bitbake 和 openembedded-classic。所以尝试使用 bitbake 1.10 并且这个错误消失了。但我现在有一个新错误。这是

    Unknown Event: <bb.event.NoProvider instance at 0x7f05e40ee248>
    ERROR: Nothing PROVIDES 'mobile-unit.bb'
    Command execution failed: Traceback (most recent call last):
    File "/home/srijit/oe/bitbake/lib/bb/command.py", line 88, in     runAsyncCommand commandmethod(self.cmds_async, self, options)
    File "/home/srijit/oe/bitbake/lib/bb/command.py", line 174, in buildTargets command.cooker.buildTargets(pkgs_to_build, task)
    File "/home/srijit/oe/bitbake/lib/bb/cooker.py", line 782, in buildTargets
    taskdata.add_provider(localdata, self.status, k)
    File "/home/srijit/oe/bitbake/lib/bb/taskdata.py", line 354, in add_provider
    self.add_provider_internal(cfgData, dataCache, item)
    File "/home/srijit/oe/bitbake/lib/bb/taskdata.py", line 383, in add_provider_internal
    raise bb.providers.NoProvider(item)
    NoProvider: mobile-unit.bb
    

    【讨论】:

    • 如果您有新错误(即问题未解决),请不要将其发布为答案,最好编辑您的问题。
    • 避免在新作品中使用 openembedded-classic,除非你真的必须这样做。最近几年的所有开发工作都集中在 openembedded-core 和 meta-openembedded。
    【解决方案2】:

    最后我解决了这个问题..认为这对其他人会有所帮助。我认为主要问题是我在理解 ROS meta-ros 层及其工作方式以及在 BBB 中安装 ROS 的总体(错误)方向方面的不成熟。我试图为 BBB 附带的 Angstrom 发行版编译 beagle-ros。这就是问题所在。 实际上,我在我的 Ubuntu PC 中下载了最新的 Angstrom 分发源,并按照here 的描述为 BBB 编译。这里和那里的一些调整

    然后我们必须将该 Angstrom 发行版刷入 SD 卡并从中启动 BBB。

    然后您按照此处的说明使用与 herehere 讨论的为 Angstrom 编译的相同 bitbake 设置编译 beagle-ros 层和 ros 包

    现在将编译好的 ipk 文件复制到 BBB 并使用 opkg 安装它,现在您可以在 BBB 上运行它们

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-06-14
      • 1970-01-01
      • 2018-04-03
      • 2021-11-18
      • 2022-01-11
      • 1970-01-01
      • 2018-11-11
      • 1970-01-01
      相关资源
      最近更新 更多