LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-19-2007, 06:19 AM   #1
fredzz2
LQ Newbie
 
Registered: Jun 2007
Posts: 6

Rep: Reputation: 0
Ov518 drivers error


I moved to linux some weeks ago and now i'm trying to resolve the only problem i have. Installing drivers for webcam. I already searched what chip it has and i know it's supported but when i try to compile i get this errors. I don't know where the problem is. Could you help me on this?
Im running ubuntu 7.04. Thanks in advance



Code:
fredzz@fredzz-desktop:/tmp/ov511-2.32$ make
    Building OVCam drivers for 2.6 kernel.
make -C /lib/modules/2.6.20-15-generic/build SUBDIRS=/tmp/ov511-2.32 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'
  CC [M]  /tmp/ov511-2.32/ov511_core.o
/tmp/ov511-2.32/ov511_core.c: In function ‘ov51x_init_isoc’:
/tmp/ov511-2.32/ov511_core.c:3566: warning: assignment from incompatible pointer type
/tmp/ov511-2.32/ov511_core.c: In function ‘ov51x_open’:
/tmp/ov511-2.32/ov511_core.c:3818: warning: implicit declaration of function ‘video_devdata’
/tmp/ov511-2.32/ov511_core.c:3818: warning: initialization makes pointer from integer without a cast
/tmp/ov511-2.32/ov511_core.c:3819: warning: implicit declaration of function ‘video_get_drvdata’
/tmp/ov511-2.32/ov511_core.c:3819: warning: initialization makes pointer from integer without a cast
/tmp/ov511-2.32/ov511_core.c: In function ‘ov51x_release’:
/tmp/ov511-2.32/ov511_core.c:3885: warning: initialization makes pointer from integer without a cast
/tmp/ov511-2.32/ov511_core.c: In function ‘ov51x_do_ioctl’:
/tmp/ov511-2.32/ov511_core.c:3924: warning: initialization makes pointer from integer without a cast
/tmp/ov511-2.32/ov511_core.c:3944: warning: implicit declaration of function ‘v4l_print_ioctl’
/tmp/ov511-2.32/ov511_core.c:4303: error: dereferencing pointer to incomplete type
/tmp/ov511-2.32/ov511_core.c: In function ‘ov51x_ioctl’:
/tmp/ov511-2.32/ov511_core.c:4743: warning: initialization makes pointer from integer without a cast
/tmp/ov511-2.32/ov511_core.c:4749: warning: implicit declaration of function ‘video_usercopy’
/tmp/ov511-2.32/ov511_core.c: In function ‘ov51x_read’:
/tmp/ov511-2.32/ov511_core.c:4765: warning: initialization makes pointer from integer without a cast
/tmp/ov511-2.32/ov511_core.c: In function ‘ov51x_mmap’:
/tmp/ov511-2.32/ov511_core.c:4920: warning: initialization makes pointer from integer without a cast
/tmp/ov511-2.32/ov511_core.c: At top level:
/tmp/ov511-2.32/ov511_core.c:4974: error: ‘v4l_compat_ioctl32’ undeclared here (not in a function)
/tmp/ov511-2.32/ov511_core.c:4979: error: variable ‘vdev_template’ has initializer but incomplete type
/tmp/ov511-2.32/ov511_core.c:4980: error: unknown field ‘owner’ specified in initializer
/tmp/ov511-2.32/ov511_core.c:4980: warning: excess elements in struct initializer
/tmp/ov511-2.32/ov511_core.c:4980: warning: (near initialization for ‘vdev_template’)
/tmp/ov511-2.32/ov511_core.c:4981: error: unknown field ‘name’ specified in initializer
/tmp/ov511-2.32/ov511_core.c:4981: warning: excess elements in struct initializer
/tmp/ov511-2.32/ov511_core.c:4981: warning: (near initialization for ‘vdev_template’)
/tmp/ov511-2.32/ov511_core.c:4982: error: unknown field ‘type’ specified in initializer
/tmp/ov511-2.32/ov511_core.c:4982: warning: excess elements in struct initializer
/tmp/ov511-2.32/ov511_core.c:4982: warning: (near initialization for ‘vdev_template’)
/tmp/ov511-2.32/ov511_core.c:4983: error: unknown field ‘hardware’ specified in initializer
/tmp/ov511-2.32/ov511_core.c:4983: warning: excess elements in struct initializer
/tmp/ov511-2.32/ov511_core.c:4983: warning: (near initialization for ‘vdev_template’)
/tmp/ov511-2.32/ov511_core.c:4984: error: unknown field ‘fops’ specified in initializer
/tmp/ov511-2.32/ov511_core.c:4984: warning: excess elements in struct initializer
/tmp/ov511-2.32/ov511_core.c:4984: warning: (near initialization for ‘vdev_template’)
/tmp/ov511-2.32/ov511_core.c:4986: error: unknown field ‘release’ specified in initializer
/tmp/ov511-2.32/ov511_core.c:4986: error: ‘video_device_release’ undeclared here (not in a function)
/tmp/ov511-2.32/ov511_core.c:4986: warning: excess elements in struct initializer
/tmp/ov511-2.32/ov511_core.c:4986: warning: (near initialization for ‘vdev_template’)
/tmp/ov511-2.32/ov511_core.c:4988: error: unknown field ‘minor’ specified in initializer
/tmp/ov511-2.32/ov511_core.c:4988: warning: excess elements in struct initializer
/tmp/ov511-2.32/ov511_core.c:4988: warning: (near initialization for ‘vdev_template’)
/tmp/ov511-2.32/ov511_core.c: In function ‘cd_to_ov’:
/tmp/ov511-2.32/ov511_core.c:5543: warning: implicit declaration of function ‘to_video_device’
/tmp/ov511-2.32/ov511_core.c:5543: warning: initialization makes pointer from integer without a cast
/tmp/ov511-2.32/ov511_core.c:5544: warning: return makes pointer from integer without a cast
/tmp/ov511-2.32/ov511_core.c: In function ‘show_sensor’:
/tmp/ov511-2.32/ov511_core.c:5571: error: ‘senlist’ undeclared (first use in this function)
/tmp/ov511-2.32/ov511_core.c:5571: error: (Each undeclared identifier is reported only once
/tmp/ov511-2.32/ov511_core.c:5571: error: for each function it appears in.)
/tmp/ov511-2.32/ov511_core.c: In function ‘ov_create_sysfs’:
/tmp/ov511-2.32/ov511_core.c:5637: warning: implicit declaration of function ‘video_device_create_file’
/tmp/ov511-2.32/ov511_core.c: In function ‘ov51x_probe’:
/tmp/ov511-2.32/ov511_core.c:5815: warning: implicit declaration of function ‘video_device_alloc’
/tmp/ov511-2.32/ov511_core.c:5815: warning: assignment makes pointer from integer without a cast
/tmp/ov511-2.32/ov511_core.c:5819: error: dereferencing pointer to incomplete type
/tmp/ov511-2.32/ov511_core.c:5819: error: dereferencing pointer to incomplete type
/tmp/ov511-2.32/ov511_core.c:5819: error: dereferencing pointer to incomplete type
/tmp/ov511-2.32/ov511_core.c:5821: error: dereferencing pointer to incomplete type
/tmp/ov511-2.32/ov511_core.c:5823: warning: implicit declaration of function ‘video_set_drvdata’
/tmp/ov511-2.32/ov511_core.c:5829: warning: implicit declaration of function ‘video_register_device’
/tmp/ov511-2.32/ov511_core.c:5829: error: ‘VFL_TYPE_GRABBER’ undeclared (first use in this function)
/tmp/ov511-2.32/ov511_core.c:5835: error: dereferencing pointer to incomplete type
/tmp/ov511-2.32/ov511_core.c:5850: error: dereferencing pointer to incomplete type
/tmp/ov511-2.32/ov511_core.c:5856: error: dereferencing pointer to incomplete type
/tmp/ov511-2.32/ov511_core.c:5860: error: dereferencing pointer to incomplete type
/tmp/ov511-2.32/ov511_core.c:5882: error: dereferencing pointer to incomplete type
/tmp/ov511-2.32/ov511_core.c:5883: warning: implicit declaration of function ‘video_device_release’
/tmp/ov511-2.32/ov511_core.c:5885: warning: implicit declaration of function ‘video_unregister_device’
make[2]: *** [/tmp/ov511-2.32/ov511_core.o] Error 1
make[1]: *** [_module_/tmp/ov511-2.32] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic'
make: *** [default] Error 2
 
Old 06-19-2007, 08:08 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Welcome to LQ, fredzz2!

You do not have to torture yourself with this compilation. Drivers for your camera are included in the Linux kernel. I do not know if Ubuntu comes with this module (=kernel driver), you may try to load it with modprobe. If this does not work you need to enable it and rebuild your kernel. I insist this is much easier than finding correct driver for your kernel and building it the way you do.
 
Old 06-23-2007, 06:17 AM   #3
fredzz2
LQ Newbie
 
Registered: Jun 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you Emerson.
That's right. The drivers come included. I load them with modprobe ov511. But after loading them. There is no /dev/video# created. In video0 i have a tuner card. Webcam should go to /dev/video1. But it does not get created when i load ov511 drivers.
So i created it as i read somewhere with mknod /dev/video1 c 81 0 and then "chmod 666 /dev/video1 " , But the result of this is /dev/video1 beeing also with tuner card. So now i have 2 identic devices: video0 e video1. Both with the tuner card. But no webcam.

I don't know what's the problem, because when i load the ov51x-jpeg that are hacked drivers with jpeg suport, it works perfectly in xawtv and soem more programs. But not for what i want to. Because aMSN doesn't support yet JPEG webcams.

That's why I was trying to use default drivers but it doesn't work.
Is there anything i could do?

Thanks in advance and for your reply.

Fred

Last edited by fredzz2; 06-23-2007 at 06:19 AM.
 
Old 06-23-2007, 11:53 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
You need to create new nodes with correct major and minor numbers. Major number refers to the driver, minor to the device. As usual, Google helps, here's one article I found:

http://www.linuxfromscratch.org/lfs/...er07/udev.html

Good luck.
 
  


Reply

Tags
drivers, linux, webcam



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NVIDIA Drivers error Skeith2005 Linux - Software 4 06-25-2006 01:08 AM
Drivers OV511/OV518 Instalation Problems, Make doesn't work sitmex Linux - Newbie 6 05-15-2006 12:23 PM
OV518+ camera not working under Mandrake 9.2 backne Linux - Hardware 0 11-04-2004 08:04 AM
OV518+ camera not working under Mandrake 9.2 backne Mandriva 0 11-04-2004 07:39 AM
ERROR running make when installing Nvidia drivers (syntax error) randyriver10 Linux - Software 5 02-21-2004 04:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration