flyover 发表于 2003-4-30 19:20:23

编译安装v4l2的错误

make -C /usr/src/linux-2.4.20 SUBDIRS=/usr/src/new/v4l2 modules
make: Entering directory `/usr/src/linux-2.4.20'
make -C /usr/src/new/v4l2 CFLAGS="-D__KERNEL__
-I/usr/src/linux-2.4.20/include -Wall -Wstrict-prototypes -Wno-trigraphs
-O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe
-mpreferred-stack-boundary=2 -march=athlon -DMODULE -DMODVERSIONS
-include /usr/src/linux-2.4.20/include/linux/modversions.h"
MAKING_MODULES=1 modules
make: Entering directory `/usr/src/new/v4l2'
make: *** No rule to make target
`/usr/src/linux-2.4.20/include/linux/modversions.h', needed by
`v4l2-common.o'. Stop.
make: Leaving directory `/usr/src/new/v4l2'
make: *** Error 2
make: Leaving directory `/usr/src/linux-2.4.20'
make: *** Error 2

make -C /usr/src/linux-2.4.20 SUBDIRS=/usr/src/new/v4l2 modules
make: Entering directory `/usr/src/linux-2.4.20'
make -C /usr/src/new/v4l2 CFLAGS="-D__KERNEL__
-I/usr/src/linux-2.4.20/include -Wall -Wstrict-prototypes -Wno-trigraphs
-O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe
-mpreferred-stack-boundary=2 -march=athlon -DMODULE -DMODVERSIONS
-include /usr/src/linux-2.4.20/include/linux/modversions.h"
MAKING_MODULES=1 modules
make: Entering directory `/usr/src/new/v4l2'
make: *** No rule to make target
`/usr/src/linux-2.4.20/include/linux/modversions.h', needed by
`v4l2-common.o'. Stop.
make: Leaving directory `/usr/src/new/v4l2'
make: *** Error 2
make: Leaving directory `/usr/src/linux-2.4.20'
make: *** Error 2

在redhat带的内核源码下编译出错,试过标准2.4.20的内核源码,编译成功过自己编译了2.4.20新内核 ,重新来过就出错了,看提示好像是说modversions.h的问题
不过这个目录并没有这个文件,查找到另外一个地方的也是空文件,拷贝过来后,编译能通过,不过安装的模块就是提示
/lib/modules/2.4.20fly/v4l2/v4l1-compat.o: unresolved symbol schedule
/lib/modules/2.4.20fly/v4l2/v4l1-compat.o: unresolved symbol kmalloc
/lib/modules/2.4.20fly/v4l2/v4l1-compat.o: unresolved symbol kfree
/lib/modules/2.4.20fly/v4l2/v4l1-compat.o: unresolved symbol poll_freewait
/lib/modules/2.4.20fly/v4l2/v4l1-compat.o: unresolved symbol printk
/lib/modules/2.4.20fly/v4l2/v4l1-compat.o: insmod
/lib/modules/2.4.20fly/v4l2/v4
/lib/modules/2.4.20fly/v4l2/v4l1-compat.o: insmod saa7134 failed

对了,内核的补丁我也已经打过了,在2.4.20上编译顺利
谁能帮我看看,谢了

llc 发表于 2003-4-30 19:28:44

内核源码目录下,make dep后,再编译驱动试试

flyover 发表于 2003-5-3 11:17:36

果然实在这个问题,谢了,ok了,呵呵
都是redhat自带内核兼容不好引出来的问题,现在换了就好了
页: [1]
查看完整版本: 编译安装v4l2的错误