我想编译一个c代码并使用yocto进行安装。它使用do_compile成功编译。错误:无法派生fakeroot工作人员运行/PATH_TO_THIS/example_0.1.bb:do_install:[Errno 2]没有这样的文件或目录
我试图用do_install
来安装,它给出了波纹管错误。
ERROR: Failed to spawn fakeroot worker to run /PATH_TO_THIS/example_0.1.bb:do_install: [Errno 2] No such file or directory
请在下面找到
SUMMARY = "Simple helloworld application"
SECTION = "examples"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR} /MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "file://sample.c"
S = "${WORKDIR}"
do_compile() {
x86_64-linux-gnu-gcc sample.c -o test_example
}
do_install() {
install -d ${D}${bindir}
install -m 0755 test_example ${D}${bindir}
}
你究竟如何运行它?你偶然使用bitbake的-b选项? – bluelightning
Hi bluelightning,是bitbake -b /*path*/example_0.1.bb – anikhan