我想在我的 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
添加到食谱中。它是否正确?如何将这些标题添加到我的图像中?
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