Raspberry pi 在Raspberry Pi上编译alsa utils 1.1.0

Raspberry pi 在Raspberry Pi上编译alsa utils 1.1.0,raspberry-pi,alsa,Raspberry Pi,Alsa,我已经编译并安装了alsa lib 1.1.0,并继续编译和安装新的alsa util。配置工作原理: ./configure --disable-bat --disable-xmlto --disable-alsaconf --with-curses=ncursesw 但是,make失败了,我没有找到解决方案: Making all in topology make[1]: Entering directory '/home/pi/apps/alsa_utils/alsa-utils-1.1

我已经编译并安装了alsa lib 1.1.0,并继续编译和安装新的alsa util。配置工作原理:

./configure --disable-bat --disable-xmlto --disable-alsaconf --with-curses=ncursesw
但是,make失败了,我没有找到解决方案:

Making all in topology
make[1]: Entering directory '/home/pi/apps/alsa_utils/alsa-utils-1.1.0/topology'
gcc  -g -O2   -o alsatplg topology.o -lasound -lasound -lm -ldl -lpthread
topology.o: In function `main':
/home/pi/apps/alsa_utils/alsa-utils-1.1.0/topology/topology.c:99: undefined reference to `snd_tplg_new'
/home/pi/apps/alsa_utils/alsa-utils-1.1.0/topology/topology.c:105: undefined reference to `snd_tplg_verbose'
/home/pi/apps/alsa_utils/alsa-utils-1.1.0/topology/topology.c:107: undefined reference to `snd_tplg_build_file'
/home/pi/apps/alsa_utils/alsa-utils-1.1.0/topology/topology.c:114: undefined reference to `snd_tplg_free'
/home/pi/apps/alsa_utils/alsa-utils-1.1.0/topology/topology.c:110: undefined reference to `snd_tplg_free'
collect2: error: ld returned 1 exit status
Makefile:318: recipe for target 'alsatplg' failed
make[1]: *** [alsatplg] Error 1
make[1]: Leaving directory '/home/pi/apps/alsa_utils/alsa-utils-1.1.0/topology'
Makefile:352: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
我知道这个错误意味着存在未定义的引用,但我不明白为什么


谢谢。

这听起来好像编译器没有拾取新安装的alsa库头。
/usr/include/alsa/topology.h
是否存在?新的alsa库安装在那里了吗?嗨,CL,是的,/usr/inclde/alsa/topology.h确实存在,并且引用的定义确实存在。哦,这实际上是一个链接器错误。因此,请检查libasound.So的安装位置。@CL。,libasound.so接缝位于/usr/lib:
-rwxr-xr-x 1根根目录3731824 Feb 4 23:27 libasound.so.2.0.0 lrwxrwxrwx 1根目录18 Feb 4 23:27 libasound.so.2->libasound.so.2.0.0 lrwxr-xrwx 1根目录18 Feb 4 23:27 libasound.so->.2.0.0-rwxr-x 1根目录938 Feb 4 23:27 libasound.la wxr-xr-x 2根目录root 4096 Feb 4 23:27 pkgconfigpi@teststream:/usr/lib$pwd/usr/lib