gpt4 book ai didi

linux - Debian 8 上的 v4l2 构建错误

转载 作者:太空宇宙 更新时间:2023-11-04 13:04:32 26 4
gpt4 key购买 nike

我正在按照这些步骤安装 video 4 linux,

http://www.linuxtv.org/wiki/index.php/How_to_Obtain,_Build_and_Install_V4L-DVB_Device_Drivers

但是在编译的时候出现如下错误。 Debian 8 虚拟机。

...
CC [M] /media_build/v4l/saa7164-buffer.o
CC [M] /media_build/v4l/saa7164-encoder.o
/media_build/v4l/saa7164-encoder.c: In function 'saa7164_s_frequency':
/media_build/v4l/saa7164-encoder.c:392:2: error: assignment of read-only variable '__val'
port->freq = clamp(f->frequency,
^
/usr/src/linux-headers-3.16.0-4-common/scripts/Makefile.build:262: recipe for target '/media_build/v4l/saa7164-encoder.o' failed
make[5]: *** [/media_build/v4l/saa7164-encoder.o] Error 1
/usr/src/linux-headers-3.16.0-4-common/Makefile:1350: recipe for target '_module_/media_build/v4l' failed
make[4]: *** [_module_/media_build/v4l] Error 2
Makefile:181: recipe for target 'sub-make' failed
make[3]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-3.16.0-4-686-pae'
Makefile:51: recipe for target 'default' failed
make[1]: *** [default] Error 2
make[1]: Leaving directory '/media_build/v4l'
Makefile:26: recipe for target 'all' failed
make: *** [all] Error 2
build failed at ./build line 491.
root@debian:/media_build#

最佳答案

检查一下,这里是 the link ,这是不同内核的编译日志,所以你可以安装成功版本的内核,然后清理编译字典,重新编译。

我认为它可以解决你的问题。

在我的 Ubuntu 14.04.3 x86_64 案例中,我安装了内核 3.18.7,这是解决方案

 $ cd /tmp

$ wget \
kernel.ubuntu.com/~kernel-ppa/mainline/v3.18.7-vivid/linux-headers-3.18.7-031807_3.18.7-031807.201502110759_all.deb \
kernel.ubuntu.com/~kernel-ppa/mainline/v3.18.7-vivid/linux-headers-3.18.7-031807-generic_3.18.7-031807.201502110759_amd64.deb \
kernel.ubuntu.com/~kernel-ppa/mainline/v3.18.7-vivid/linux-image-3.18.7- 031807-generic_3.18.7-031807.201502110759_amd64.deb

$ sudo dpkg -i linux-headers-3.18*.deb linux-image-3.18*.deb

$ sudo reboot

引用链接

关于linux - Debian 8 上的 v4l2 构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33044057/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com