Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > Hardware & Laptops
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hardware & Laptops
Problems with hardware & laptops not being detected or supported during or after install.

 
Thread Tools Display Modes
Old November 1st, 2008   #1
lamer1
First Cup of Ubuntu
 
Join Date: Jun 2005
Beans: 3
gspca driver will not compile in intrepid

Hi everybody,

This question has been asked couple of times on the forums:

http://ubuntuforums.org/showthread.php?t=952718

I was having the same problem and I starting browsing through the code investigating the compile errors one by one. I managed to fix the compile problem and managed to compile and load the gspca driver.
It seems that there are some interface incompatibilities between the gspcav1-20071224 driver and the current kernel.
Just to let you know that I have no knowledge of the v4l and how it works. All I did is just found the incompatible parts of the gspca code and updated them to comply with the new changes from the kernel.
After some time I managed to fix all compile errors and compiled the driver.
Perhaps someone with better gspca+v4l knowledge can make use of this...

In case there is anyone out there that needs to compile the driver I am attaching a patch for gspcav1-20071224 (note the patch contains QuickCam E2500 from http://forums.quickcamteam.net/showthread.php?tid=310).

I own an E2500 cam and it does not seem to work properly. Most of the time the picture is dark (I don't know how to change the settings, anyone knows?). Sometimes I can see the video, but after I change settings using gqcam the picture goes dark again.

Hope this helps,
Attached Files
File Type: gz gspca.patch.gz (1.4 KB, 1746 views)
lamer1 is offline   Reply With Quote
Old November 1st, 2008   #2
durilka
First Cup of Ubuntu
 
Join Date: Oct 2006
Beans: 4
Re: gspca driver will not compile in intrepid

http://v4l2ucp.sourceforge.net/ helps with the image brightness
durilka is offline   Reply With Quote
Old November 1st, 2008   #3
loell
☀ ☀ ☀
 
loell's Avatar
 
Join Date: Oct 2005
Location: Davao, Philippines
Beans: 4,943
Ubuntu 9.10 Karmic Koala
Send a message via Yahoo to loell Send a message via Skype™ to loell
Re: gspca driver will not compile in intrepid

this is a widespread glitch on webcam apps since libv4l migration, i think this can only be address on application to application basis, that if the particular webcam app uses the libv4l api.
__________________
My Package Archive | | twitter.com/loell
loell is offline   Reply With Quote
Old November 14th, 2008   #4
nagolchi
First Cup of Ubuntu
 
Join Date: May 2007
Beans: 11
Re: gspca driver will not compile in intrepid

did you try adding this to the end of your /etc/modprobe.d/options file?

options gspca gamma=1 autoexpo=0

taken from http://www.actionshrimp.com/2008/08/...-ubuntu-skype/

Thanks for that patch!
nagolchi is offline   Reply With Quote
Old November 14th, 2008   #5
lamer1
First Cup of Ubuntu
 
Join Date: Jun 2005
Beans: 3
Re: gspca driver will not compile in intrepid

nagolchi,

Thnx that worked...

I still have to test the CPU load mentioned in the given link.
lamer1 is offline   Reply With Quote
Old November 14th, 2008   #6
actionshrimp
First Cup of Ubuntu
 
Join Date: Sep 2007
Beans: 1
Re: gspca driver will not compile in intrepid

thanks a lot for this patch, can finally get video on skype again. Hopefully they'll include support for this camera soon, but until then at least I can get something working! This patch works on the source in the gspca-source package in the repos too, as well as the gspcav1-20071224 off the website.
actionshrimp is offline   Reply With Quote
Old November 17th, 2008   #7
knedlyk
Spilled the Beans
 
Join Date: Aug 2007
Location: Lviv, Ukraine
Beans: 13
Exclamation Re: gspca driver will not compile in intrepid

Quote:
Originally Posted by nagolchi View Post
did you try adding this to the end of your /etc/modprobe.d/options file?

options gspca gamma=1 autoexpo=0

taken from http://www.actionshrimp.com/2008/08/...-ubuntu-skype/
I don't understand how this option can work under Intrepid???
There is no driver gspca alone, but gspca_main and the corresponding to the camera driver (gspca_spca651 for example). It can be useful under hardy, but not under ubuntu 8.10!
knedlyk is offline   Reply With Quote
Old November 18th, 2008   #8
nagolchi
First Cup of Ubuntu
 
Join Date: May 2007
Beans: 11
Re: gspca driver will not compile in intrepid

this will work if you compile gspca from the source mentioned above instead of using gspca_main included in the kernel in 8.10
nagolchi is offline   Reply With Quote
Old November 18th, 2008   #9
knedlyk
Spilled the Beans
 
Join Date: Aug 2007
Location: Lviv, Ukraine
Beans: 13
Re: gspca driver will not compile in intrepid

Quote:
Originally Posted by nagolchi View Post
this will work if you compile gspca from the source mentioned above instead of using gspca_main included in the kernel in 8.10
Yes, I agree, it can work in this case, but gspcav1-20071224 driver is very old and you have to patch it for the new camera models. Moreover, there is a problem to make the developer version of the driver from linux-dvb work under new ubuntu kernel. You can easily compile it, but it gives errors when you load driver into the memory.
knedlyk is offline   Reply With Quote
Old November 18th, 2008   #10
Jumbalaspi
First Cup of Ubuntu
 
Join Date: Mar 2007
Location: Rome, Italy
Beans: 7
Kubuntu 7.04 Feisty Fawn
Send a message via ICQ to Jumbalaspi
Re: gspca driver will not compile in intrepid

i cannot compile, it gives me some errors:



make -C /lib/modules/`uname -r`/build SUBDIRS=/home/jumbalaya/sources/gspcav1-20071224 CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-21-generic'
CC [M] /home/jumbalaya/sources/gspcav1-20071224/gspca_core.o
/home/jumbalaya/sources/gspcav1-20071224/gspca_core.c:54:29: error: linux/semaphore.h: No such file or directory
In file included from /home/jumbalaya/sources/gspcav1-20071224/gspca_core.c:64:
/home/jumbalaya/sources/gspcav1-20071224/gspca.h:17:30: error: media/v4l2-ioctl.h: No such file or directory
/home/jumbalaya/sources/gspcav1-20071224/gspca_core.c:2615: error: unknown field ‘vfl_type’ specified in initializer
/home/jumbalaya/sources/gspcav1-20071224/gspca_core.c: In function ‘spca50x_create_sysfs’:
/home/jumbalaya/sources/gspcav1-20071224/gspca_core.c:2773: warning: passing argument 1 of ‘device_create_file’ from incompatible pointer type
/home/jumbalaya/sources/gspcav1-20071224/gspca_core.c:2776: warning: passing argument 1 of ‘device_create_file’ from incompatible pointer type
/home/jumbalaya/sources/gspcav1-20071224/gspca_core.c:2779: warning: passing argument 1 of ‘device_create_file’ from incompatible pointer type
/home/jumbalaya/sources/gspcav1-20071224/gspca_core.c:2784: warning: passing argument 1 of ‘device_remove_file’ from incompatible pointer type
/home/jumbalaya/sources/gspcav1-20071224/gspca_core.c:2786: warning: passing argument 1 of ‘device_remove_file’ from incompatible pointer type
/home/jumbalaya/sources/gspcav1-20071224/gspca_core.c:2788: warning: passing argument 1 of ‘device_remove_file’ from incompatible pointer type
/home/jumbalaya/sources/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_probe’:
/home/jumbalaya/sources/gspcav1-20071224/gspca_core.c:4315: error: incompatible types in assignment
make[2]: *** [/home/jumbalaya/sources/gspcav1-20071224/gspca_core.o] Error 1
make[1]: *** [_module_/home/jumbalaya/sources/gspcav1-20071224] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-21-generic'
make: *** [default] Error 2


i'm using kubuntu 8.04, kernel 2.6.24-21-generic, gspcav1-20071224 patched drivers
Jumbalaspi is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:59 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry