wangpeng@wangpeng-PC:~/Downloads/alsa-driver-1.0.25$ ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
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 grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
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... /home/wangpeng/Downloads/alsa-driver-1.0.25
checking cross compile...
checking for directory with ALSA kernel sources... /home/wangpeng/Downloads/alsa-driver-1.0.25/alsa-kernel
checking for directory with kernel source... /lib/modules/4.15.0-30deepin-generic/build
checking for directory with kernel build... /lib/modules/4.15.0-30deepin-generic/build
checking for kernel linux/version.h ... no
The file /lib/modules/4.15.0-30deepin-generic/build/include/INCLUDE_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 /lib/modules/4.15.0-30deepin-generic/build).
wangpeng@wangpeng-PC:~/Downloads/alsa-driver-1.0.25$ make
make all-deps
make[1]: Entering directory '/home/wangpeng/Downloads/alsa-driver-1.0.25'
make[1]: Nothing to be done for 'all-deps'.
make[1]: Leaving directory '/home/wangpeng/Downloads/alsa-driver-1.0.25'
Please, run the configure script as first...
wangpeng@wangpeng-PC:~/Downloads/alsa-driver-1.0.25$ sudo make install
[sudo] wangpeng 的密码:
if [ -L /include/sound ]; then \
rm -f /include/sound; \
ln -sf /home/wangpeng/Downloads/alsa-driver-1.0.25/include/sound /include/sound; \
else \
rm -rf /include/sound; \
install -d -m 755 -g root -o root /include/sound; \
for f in include/sound/*.h; do \
install -m 644 -g root -o root $f /include/sound; \
done \
fi
install: 无法获取'include/sound/*.h' 的文件状态(stat): 没有那个文件或目录
Makefile:204: recipe for target 'install-headers' failed
make: *** [install-headers] Error 1
wangpeng@wangpeng-PC:~/Downloads/alsa-driver-1.0.25$ ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
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 grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
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... /home/wangpeng/Downloads/alsa-driver-1.0.25
checking cross compile...
checking for directory with ALSA kernel sources... /home/wangpeng/Downloads/alsa-driver-1.0.25/alsa-kernel
checking for directory with kernel source... /lib/modules/4.15.0-30deepin-generic/build
checking for directory with kernel build... /lib/modules/4.15.0-30deepin-generic/build
checking for kernel linux/version.h ... no
The file /lib/modules/4.15.0-30deepin-generic/build/include/INCLUDE_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 /lib/modules/4.15.0-30deepin-generic/build).
wangpeng@wangpeng-PC:~/Downloads/alsa-driver-1.0.25$ make
make all-deps
make[1]: Entering directory '/home/wangpeng/Downloads/alsa-driver-1.0.25'
make[1]: Nothing to be done for 'all-deps'.
make[1]: Leaving directory '/home/wangpeng/Downloads/alsa-driver-1.0.25'
Please, run the configure script as first...
wangpeng@wangpeng-PC:~/Downloads/alsa-driver-1.0.25$ sudo make install
[sudo] wangpeng 的密码:
if [ -L /include/sound ]; then \
rm -f /include/sound; \
ln -sf /home/wangpeng/Downloads/alsa-driver-1.0.25/include/sound /include/sound; \
else \
rm -rf /include/sound; \
install -d -m 755 -g root -o root /include/sound; \
for f in include/sound/*.h; do \
install -m 644 -g root -o root $f /include/sound; \
done \
fi
install: 无法获取'include/sound/*.h' 的文件状态(stat): 没有那个文件或目录
Makefile:204: recipe for target 'install-headers' failed
make: *** [install-headers] Error 1