When I try to compile my webcam driver I get an error
gila@cellar:~/Downloads/ov51x-jpeg-1.5.9> make
make -C /lib/modules/2.6.31.5-0.1-desktop/build M=/home/gila/Downloads/ov51x-jpeg-1.5.9 modules
make: *** /lib/modules/2.6.31.5-0.1-desktop/build: No such file or directory. Stop.
make: *** [all] Error 2
I had a look at the directory in question and it does exit, but I think it’s only a link.
/usr/src/linux-2.6.31.5-0.1-obj/i386/desktop
Not sure what to do. Also, when want to install gcc with Yast, it wants to install kernel-headers for version 2.6.31.5-3.4. Is there anywhere I can download the headers for my version?
For different reasons I had to do a re-install and now I get a different error message
the build directory does now exist properly with sub-directories.
make -C /lib/modules/2.6.31.5-0.1-desktop/build M=/home/gila/Downloads/ov51x-jpeg-1.5.9 modules
make[1]: Entering directory /usr/src/linux-2.6.31.5-0.1-obj/i386/desktop' make -C ../../../linux-2.6.31.5-0.1 O=/usr/src/linux-2.6.31.5-0.1-obj/i386/desktop/. modules CC [M] /home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.o /home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c: In function ‘create_proc_ov511_cam’: /home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:677: error: implicit declaration of function ‘info’ /home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:681: error: ‘struct proc_dir_entry’ has no member named ‘owner’ /home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:689: error: ‘struct proc_dir_entry’ has no member named ‘owner’ /home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:700: error: ‘struct proc_dir_entry’ has no member named ‘owner’ /home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:712: error: ‘struct proc_dir_entry’ has no member named ‘owner’ /home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c: In function ‘proc_ov511_create’: /home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:766: error: ‘struct proc_dir_entry’ has no member named ‘owner’ /home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c: In function ‘ov51x_clear_snapshot’: /home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:1691: error: implicit declaration of function ‘warn’ /home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c: In function ‘ov51x_v4l1_ioctl’: /home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:6386: warning: passing argument 1 of ‘video_usercopy’ from incompatible pointer type /usr/src/linux-2.6.31.5-0.1/include/media/v4l2-ioctl.h:298: note: expected ‘struct file *’ but argument is of type ‘struct inode *’ /home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:6386: warning: passing argument 2 of ‘video_usercopy’ makes integer from pointer without a cast /usr/src/linux-2.6.31.5-0.1/include/media/v4l2-ioctl.h:298: note: expected ‘unsigned int’ but argument is of type ‘struct file *’ /home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:6386: warning: passing argument 4 of ‘video_usercopy’ makes pointer from integer without a cast /usr/src/linux-2.6.31.5-0.1/include/media/v4l2-ioctl.h:298: note: expected ‘v4l2_kioctl’ but argument is of type ‘long unsigned int’ /home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:6386: error: too many arguments to function ‘video_usercopy’ /home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c: At top level: /home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.c:6651: warning: initialization from incompatible pointer type make[4]: *** [/home/gila/Downloads/ov51x-jpeg-1.5.9/ov51x-jpeg-core.o] Error 1 make[3]: *** [_module_/home/gila/Downloads/ov51x-jpeg-1.5.9] Error 2 make[2]: *** [sub-make] Error 2 make[1]: *** [all] Error 2 make[1]: Leaving directory /usr/src/linux-2.6.31.5-0.1-obj/i386/desktop’
make: *** [all] Error 2
Looking at the source code of ov51x-jpeg-core.c I note that the line numbers don’t match those of the errors you see. That leaves three possibilities: your source is buggy, re-download and try again. Or you are (still?) missing some required package (you have kernel source and kernel headers, do you?) or your kernel 2.6.31.5 is no more compatible with the driver code.
Hope this is helpful, I can’t try it with 11.2 yet.
Hi voodoo, many thanks for your reply.
I have had no problem either doing it in Suse 11.1.
And I do have kernel-headers and kernel-source installed. I’m a total newbie with compiling. I presume it’s just not compatible with the kernel.
Maybe someone else should try it on 11.2. Have you found any reason why the line numbers of the errors you see don’t match with the line numbers in the download from the link above?
No I haven’t. I wouldn’t even know how to go about checking this. Because my card reader and cd drive broke at the same time, I decided to buy a new webcam as well. For just over £10 a Logitech C200 just plugs in and works. No more compiling. Hurrah!