当前位置: 技术问答>linux和unix
声卡驱动问题
来源: 互联网 发布时间:2015-11-19
本文导语: 我在编译alsa声卡驱动的时候, 总是说modversions.h没找到 是怎么回事啊? 错误代码: make[1]: Entering directory `/root/project/Audio/alsa-driver-1.0.4/acore' gcc -D__KERNEL__ -DMODULE=1 -I/root/project/Audio/alsa-driver-1.0.4/include -I/lib/modules/2.4....
我在编译alsa声卡驱动的时候,
总是说modversions.h没找到
是怎么回事啊?
错误代码:
make[1]: Entering directory `/root/project/Audio/alsa-driver-1.0.4/acore'
gcc -D__KERNEL__ -DMODULE=1 -I/root/project/Audio/alsa-driver-1.0.4/include -I/lib/modules/2.4.20-8/build/include -O2 -mpreferred-stack-boundary=2 -march=i686 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix include -DEXPORT_SYMTAB -c hwdep.c
In file included from /root/project/Audio/alsa-driver-1.0.4/include/adriver.h:51,
from /root/project/Audio/alsa-driver-1.0.4/include/sound/driver.h:42,
from hwdep.c:22:
/lib/modules/2.4.20-8/build/include/linux/module.h:21:34: linux/modversions.h: ûÓÐÄǸöÎļþ»òĿ¼
In file included from hwdep.c:27:
/root/project/Audio/alsa-driver-1.0.4/include/sound/core.h:358:1: warning: multi-line comment
/root/project/Audio/alsa-driver-1.0.4/include/sound/core.h:377:1: warning: multi-line comment
make[1]: *** [hwdep.o] Error 1
make[1]: Leaving directory `/root/project/Audio/alsa-driver-1.0.4/acore'
make: *** [compile] Error 1
上面乱码是"没有这个文件或目录"
总是说modversions.h没找到
是怎么回事啊?
错误代码:
make[1]: Entering directory `/root/project/Audio/alsa-driver-1.0.4/acore'
gcc -D__KERNEL__ -DMODULE=1 -I/root/project/Audio/alsa-driver-1.0.4/include -I/lib/modules/2.4.20-8/build/include -O2 -mpreferred-stack-boundary=2 -march=i686 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix include -DEXPORT_SYMTAB -c hwdep.c
In file included from /root/project/Audio/alsa-driver-1.0.4/include/adriver.h:51,
from /root/project/Audio/alsa-driver-1.0.4/include/sound/driver.h:42,
from hwdep.c:22:
/lib/modules/2.4.20-8/build/include/linux/module.h:21:34: linux/modversions.h: ûÓÐÄǸöÎļþ»òĿ¼
In file included from hwdep.c:27:
/root/project/Audio/alsa-driver-1.0.4/include/sound/core.h:358:1: warning: multi-line comment
/root/project/Audio/alsa-driver-1.0.4/include/sound/core.h:377:1: warning: multi-line comment
make[1]: *** [hwdep.o] Error 1
make[1]: Leaving directory `/root/project/Audio/alsa-driver-1.0.4/acore'
make: *** [compile] Error 1
上面乱码是"没有这个文件或目录"
|
你find一下看你的系统有没有modversions.h 这个文件,没有的话就把它从.c文件中注释掉看看。
|
有内核源码吗?