Yocto autotools do_compile 失败

Yocto autotools do_compile fails

我在我的自定义图层中创建了一个食谱,如下所示:

SUMMARY = "Mednafen is a portable, utilizing OpenGL and SDL, argument(command-line)-driven multi-system emulator."
HOMEPAGE = "https://mednafen.github.io/"
SRC_URI = "https://mednafen.github.io/releases/files/${PN}-${PV}.tar.xz"
SRC_URI[md5sum] = "7be60dd12edf8d61537f5598957e2884"

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

DEPENDS += " zlib libsndfile1 libsdl2"

LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

S = "${WORKDIR}/${PN}"

inherit autotools-brokensep gettext

但是当我尝试创建一个最小图像时,我收到了这个错误消息:

ERROR: mednafen-1.27.1-r0 do_compile: oe_runmake failed
ERROR: mednafen-1.27.1-r0 do_compile: Execution of '/home/cihan/Desktop/yocto/poky/build/tmp/work/aarch64-poky-linux/mednafen/1.27.1-r0/temp/run.do_compile.14150' failed with exit code 1:
Making all in po
make[1]: Entering directory '/home/cihan/Desktop/yocto/poky/build/tmp/work/aarch64-poky-linux/mednafen/1.27.1-r0/mednafen/po'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/cihan/Desktop/yocto/poky/build/tmp/work/aarch64-poky-linux/mednafen/1.27.1-r0/mednafen/po'
Making all in intl
make[1]: Entering directory '/home/cihan/Desktop/yocto/poky/build/tmp/work/aarch64-poky-linux/mednafen/1.27.1-r0/mednafen/intl'
make[1]: *** No rule to make target 'libgnuintl.@INTL_LIBTOOL_SUFFIX_PREFIX@a', needed by 'all-no-yes'.  Stop.
make[1]: Leaving directory '/home/cihan/Desktop/yocto/poky/build/tmp/work/aarch64-poky-linux/mednafen/1.27.1-r0/mednafen/intl'
Makefile:452: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
WARNING: /home/cihan/Desktop/yocto/poky/build/tmp/work/aarch64-poky-linux/mednafen/1.27.1-r0/temp/run.do_compile.14150:1 exit 1 from 'exit 1'

ERROR: Logfile of failure stored in: /home/cihan/Desktop/yocto/poky/build/tmp/work/aarch64-poky-linux/mednafen/1.27.1-r0/temp/log.do_compile.14150

你能告诉我我做错了什么吗?顺便说一句,我在 dunfell 分支工作,谢谢你的回复。

最好使用现成的方法,而不是自己处理所有依赖项、构建选项、补丁等。 dunfell 分支的 mednafen 配方在 meta-game-emulators 下定义: https://layers.openembedded.org/layerindex/recipe/132957/

您需要克隆此层并将其添加到您的 bblayers,然后再次尝试重建。如果您需要另一个版本的 mednafen(特别是您的问题中提到的 1.27.1),请尝试使用 1.24.3 版的配方作为您自定义配方的基础。这会让你的事情变得更容易。