Menu

#22 Does not compile with kernel 2.6.30

open
nobody
None
5
2009-08-07
2009-08-07
Anonymous
No

Hi, I'm trying to use smartcam with an up-to-date Debian SID distribution, but the kernel module doesn't compile. Here is what I've got:

ungoliant@ancalagon:~/smartcam-1.4.0/driver_src$ make -C /lib/modules/`uname -r`/build M=`pwd`
make: Entrando no diretório `/usr/src/linux-headers-2.6.30-1-amd64'
LD /home/ungoliant/smartcam-1.4.0/driver_src/built-in.o
CC [M] /home/ungoliant/smartcam-1.4.0/driver_src/smartcam.o
/home/ungoliant/smartcam-1.4.0/driver_src/smartcam.c:563: warning: initialization from incompatible pointer type
/home/ungoliant/smartcam-1.4.0/driver_src/smartcam.c:599: error: ‘VID_TYPE_CAPTURE’ undeclared here (not in a function)
/home/ungoliant/smartcam-1.4.0/driver_src/smartcam.c:601: warning: initialization from incompatible pointer type
make[3]: ** [/home/ungoliant/smartcam-1.4.0/driver_src/smartcam.o] Erro 1
make[2]: ** [_module_/home/ungoliant/smartcam-1.4.0/driver_src] Erro 2
make[1]: ** [sub-make] Erro 2
make: ** [all] Erro 2
make: Saindo do diretório `/usr/src/linux-headers-2.6.30-1-amd64'

Discussion

  • Nobody/Anonymous

    try to uncomment line 599, //.vfl_type = VID_TYPE_CAPTURE,

     
  • Anonymous

    Anonymous - 2009-11-13

    Backwards :) I had it uncommented and recived this error. When i commented, the driver compiled :)

     
  • Anonymous

    Anonymous - 2009-11-13

    Compiles but doesn't work :(

     
  • johnlu

    johnlu - 2010-02-21

    I uncomment this line too, but I'm not able to use /dev/video0 in Skype nor Cheese...

    I'm using 2.6.31 kernel.

     

Log in to post a comment.