0

我正在尝试使用 bitbake 将 ROS 教程的 hello world 程序编译为 beaglebone black。我使用的是 Ubuntu PC,并按照vmayoral github 链接中提供的用户手册中所述设置了工作区 我已经修改了 /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

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

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'

我不知道该怎么办

我在这里先向您的帮助表示感谢

4

2 回答 2

0

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

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

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

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

于 2015-09-15T05:07:33.493 回答
0

当我在 google 上进行更多搜索时。我在这里发现我们不能将最新的 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
于 2015-09-10T16:34:15.610 回答