Hi,
I recently installed Ubuntu 10.04 on a new machine. I am now trying to compile a program that uses the -lasound library that I wrote on an Ubuntu 8.04 machine. When I try to compile it I find that the compiler (gcc) can't find include file asoundlib.h. On the 8.04 machine I had installed alsa-base, alsa-utils and alsa-source. The asoundlib.h file was then in /usr/include/alsa. I have the same modules installed on the new 10.04 machine but that directory is not present. Can you tell me what modules I need to install and where my program should look for asoundlib.h?
I recently installed Ubuntu 10.04 on a new machine. I am now trying to compile a program that uses the -lasound library that I wrote on an Ubuntu 8.04 machine. When I try to compile it I find that the compiler (gcc) can't find include file asoundlib.h. On the 8.04 machine I had installed alsa-base, alsa-utils and alsa-source. The asoundlib.h file was then in /usr/include/alsa. I have the same modules installed on the new 10.04 machine but that directory is not present. Can you tell me what modules I need to install and where my program should look for asoundlib.h?
Thanks...!
Found solution to this...
I needed to install package libasound2-dev. Then the /usr/include/alsa directory was installed and it contained file asoundlib.h.My program then compiled correctly.
Problem solved...thanks anyway...
本文档详细记录了作者在Ubuntu 10.04上尝试编译使用asound库的程序时遇到的问题及解决方案。作者发现编译器找不到asoundlib.h文件,通过安装libasound2-dev包成功解决了该问题。
1万+

被折叠的 条评论
为什么被折叠?



