|
|
我正在驱动我的声卡
在参照国外的一个文章
其中文章中给出一个模板编译driver包
CC=/opt/gcc-2.95.3/bin/gcc ./configure \
--with-moddir=/lib/modules/`uname -r`/kernel/drivers/sound \
--with-kernel=/lib/modules/`uname -r`/build \
--with-sequencer=yes \
--with-oss=yes \
--with-isapnp=no \
--with-cards=all &&
make &&
make install
我把这个文本建立成了一个可执行 文件 执行不了出现这个错误
[root@localhost alsa-driver-0.9.6]# ./ii
checking for gcc... /opt/gcc-3.2.3-42/bin/gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
[root@localhost alsa-driver-0.9.6]#
我现在用的是红帽AS3
其中CC=/opt/gcc-2.95.3/bin/gcc 这一步是不是指定系统内gcc的路径啊?
我发现模板的情况和我现在系统的情况不一样
我现在的GCC是在/usr/bin下的
我就把那一句改了
改为CC=/usr/bin/gcc
可是还是不行
后来我不用这个脚本
而直接去编译的时候make的时候
最后出现这样的错误
/root/ALSA/alsa-driver-0.9.6/include/adriver.h:127: `PDE' previously defined here
make[1]: *** [memalloc.o] Error 1
make[1]: Leaving directory `/root/ALSA/alsa-driver-0.9.6/acore'
make: *** [compile] Error 1
[root@localhost alsa-driver-0.9.6]#
请问大家我该怎么做呢 |
|