MEPIS Community Forum

A Linux operating system based on Debian Stable
View unanswered posts | View unsolved topics | View active topics |



Reply to topic  [ 21 posts ]  Go to page 1, 2, 3  Next
Compiling webcam drivers 
Author Message
MEPIS Rules!
MEPIS Rules!
User avatar

Joined: Mon Jul 12, 2010 12:12 pm
Posts: 287
Has thanked: 3 times
Have thanks: 0 time
Post # 237721
Post Compiling webcam drivers
Hey, realitykid here! :) I'm trying to install the drivers for my Logitech USB Quickcam, but when I go to compile it, I get an error.
Here's the terminal:

Quote:
[madkid@mepis1 ~]$ cd /home/madkid/downloads/qc-usb-0.6.6
bash: cd: /home/madkid/downloads/qc-usb-0.6.6: No such file or directory
[madkid@mepis1 ~]$ cd /home/madkid/Downloads/qc-usb-0.6.6
[madkid@mepis1 qc-usb-0.6.6]$ make all
awk: cmd. line:1: fatal: cannot open file `/lib/modules/2.6.32-1-mepis-smp/build/include/linux/version.h' for reading (No such file or directory)
/bin/sh: line 0: [: -ge: unary operator expected
/bin/sh: line 0: [: -ge: unary operator expected
cc -I/lib/modules/2.6.32-1-mepis-smp/build/include -nostdinc -iwithprefix include -DMODULE -D__KERNEL__ -DNOKERNEL -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wall -Wstrict-prototypes -Wno-trigraphs -DHAVE_UTSRELEASE_H= -pipe -c qc-driver.c
make: cc: Command not found
make: *** [qc-driver.o] Error 127


Anyway, I'd really like to get my webcam working. I know it'll work in Linux because I got it to work in Ubuntu 9.04 about three or so years ago. Any help will be appreciated. :) Thank you for your time and consideration. :)

EDIT: If it helps at all, the drivers are located at http://qce-ga.sourceforge.net.

_________________
Desktop (32bit):
SimplyMEPIS 8.5
P4 2.4GHz (or 1.2GHz running with hyper-threading) - 1gb DDR-Ram - 40GB IDE HDD x2
Crappy Old Video Card from the 90s!

Laptop (64bit):
Linux Mint 10
Intel Core i3 M 350 2.27GHz (dual core and hyper-threading) - 4GB DDR 3 RAM - 320GB HDD

Image


Thu Jul 15, 2010 12:42 am
Profile
MEPIS Enthusiast
MEPIS Enthusiast
User avatar

Joined: Wed Jul 12, 2006 2:10 am
Posts: 3367
Location: The Netherlands
Has thanked: 285 times
Have thanks: 321 times
Post # 237723
Post 
I cannot really help you out.. all I know is that my webcam worked out of the box on my mepis 8.0. Have you tried it out yet before trying to install the driver?

_________________
MX-14.2 (upgraded from 14.1.1) ext4 Xfce4.10 * AMD Asus M4A785TD-V EVO AM3 * ASUS GeForce GT640-1GD5-L * AMD Processor Athlon II X4 635, sAM3 * HDA ATI SB (VT1708S Analog) * 2x4Gb DDR3 1600 Kingston * 22" Samsung SyncMaster P2250 * HP DeskJet F2280


Thu Jul 15, 2010 1:06 am
Profile
Online
MEPIS Enthusiast
MEPIS Enthusiast
User avatar

Joined: Fri Dec 15, 2006 8:07 pm
Posts: 8447
Location: Skullcrusher Mountain, Santee, CA USA
Has thanked: 544 times
Have thanks: 1828 times
Post # 237726
Post 
If the webcam is three or four years old, chances are good the drivers have made it into the kernel. If not:

The driver version you're trying to build may not be compatible with the 2.6.32 kernel.

or

Have you set up all the driver build tools yet? The quick way is to run in the terminal:

su -c 'm-a prepare'


Thu Jul 15, 2010 1:20 am
Profile
MEPIS Rules!
MEPIS Rules!
User avatar

Joined: Mon Jul 12, 2010 12:12 pm
Posts: 287
Has thanked: 3 times
Have thanks: 0 time
Post # 237727
Post 
Eadwine Rose wrote:
I cannot really help you out.. all I know is that my webcam worked out of the box on my mepis 8.0. Have you tried it out yet before trying to install the driver?


Yes, I have tried it. And it doesn't work for some reason. Unless there is a certain piece of software that I need.

_________________
Desktop (32bit):
SimplyMEPIS 8.5
P4 2.4GHz (or 1.2GHz running with hyper-threading) - 1gb DDR-Ram - 40GB IDE HDD x2
Crappy Old Video Card from the 90s!

Laptop (64bit):
Linux Mint 10
Intel Core i3 M 350 2.27GHz (dual core and hyper-threading) - 4GB DDR 3 RAM - 320GB HDD

Image


Thu Jul 15, 2010 1:21 am
Profile
Online
MEPIS Enthusiast
MEPIS Enthusiast
User avatar

Joined: Fri Dec 15, 2006 8:07 pm
Posts: 8447
Location: Skullcrusher Mountain, Santee, CA USA
Has thanked: 544 times
Have thanks: 1828 times
Post # 237851
Post 
The error message was that it can't find "make". Again, you need to run

su -c 'm-a prepare'


to install your kernel headers and the build tools, which includes make along with compilers.


Thu Jul 15, 2010 9:03 pm
Profile
MEPIS Rules!
MEPIS Rules!
User avatar

Joined: Mon Jul 12, 2010 12:12 pm
Posts: 287
Has thanked: 3 times
Have thanks: 0 time
Post # 237857
Post 
Stevo wrote:
The error message was that it can't find "make". Again, you need to run

su -c 'm-a prepare'


to install your kernel headers and the build tools, which includes make along with compilers.


Alright, I did that, tried the make all command again and all I got was this:

Quote:
madkid@mepis1 ~]$ cd /home/madkid/Downloads/qc-usb-0.6.6
[madkid@mepis1 qc-usb-0.6.6]$ make all
make -C "/lib/modules/2.6.32-1-mepis-smp/build" SUBDIRS="/home/madkid/Downloads/qc-usb-0.6.6" modules V=1 USER_OPT="-DHAVE_UTSRELEASE_H=1"
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-1-mepis-smp'
make -C /usr/src/linux-headers-2.6.32-1-mepis-smp \
KBUILD_SRC=/usr/src/linux-headers-2.6.32-1-common \
KBUILD_EXTMOD="/home/madkid/Downloads/qc-usb-0.6.6" -f /usr/src/linux-headers-2.6.32-1-common/Makefile \
modules
/bin/sh: /usr/src/linux-headers-2.6.32-1-common/scripts/gcc-x86_32-has-stack-protector.sh: No such file or directory
/usr/src/linux-headers-2.6.32-1-common/arch/x86/Makefile:81: stack protector enabled but no compiler support
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /home/madkid/Downloads/qc-usb-0.6.6/.tmp_versions ; rm -f /home/madkid/Downloads/qc-usb-0.6.6/.tmp_versions/*
make -f /usr/src/linux-headers-2.6.32-1-common/scripts/Makefile.build obj=/home/madkid/Downloads/qc-usb-0.6.6
gcc-4.3 -Wp,-MD,/home/madkid/Downloads/qc-usb-0.6.6/.qc-driver.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.3.2/include -Iinclude -Iinclude2 -I/usr/src/linux-headers-2.6.32-1-common/include -I/usr/src/linux-headers-2.6.32-1-common/arch/x86/include -include include/linux/autoconf.h -I/home/madkid/Downloads/qc-usb-0.6.6 -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -DNOKERNEL -DHAVE_UTSRELEASE_H=1 -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(qc_driver)" -D"KBUILD_MODNAME=KBUILD_STR(quickcam)" -c -o /home/madkid/Downloads/qc-usb-0.6.6/qc-driver.o /home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c
In file included from /home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c:47:
/home/madkid/Downloads/qc-usb-0.6.6/quickcam.h:129:1: warning: "BIT" redefined
In file included from /usr/src/linux-headers-2.6.32-1-common/include/linux/kernel.h:15,
from /usr/src/linux-headers-2.6.32-1-common/include/linux/cache.h:4,
from /usr/src/linux-headers-2.6.32-1-common/include/linux/time.h:7,
from /usr/src/linux-headers-2.6.32-1-common/include/linux/videodev2.h:60,
from /usr/src/linux-headers-2.6.32-1-common/include/linux/videodev.h:17,
from /home/madkid/Downloads/qc-usb-0.6.6/quickcam.h:95,
from /home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c:47:
/usr/src/linux-headers-2.6.32-1-common/include/linux/bitops.h:6:1: warning: this is the location of the previous definition
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c: In function 'qc_i2c_init':
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c:824: error: 'struct urb' has no member named 'lock'
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c:825: warning: assignment from incompatible pointer type
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c: In function 'qc_proc_create':
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c:997: error: 'struct proc_dir_entry' has no member named 'owner'
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c: In function 'qc_proc_init':
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c:1035: error: 'struct proc_dir_entry' has no member named 'owner'
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c: In function 'qc_isoc_start':
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c:1867: warning: assignment from incompatible pointer type
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c: In function 'qc_v4l_poll':
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c:2256: error: 'struct video_device' has no member named 'priv'
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c: In function 'qc_v4l_open':
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c:2308: error: 'struct video_device' has no member named 'priv'
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c: In function 'qc_v4l_close':
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c:2376: error: 'struct video_device' has no member named 'priv'
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c: In function 'qc_v4l_read':
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c:2424: error: 'struct video_device' has no member named 'priv'
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c: In function 'qc_v4l_mmap':
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c:2479: error: 'struct video_device' has no member named 'priv'
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c: In function 'qc_v4l_ioctl':
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c:2511: error: 'struct video_device' has no member named 'priv'
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c:2529: error: 'struct video_device' has no member named 'type'
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c: At top level:
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c:3008: error: unknown field 'type' specified in initializer
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c:3009: error: unknown field 'hardware' specified in initializer
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c:3013: warning: initialization from incompatible pointer type
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c: In function 'qc_usb_init':
/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.c:3158: error: 'struct video_device' has no member named 'priv'
make[4]: *** [/home/madkid/Downloads/qc-usb-0.6.6/qc-driver.o] Error 1
make[3]: *** [_module_/home/madkid/Downloads/qc-usb-0.6.6] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-1-mepis-smp'
make: *** [quickcam.ko] Error 2


Any other ideas?

_________________
Desktop (32bit):
SimplyMEPIS 8.5
P4 2.4GHz (or 1.2GHz running with hyper-threading) - 1gb DDR-Ram - 40GB IDE HDD x2
Crappy Old Video Card from the 90s!

Laptop (64bit):
Linux Mint 10
Intel Core i3 M 350 2.27GHz (dual core and hyper-threading) - 4GB DDR 3 RAM - 320GB HDD

Image


Thu Jul 15, 2010 10:36 pm
Profile
Online
MEPIS Enthusiast
MEPIS Enthusiast
User avatar

Joined: Fri Dec 15, 2006 8:07 pm
Posts: 8447
Location: Skullcrusher Mountain, Santee, CA USA
Has thanked: 544 times
Have thanks: 1828 times
Post # 237860
Post 
I would guess that old source is not going to work with the newer kernels.

Can you plug in the camera, then execute

dmesg

in the terminal, then paste the last ten or so lines in a post here?


Thu Jul 15, 2010 11:25 pm
Profile
MEPIS Rules!
MEPIS Rules!
User avatar

Joined: Mon Jul 12, 2010 12:12 pm
Posts: 287
Has thanked: 3 times
Have thanks: 0 time
Post # 237866
 
Stevo wrote:
I would guess that old source is not going to work with the newer kernels.

Can you plug in the camera, then execute

dmesg

in the terminal, then paste the last ten or so lines in a post here?


Yeah! No problem there.

Quote:
=============>ARFR0+rate_index*4:0xff5
<=====rtl8192SU_link_change 2
usb 2-1: new full speed USB device using uhci_hcd and address 3
usb 2-1: New USB device found, idVendor=046d, idProduct=092e
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-1: Product: Camera
usb 2-1: Manufacturer:
usb 2-1: configuration #1 chosen from 1 choice
gspca: probing 046d:092e
gspca: probe ok


I believe that it is also picking up my wireless adapter.

Thanks for the help so far. :)

_________________
Desktop (32bit):
SimplyMEPIS 8.5
P4 2.4GHz (or 1.2GHz running with hyper-threading) - 1gb DDR-Ram - 40GB IDE HDD x2
Crappy Old Video Card from the 90s!

Laptop (64bit):
Linux Mint 10
Intel Core i3 M 350 2.27GHz (dual core and hyper-threading) - 4GB DDR 3 RAM - 320GB HDD

Image


Fri Jul 16, 2010 1:26 am
Profile
Online
MEPIS Enthusiast
MEPIS Enthusiast
User avatar

Joined: Fri Dec 15, 2006 8:07 pm
Posts: 8447
Location: Skullcrusher Mountain, Santee, CA USA
Has thanked: 544 times
Have thanks: 1828 times
Post # 237935
Post 
{quote]usb 2-1: New USB device found, idVendor=046d, idProduct=092e[/quote]

OK, the usb ID (046d:092e) is very useful as something to paste into a web search. Almost always someone else has had the same troubles.

Looks like gspca (which is built into the kernel) probed the webcam, but did not find a driver that matched the USB ID.

OK, that USB ID leads here: http://lwn.net/Articles/291036/

which suggests that the kernel's gspca_spca561 driver should support the camera. Let's ask the driver if it should:

modinfo -k 2.6.32-1-mepis-smp gspca_spca561 (had to do the -k kernelversion since I'm not running the Mepis kernel right now)

Output:

filename: /lib/modules/2.6.32-1-mepis-smp/kernel/drivers/media/video/gspca/gspca_spca561.ko
license: GPL
description: GSPCA/SPCA561 USB Camera Driver
author: Michel Xhaard <mxhaard@users.sourceforge.net>
alias: usb:vABCDpCDEEd*dc*dsc*dp*ic*isc*ip*
alias: usb:v10FDp7E50d*dc*dsc*dp*ic*isc*ip*
alias: usb:v060BpA001d*dc*dsc*dp*ic*isc*ip*
alias: usb:v04FCp0561d*dc*dsc*dp*ic*isc*ip*
alias: usb:v046Dp092Fd*dc*dsc*dp*ic*isc*ip*
alias: usb:v046Dp092Ed*dc*dsc*dp*ic*isc*ip*

alias: usb:v046Dp092Dd*dc*dsc*dp*ic*isc*ip*
alias: usb:v046Dp092Cd*dc*dsc*dp*ic*isc*ip*
alias: usb:v046Dp092Bd*dc*dsc*dp*ic*isc*ip*
alias: usb:v046Dp092Ad*dc*dsc*dp*ic*isc*ip*
alias: usb:v046Dp0929d*dc*dsc*dp*ic*isc*ip*
alias: usb:v046Dp0928d*dc*dsc*dp*ic*isc*ip*
alias: usb:v0458p7004d*dc*dsc*dp*ic*isc*ip*
alias: usb:v041Ep403Bd*dc*dsc*dp*ic*isc*ip*
alias: usb:v041Ep401Ad*dc*dsc*dp*ic*isc*ip*
depends: gspca_main
vermagic: 2.6.32-1-mepis-smp SMP preempt mod_unload 686


Well, it says it should...I am kind of stumped now. How about forcing the driver to load after plugging in the webcam:

su -c 'modprobe gspca_spca561'

And if that does not get it working, posting the end of the dmesg output again?


Fri Jul 16, 2010 12:43 pm
Profile
MEPIS Rules!
MEPIS Rules!
User avatar

Joined: Mon Jul 12, 2010 12:12 pm
Posts: 287
Has thanked: 3 times
Have thanks: 0 time
Post # 237961
Post 
It still doesn't work. Unless I'm using the wrong software. When I plug the webcam in, the green light flashes. But when I load Camorama Webcam Viewer, it says it's unable to capture an image, closes, and the green light goes out. I've also tried using Cheese, which just doesn't capture the image either. Here's what you wanted from the CLI:

Quote:

=============>ARFR0+rate_index*4:0xff5
<=====rtl8192SU_link_change 2
usb 2-1: new full speed USB device using uhci_hcd and address 8
usb 2-1: New USB device found, idVendor=046d, idProduct=092e
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-1: Product: Camera
usb 2-1: Manufacturer:
usb 2-1: configuration #1 chosen from 1 choice
gspca: probing 046d:092e
gspca: probe ok

_________________
Desktop (32bit):
SimplyMEPIS 8.5
P4 2.4GHz (or 1.2GHz running with hyper-threading) - 1gb DDR-Ram - 40GB IDE HDD x2
Crappy Old Video Card from the 90s!

Laptop (64bit):
Linux Mint 10
Intel Core i3 M 350 2.27GHz (dual core and hyper-threading) - 4GB DDR 3 RAM - 320GB HDD

Image


Fri Jul 16, 2010 3:06 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 21 posts ]  Go to page 1, 2, 3  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.