Run './configure' script.
If you have ISA Plug & Play soundcard, use --with-isapnp=yes switch.
If you want sequencer support, use --with-sequencer=yes switch.
If you do not want OSS/Free emulation, use --with-oss=no switch.
If you want turn on debug mode use --with-debug=full switch.
If you want debug soundcard detection try --with-debug=detect switch.
If you have kernel source code in another directory than /usr/src/linux,
use --with-kernel=<kernel_directory>
Run the './snddevices' script to create new sound devices in /dev directory.
Skip this step, if you have a kernel with the DEVFS support.(执行./snddevices脚本以在/dev目录下创建新的声卡设备。
如果你的内核支持DEVFS(什么东东?我不知道。),可以跳过这一步。)
版主Dalin请进来!
我很菜,版主请见脸谅!
我给出我的运行过程:
************************************************
[root@localhost root]# ./configure
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /root
checking cross compile...
checking for directory with kernel source... /lib/modules/2.4.18-14/build
checking for kernel version... The file /lib/modules/2.4.18-14/build/include/linux/version.h does not exist.
Please, install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).
[root@localhost root]#
以上为第一步
***************************************************
[root@localhost root]# make install
make dep
make[1]: Entering directory `/root'
make[2]: Entering directory `/root/acore'
Makefile:4: ../Makefile.conf: No such file or directory
Makefile:11: /alsa-kernel/core/Makefile: No such file or directory
make[2]: *** No rule to make target `/alsa-kernel/core/Makefile'. Stop.
make[2]: Leaving directory `/root/acore'
make[1]: *** [dep] Error 1
make[1]: Leaving directory `/root'
make: *** [include/sndversions.h] Error 2
[root@localhost root]#
*****************************************************************
然后第三步
************************************************
[root@localhost root]# ./snddevices
Creating /dev/mixer?... done
Creating /dev/sequencer... done
Creating /dev/midi?... done
Creating /dev/dsp?... done
Creating /dev/audio?... done
Creating /dev/sndstat... done
Creating /dev/music... done
Creating /dev/dmmidi?... done
Creating /dev/dmfm?... done
Creating /dev/amixer?... done
Creating /dev/adsp?... done
Creating /dev/amidi?... done
Creating /dev/admmidi?... done
create symbolic link `/dev/mixer' to `/dev/mixer0'
create symbolic link `/dev/midi' to `/dev/midi0'
create symbolic link `/dev/dsp' to `/dev/dsp0'
create symbolic link `/dev/audio' to `/dev/audio0'
create symbolic link `/dev/sequencer2' to `/dev/music'
create symbolic link `/dev/adsp' to `/dev/adsp0'
create symbolic link `/dev/amidi' to `/dev/amidi0'
ALSA dynamic sound device filesystem
create symbolic link `/dev/snd' to `/proc/asound/dev'
ALSA loader devices
Creating /dev/aload?... done
Creating /dev/aloadSEQ... done
[root@localhost root]#
******************************************************
然后第四步 编辑文件 或者用公社的/modules.conf
也成功了
*******************************************
然后第五步
modprobe snd-via82xx
modprobe: Can't locate module snd-via82xx
***********************************************************
请版主认真指教!谢谢!
checking for kernel version... The file /lib/modules/2.4.18-14/build/include/linux/version.h does not exist.
Please, install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).
我装好驱动后运行modprobe出现如下的错误信息:
[root@Ham alsa-utils-0.9.0rc5]# modprobe snd-via82xx
/lib/modules/2.4.18-14/misc/snd.o: kernel-module version mismatch
/lib/modules/2.4.18-14/misc/snd.o was compiled for kernel version 2.4.18-14custom
while this kernel is version 2.4.18-14.
/lib/modules/2.4.18-14/misc/snd.o: insmod /lib/modules/2.4.18-14/misc/snd.o failed
/lib/modules/2.4.18-14/misc/snd.o: kernel-module version mismatch
/lib/modules/2.4.18-14/misc/snd.o was compiled for kernel version 2.4.18-14custom
while this kernel is version 2.4.18-14.
/lib/modules/2.4.18-14/misc/snd.o: insmod /lib/modules/2.4.18-14/misc/snd.o failed
请问是怎么回事?