Can't find asoundlib.h in Ubuntu 10.04

本文档详细记录了作者在Ubuntu 10.04上尝试编译使用asound库的程序时遇到的问题及解决方案。作者发现编译器找不到asoundlib.h文件,通过安装libasound2-dev包成功解决了该问题。
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?

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...


评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值