包括未添加到 i.MX6 映像的 ALSA

问题描述 投票:0回答:1

我想在我的 i.MX6 sabre 开发板上开发 ALSA 应用程序,但

<alsa/asoundlib.h>
映像中似乎未安装 ALSA 的标头(即
imx-image-full
)。我检查了食谱中的包装,其中包含 ALSA。我不明白为什么不包含标题。

alsa-lib
alsa-plugins
alsa-state
alsa-tools
alsa-topology-conf
alsa-ucm-conf
alsa-utils
imx-alsa-plugins

我读到我需要将

alsa-dev
添加到食谱中。它是否正确?如何将这些标题添加到我的图像中?

yocto alsa imx6
1个回答
0
投票

alsa-lib
R
提供
alsa-dev

您只需将

alsa-dev
添加到
IMAGE_INSTALL

IMAGE_INSTALL:append = " alsa-dev"

在刷新您的映像之前,请检查您的 rootfs:

bitbake -e <your_image_name> | grep ^WORKDIR=

并且做:

ls <workdir_path_from_previous_command>/rootfs/usr/include/asoundlib.h
© www.soinside.com 2019 - 2024. All rights reserved.