Page 1 of 2

Salix does not recognize my webcam [Solved]

Posted: 9. Jan 2010, 02:01
by Sybelius
Hi All :)

I am very proud about my Salix just installed, but I have a small problem: after adding the packet "Cheese", the webcam "Creative Live !" does not working. What I can do to set it ?
I am Italian and I know that my English language is not fluent; please, apologize me.

Ciao

Re: Salix does not recognize my webcam

Posted: 9. Jan 2010, 02:18
by thenktor
I'm not familiar with webcams, but I guess it is connected via USB. So to gather a bit more info it may be a good idea to run as root: "lsusb"
This should provide more info, especially the ID may be important to find informations via google.

Thanks and welcome to Salix!

PS: Nobody here will care about your english, very few native english speakres here and I hope they all know that we do our best to deliver a painless english ;)

Re: Salix does not recognize my webcam

Posted: 9. Jan 2010, 09:17
by flux
Here you can find a list with USB-IDs and needed kernel modules for Creative webcams:

http://connect.creativelabs.com/opensou ... Items.aspx

flux.

Re: Salix does not recognize my webcam

Posted: 13. Jan 2010, 02:22
by Sybelius
Hi Thenktor, hi Flux, hi All,

Following your kind advice, I found "gspcav1" and I have been trying to install (after installing from Slackware 13.0 dvd the source kernel), but due my lack of experience something gone wrong and I dont know how to set the issue;
This one is the terminal output:
root[gspcav1-20071224]# ./gspca_build

REMOVE the old module if present
ERROR: Module gspca does not exist in /proc/modules

CLEAN gspca source tree
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
.gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
*.symvers *.err

COMPILE gspca Please Wait ....!!

INSTALL gspca in the kernel binary tree
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx.ko
rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/gspca.ko
install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
install: impossibile fare stat di `gspca.ko': No such file or directory
make: *** [install] Error 1

LOAD gspca in memory
FATAL: Module gspca not found.

PRINT COMPILATION MESSAGES if ERRORS look kgspca.err
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/dominum/src/gspcav1-20071224 CC=cc modules
make[1]: Entering directory `/usr/src/linux-2.6.29.6'
CC [M] /home/dominum/src/gspcav1-20071224/gspca_core.o
/home/dominum/src/gspcav1-20071224/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
In file included from /home/dominum/src/gspcav1-20071224/gspca_core.c:845:
/home/dominum/src/gspcav1-20071224/utils/spcausb.h: In function ‘spca5xxRegRead’:
/home/dominum/src/gspcav1-20071224/utils/spcausb.h:95: error: implicit declaration of function ‘info’
/home/dominum/src/gspcav1-20071224/utils/spcausb.h: In function ‘spca_set_interface’:
/home/dominum/src/gspcav1-20071224/utils/spcausb.h:278: error: implicit declaration of function ‘warn’
In file included from /home/dominum/src/gspcav1-20071224/gspca_core.c:853:
/home/dominum/src/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_init’:
/home/dominum/src/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:122: error: called object ‘info’ is not a function
/home/dominum/src/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:136: error: called object ‘info’ is not a function
/home/dominum/src/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:141: error: called object ‘info’ is not a function
/home/dominum/src/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:148: error: called object ‘info’ is not a function
/home/dominum/src/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:176: error: called object ‘info’ is not a function
/home/dominum/src/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_start’:
/home/dominum/src/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:214: error: called object ‘info’ is not a function
/home/dominum/src/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:230: error: called object ‘info’ is not a function
/home/dominum/src/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_ioctl’:
/home/dominum/src/gspcav1-20071224/gspca_core.c:2463: error: implicit declaration of function ‘video_usercopy’
/home/dominum/src/gspcav1-20071224/gspca_core.c: At top level:
/home/dominum/src/gspcav1-20071224/gspca_core.c:2609: error: unknown field ‘owner’ specified in initializer
/home/dominum/src/gspcav1-20071224/gspca_core.c:2609: warning: initialization from incompatible pointer type
/home/dominum/src/gspcav1-20071224/gspca_core.c:2611: error: unknown field ‘type’ specified in initializer
/home/dominum/src/gspcav1-20071224/gspca_core.c:2615: warning: initialization from incompatible pointer type
/home/dominum/src/gspcav1-20071224/gspca_core.c: In function ‘spca50x_create_sysfs’:
/home/dominum/src/gspcav1-20071224/gspca_core.c:2769: error: implicit declaration of function ‘video_device_create_file’
/home/dominum/src/gspcav1-20071224/gspca_core.c:2780: error: implicit declaration of function ‘video_device_remove_file’
/home/dominum/src/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_probe’:
/home/dominum/src/gspcav1-20071224/gspca_core.c:4301: error: incompatible types in assignment
make[2]: *** [/home/dominum/src/gspcav1-20071224/gspca_core.o] Error 1
make[1]: *** [_module_/home/dominum/src/gspcav1-20071224] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.29.6'
make: *** [default] Error 2
root[gspcav1-20071224]#
An other issue is that before dvd, I have been trying to instal the source kernel from file ".txz" which has left inside the directory /home/dominum/src two directories (install and usr) which I am unable to remove.
After that, even if my beloved Salix seems to work properly, I am afraid to be damaging the operative system.

If possible for you to advice me about what I can do, I will be appreciating.

Ciao from Gaborone - Botswana :)

P. S.
I found your letters just checking the Forum, because I dont have received e-mail notification

Re: Salix does not recognize my webcam

Posted: 13. Jan 2010, 11:57
by thenktor
You did something wrong at installing the kernel source packet. How did you do it?
Either do slapt-get -i kernel-source or installpkg kernel-source-2.9.x.x-x.txz. Don't do something with tar!
To remove the files from your home dir you have to sign in as root and do rm -r /home/dominum/src/install /home/dominum/src/usr

After that you can try to build the gspca package again.

Re: Salix does not recognize my webcam

Posted: 13. Jan 2010, 12:20
by gapan
You didn't provide the output of lsusb as requested.

Re: Salix does not recognize my webcam

Posted: 14. Jan 2010, 04:57
by Sybelius
gapan wrote:You didn't provide the output of lsusb as requested.
Hi Gapan,

Please apologize me for that, I did not understand asking me to provide it; just thinking that output useful for me to single out webcam data, as suggested by Thenktor. In fact with that, following the link http://connect.creativelabs.com/opensou ... Items.aspx suggested by Flux, I found the right driver for my webcam and I have been trying to install it. Anyway, I am providing it here:
root[dominum]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 041e:4036 Creative Technology, Ltd Webcam Live!/Live! Pro
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root[dominum]#
Thank you for your concern, ciao :)

Re: Salix does not recognize my webcam

Posted: 14. Jan 2010, 05:31
by Sybelius
Hi Tenktor,

I am wishing to start saying Thank You for your clear, simple and careful teaching.
Now, I try to sum up the situation:
You did something wrong at installing the kernel source packet. How did you do it?
First attempt: downloading the packet and trying to install it. Result: negative, has been that leaving me the directories wich I have been able to remove following your teaching.
Second attempt: installing from Slackware 13.0 dvd; this one I was thinking right, but you know that comes out wrong :)
Third attempt: following your teaching by "slapt-get -i kernel-source". This one perfectly done, finally !

After that, I have been able to clean everything, with
To remove the files from your home dir you have to sign in as root and do rm -r /home/dominum/src/install /home/dominum/src/usr
After that, I have been removing also the kernel's packet downloaded by me and whatever still inside the directory "Home" (even the "src" directory). After all I have been tryng to install again the webcam's driver from scratch, but something still wrong. Below you can see the terminal's output:
dominum[~]$ su
Password:
root[dominum]# cd /home/dominum/src
root[src]# tar xf gspcav1-20071224.tar.gz
root[src]# cd /home/dominum/src/gspcav1-20071224
root[gspcav1-20071224]# ./gspca_build

REMOVE the old module if present
ERROR: Module gspca does not exist in /proc/modules

CLEAN gspca source tree
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
.gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
*.symvers *.err

COMPILE gspca Please Wait ....!!

INSTALL gspca in the kernel binary tree
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx.ko
rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/gspca.ko
install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
install: impossibile fare stat di `gspca.ko': No such file or directory
make: *** [install] Error 1

LOAD gspca in memory
FATAL: Module gspca not found.

PRINT COMPILATION MESSAGES if ERRORS look kgspca.err
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/dominum/src/gspcav1-20071224 CC=cc modules
make[1]: Entering directory `/usr/src/linux-2.6.29.6'
CC [M] /home/dominum/src/gspcav1-20071224/gspca_core.o
/home/dominum/src/gspcav1-20071224/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
In file included from /home/dominum/src/gspcav1-20071224/gspca_core.c:845:
/home/dominum/src/gspcav1-20071224/utils/spcausb.h: In function ‘spca5xxRegRead’:
/home/dominum/src/gspcav1-20071224/utils/spcausb.h:95: error: implicit declaration of function ‘info’
/home/dominum/src/gspcav1-20071224/utils/spcausb.h: In function ‘spca_set_interface’:
/home/dominum/src/gspcav1-20071224/utils/spcausb.h:278: error: implicit declaration of function ‘warn’
In file included from /home/dominum/src/gspcav1-20071224/gspca_core.c:853:
/home/dominum/src/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_init’:
/home/dominum/src/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:122: error: called object ‘info’ is not a function
/home/dominum/src/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:136: error: called object ‘info’ is not a function
/home/dominum/src/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:141: error: called object ‘info’ is not a function
/home/dominum/src/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:148: error: called object ‘info’ is not a function
/home/dominum/src/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:176: error: called object ‘info’ is not a function
/home/dominum/src/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h: In function ‘sp5xxfw2_start’:
/home/dominum/src/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:214: error: called object ‘info’ is not a function
/home/dominum/src/gspcav1-20071224/Sunplus-jpeg/sp5xxfw2.h:230: error: called object ‘info’ is not a function
/home/dominum/src/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_ioctl’:
/home/dominum/src/gspcav1-20071224/gspca_core.c:2463: error: implicit declaration of function ‘video_usercopy’
/home/dominum/src/gspcav1-20071224/gspca_core.c: At top level:
/home/dominum/src/gspcav1-20071224/gspca_core.c:2609: error: unknown field ‘owner’ specified in initializer
/home/dominum/src/gspcav1-20071224/gspca_core.c:2609: warning: initialization from incompatible pointer type
/home/dominum/src/gspcav1-20071224/gspca_core.c:2611: error: unknown field ‘type’ specified in initializer
/home/dominum/src/gspcav1-20071224/gspca_core.c:2615: warning: initialization from incompatible pointer type
/home/dominum/src/gspcav1-20071224/gspca_core.c: In function ‘spca50x_create_sysfs’:
/home/dominum/src/gspcav1-20071224/gspca_core.c:2769: error: implicit declaration of function ‘video_device_create_file’
/home/dominum/src/gspcav1-20071224/gspca_core.c:2780: error: implicit declaration of function ‘video_device_remove_file’
/home/dominum/src/gspcav1-20071224/gspca_core.c: In function ‘spca5xx_probe’:
/home/dominum/src/gspcav1-20071224/gspca_core.c:4301: error: incompatible types in assignment
make[2]: *** [/home/dominum/src/gspcav1-20071224/gspca_core.o] Error 1
make[1]: *** [_module_/home/dominum/src/gspcav1-20071224] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.29.6'
make: *** [default] Error 2
root[gspcav1-20071224]#
I dont understand what is wrong now :( Ciao

P.S.
This time I have been receiving e-mail notification

Re: Salix does not recognize my webcam

Posted: 14. Jan 2010, 15:51
by Shador

Code: Select all

shador[~]$ grep semaphore.h /var/log/packages/*
...
/var/log/packages/glibc-2.9-x86_64-3:usr/include/semaphore.h
...
Should be in glibc that file.
Check if you have it, if not reinstall glibc
Otherwise they're might be a problem with your environment or gspca's build system.

Re: Salix does not recognize my webcam

Posted: 14. Jan 2010, 16:16
by Sybelius
Shador wrote:

Code: Select all

shador[~]$ grep semaphore.h /var/log/packages/*
...
/var/log/packages/glibc-2.9-x86_64-3:usr/include/semaphore.h
...
Should be in glibc that file.
Check if you have it, if not reinstall glibc
Otherwise they're might be a problem with your environment or gspca's build system.
Hi Shador,

I was not sure about that file because my Salix is 32 bit and if I am not wrong, "x86_64" is for 64 bit; anyway, after cheking /var/log/packages, about glibc I found just:
file:///var/log/packages/glib2-2.18.4-i486-1
and
file:///var/log/packages/glibc-2.9-i486-3

so, I have been reinstalling it with Slapt Get, but these above are the only files I see. Ciao :)

Edit
After that, I have been tryng again the installation and this one is the result :(
dominum[~]$ su
Password:
root[dominum]# cd /home/dominum/src
root[src]# cd /home/dominum/src/gspcav1-20071224
root[gspcav1-20071224]# ./gspca_build

REMOVE the old module if present
ERROR: Module gspca does not exist in /proc/modules

CLEAN gspca source tree
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
.gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
*.symvers *.err

COMPILE gspca Please Wait ....!!

INSTALL gspca in the kernel binary tree
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx.ko
rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/gspca.ko
install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
install: impossibile fare stat di `gspca.ko': No such file or directory
make: *** [install] Error 1

LOAD gspca in memory
FATAL: Module gspca not found.

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