编译的时候出现找不到头文件的情况,例如:
development/simulator/wrapsim/DevAudio.c:11: fatal error: alsa/asoundlib.h: No such file or directory
可以按如下方法解决:
$ apt-file search
alsa/asoundlib.h
libasound2-dev: /usr/include/alsa/asoundlib.hSo that’s it, asoundlib.h is in the package libasound2-dev.
apt-file需要使用apt-get install apt-file安装一下。
本文介绍了解决编译过程中遇到的找不到特定头文件问题的方法。通过使用apt-file搜索缺失的头文件,找到对应的软件包并安装,从而解决编译错误。
1373

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



