VectorLinux
August 22, 2014, 11:18:00 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Logitech Quick Cam won't open  (Read 2164 times)
unohu62
Member
*
Posts: 28


« on: February 22, 2010, 06:16:56 am »

I have an older Logitech Quick Cam Express and when I try to open it in wxCam I get the following error msg:

Cannot open /dev/video0.
Please check if your system has the correct driver for your webcam, or change the webcam device in settings->preferences.

Any ideas? Perhaps a driver, compiling kernel support.

Thankx,
Robert
Logged
rbistolfi
Packager
Vectorian
****
Posts: 2282


« Reply #1 on: February 22, 2010, 10:04:06 am »

Any ideas? Perhaps a driver, compiling kernel support.


Try compiling this driver:

http://mxhaard.free.fr/spca50x/Download/gspcav1-20071224.tar.gz

The process is very simple, post back here if you find any problems.
Logged

"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!
unohu62
Member
*
Posts: 28


« Reply #2 on: February 22, 2010, 09:14:44 pm »

Hey Rbistolfi, here's my output from kgspca.err

make -C /lib/modules/`uname -r`/build SUBDIRS=/home/xerxes/Downloads/gspcav1-20071224 CC=cc modules
make[1]: Entering directory `/usr/src/linux-2.6.27.29'
  CC [M]  /home/xerxes/Downloads/gspcav1-20071224/gspca_core.o
/home/xerxes/Downloads/gspcav1-20071224/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
/home/xerxes/Downloads/gspcav1-20071224/gspca_core.c: In function 'spca5xx_ioctl':
/home/xerxes/Downloads/gspcav1-20071224/gspca_core.c:2463: error: implicit declaration of function 'video_usercopy'
/home/xerxes/Downloads/gspcav1-20071224/gspca_core.c: At top level:
/home/xerxes/Downloads/gspcav1-20071224/gspca_core.c:2609: error: unknown field 'owner' specified in initializer
/home/xerxes/Downloads/gspcav1-20071224/gspca_core.c:2609: warning: initialization from incompatible pointer type
/home/xerxes/Downloads/gspcav1-20071224/gspca_core.c:2611: error: unknown field 'type' specified in initializer
/home/xerxes/Downloads/gspcav1-20071224/gspca_core.c: In function 'spca50x_create_sysfs':
/home/xerxes/Downloads/gspcav1-20071224/gspca_core.c:2769: error: implicit declaration of function 'video_device_create_file'
/home/xerxes/Downloads/gspcav1-20071224/gspca_core.c:2780: error: implicit declaration of function 'video_device_remove_file'
/home/xerxes/Downloads/gspcav1-20071224/gspca_core.c: In function 'spca5xx_probe':
/home/xerxes/Downloads/gspcav1-20071224/gspca_core.c:4301: error: incompatible types in assignment
make[2]: *** [/home/xerxes/Downloads/gspcav1-20071224/gspca_core.o] Error 1
make[1]: *** [_module_/home/xerxes/Downloads/gspcav1-20071224] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.27.29'
make: *** [default] Error 2
Logged
rbistolfi
Packager
Vectorian
****
Posts: 2282


« Reply #3 on: February 24, 2010, 05:30:17 pm »

Check out if this is helpful: http://forum.vectorlinux.com/index.php?topic=8996.msg60212#msg60212
In that post I explain how to apply a patch needed for the 2.6.27 linux kernel.
Logged

"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!
unohu62
Member
*
Posts: 28


« Reply #4 on: February 24, 2010, 08:38:43 pm »

No luck rbistolfi, had the same output  as edgeofthewoods after applying the patch. modprobe gspca showed nothing to remove, tried running wxcam and back to square one.

Will updating to newer kernel, modules, src and then compiling the gspca driver you suggested make a difference?
Logged
rbistolfi
Packager
Vectorian
****
Posts: 2282


« Reply #5 on: February 25, 2010, 09:26:35 am »

Gspca is supposed to be part of the kernel after 2.6.27. With some luck, it should work out of the box after installing a new kernel. You can find them in http://vectorlinux.osuosl.org/veclinux-6.0/kernels
This is weird, I have the same driver running here, so I did it for sure :/

This is my cam:
Code:
Bus 002 Device 002: ID 046d:08d9 Logitech, Inc. QuickCam IM/Connect

Let us know how it goes.
Logged

"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!
unohu62
Member
*
Posts: 28


« Reply #6 on: February 25, 2010, 12:37:17 pm »

No dice rbistolfi, updated kernel, modules, scr to 2.6.31.6,modprobe gspca and tried to complie the driver. Here is my kgspca.err  My cam works fine in Ubuntu or Fedora, although those distros are too bloated for my liking. I appreciate your help, thankx for taking the time to respond.

make -C /lib/modules/`uname -r`/build SUBDIRS=/home/xerxes/gspca CC=cc modules
make[1]: Entering directory `/usr/src/linux-2.6.31.6'
  CC [M]  /home/xerxes/gspca/gspca_core.o
/home/xerxes/gspca/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
In file included from /home/xerxes/gspca/gspca_core.c:845:
/home/xerxes/gspca/utils/spcausb.h: In function 'spca5xxRegRead':
/home/xerxes/gspca/utils/spcausb.h:95: error: implicit declaration of function 'info'
/home/xerxes/gspca/utils/spcausb.h: In function 'spca_set_interface':
/home/xerxes/gspca/utils/spcausb.h:278: error: implicit declaration of function 'warn'
In file included from /home/xerxes/gspca/gspca_core.c:853:
/home/xerxes/gspca/Sunplus-jpeg/sp5xxfw2.h: In function 'sp5xxfw2_init':
/home/xerxes/gspca/Sunplus-jpeg/sp5xxfw2.h:122: error: called object 'info' is not a function
/home/xerxes/gspca/Sunplus-jpeg/sp5xxfw2.h:136: error: called object 'info' is not a function
/home/xerxes/gspca/Sunplus-jpeg/sp5xxfw2.h:141: error: called object 'info' is not a function
/home/xerxes/gspca/Sunplus-jpeg/sp5xxfw2.h:148: error: called object 'info' is not a function
/home/xerxes/gspca/Sunplus-jpeg/sp5xxfw2.h:176: error: called object 'info' is not a function
/home/xerxes/gspca/Sunplus-jpeg/sp5xxfw2.h: In function 'sp5xxfw2_start':
/home/xerxes/gspca/Sunplus-jpeg/sp5xxfw2.h:214: error: called object 'info' is not a function
/home/xerxes/gspca/Sunplus-jpeg/sp5xxfw2.h:230: error: called object 'info' is not a function
/home/xerxes/gspca/gspca_core.c: In function 'spca5xx_ioctl':
/home/xerxes/gspca/gspca_core.c:2463: error: implicit declaration of function 'video_usercopy'
/home/xerxes/gspca/gspca_core.c: At top level:
/home/xerxes/gspca/gspca_core.c:2609: error: unknown field 'owner' specified in initializer
/home/xerxes/gspca/gspca_core.c:2609: warning: initialization from incompatible pointer type
/home/xerxes/gspca/gspca_core.c:2611: error: unknown field 'type' specified in initializer
/home/xerxes/gspca/gspca_core.c:2615: warning: initialization from incompatible pointer type
/home/xerxes/gspca/gspca_core.c: In function 'spca50x_create_sysfs':
/home/xerxes/gspca/gspca_core.c:2769: error: implicit declaration of function 'video_device_create_file'
/home/xerxes/gspca/gspca_core.c:2780: error: implicit declaration of function 'video_device_remove_file'
/home/xerxes/gspca/gspca_core.c: In function 'spca5xx_probe':
/home/xerxes/gspca/gspca_core.c:4301: error: incompatible types in assignment
make[2]: *** [/home/xerxes/gspca/gspca_core.o] Error 1
make[1]: *** [_module_/home/xerxes/gspca] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.31.6'
make: *** [default] Error 2
Logged
rbistolfi
Packager
Vectorian
****
Posts: 2282


« Reply #7 on: February 25, 2010, 01:44:12 pm »

If you can modprobe the gspca driver without errors, you dont need to compile the driver anymore since it is already included in the kernel.
If modprobe gspca doesnt return an error and pass silently, you should be able to try the cam. The webcam device should be something like /dev/video0, with that you can setup the webcam software.
So in short, check if modprobe returns errors and also ls /dev/video*

Let us know.
Logged

"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!
unohu62
Member
*
Posts: 28


« Reply #8 on: March 08, 2010, 10:04:34 pm »

Hey rbistolfi, I went back to the 2.6.27.12 kernel, applied the patch, compliled the video driver here is my kgspca.err

make -C /lib/modules/`uname -r`/build SUBDIRS=/home/xerxes/Downloads/gspcav1-20071224 CC=cc modules
make[1]: Entering directory `/usr/src/linux-2.6.27.12'
  CC [M]  /home/xerxes/Downloads/gspcav1-20071224/gspca_core.o
  CC [M]  /home/xerxes/Downloads/gspcav1-20071224/decoder/gspcadecoder.o
  LD [M]  /home/xerxes/Downloads/gspcav1-20071224/gspca.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: "video_device_release" [/home/xerxes/Downloads/gspcav1-20071224/gspca.ko] undefined!
WARNING: "video_usercopy" [/home/xerxes/Downloads/gspcav1-20071224/gspca.ko] undefined!
WARNING: "video_register_device" [/home/xerxes/Downloads/gspcav1-20071224/gspca.ko] undefined!
WARNING: "video_device_alloc" [/home/xerxes/Downloads/gspcav1-20071224/gspca.ko] undefined!
WARNING: "video_unregister_device" [/home/xerxes/Downloads/gspcav1-20071224/gspca.ko] undefined!
WARNING: "video_devdata" [/home/xerxes/Downloads/gspcav1-20071224/gspca.ko] undefined!
  CC      /home/xerxes/Downloads/gspcav1-20071224/gspca.mod.o
  LD [M]  /home/xerxes/Downloads/gspcav1-20071224/gspca.ko
make[1]: Leaving directory `/usr/src/linux-2.6.27.12'
Logged
rbistolfi
Packager
Vectorian
****
Posts: 2282


« Reply #9 on: March 09, 2010, 07:46:13 am »

I can't see any error there, just warnings. You should be able to end the install process and modprobe the gspca module.
Logged

"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!
unohu62
Member
*
Posts: 28


« Reply #10 on: March 09, 2010, 08:00:19 am »

Back to my original error msg

Cannot open /dev/video0.
Please check if your system has the correct driver for your webcam, or change the webcam device in settings->preferences.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!