LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-12-2009, 01:02 AM   #1
Jinouchi
Member
 
Registered: Jul 2007
Location: WI, USA
Distribution: Debian, Lenny
Posts: 111

Rep: Reputation: 19
Logitech webcam installation - compilation issues


Well, I've been trying for some time to install a driver for an old webcam I have laying around, but I seem to be having some trouble. I can't get past making it:
Code:
$ sudo make all
make -C "/lib/modules/2.6.26-1-686/build" SUBDIRS="/home/username/qc-usb-0.6.6" modules V=1 USER_OPT="-DHAVE_UTSRELEASE_H=1"
make[1]: Entering directory `/usr/src/linux-headers-2.6.26-1-686'
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/username/qc-usb-0.6.6/.tmp_versions ; rm -f /home/username/qc-usb-0.6.6/.tmp_versions/*
make -f scripts/Makefile.build obj=/home/username/qc-usb-0.6.6
   gcc-4.1 -Wp,-MD,/home/username/qc-usb-0.6.6/.qc-driver.o.d  -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.3/include -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os   -fno-stack-protector -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2  -march=i686 -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 -Iinclude/asm-x86/mach-default -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign   -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/username/qc-usb-0.6.6/.tmp_qc-driver.o /home/username/qc-usb-0.6.6/qc-driver.c
In file included from /home/username/qc-usb-0.6.6/qc-driver.c:47:
/home/username/qc-usb-0.6.6/quickcam.h:129:1: warning: "BIT" redefined
In file included from include/linux/kernel.h:15,
                 from include/linux/cache.h:4,
                 from include/linux/time.h:7,
                 from include/linux/videodev2.h:59,
                 from include/linux/videodev.h:16,
                 from /home/username/qc-usb-0.6.6/quickcam.h:95,
                 from /home/username/qc-usb-0.6.6/qc-driver.c:47:
include/linux/bitops.h:6:1: warning: this is the location of the previous definition
/home/username/qc-usb-0.6.6/qc-driver.c: In function ‘qc_i2c_init’:
/home/username/qc-usb-0.6.6/qc-driver.c:824: error: ‘struct urb’ has no member named ‘lock’
/home/username/qc-usb-0.6.6/qc-driver.c:825: warning: assignment from incompatible pointer type
/home/username/qc-usb-0.6.6/qc-driver.c: In function ‘qc_isoc_start’:
/home/username/qc-usb-0.6.6/qc-driver.c:1867: warning: assignment from incompatible pointer type
/home/username/qc-usb-0.6.6/qc-driver.c: At top level:
/home/username/qc-usb-0.6.6/qc-driver.c:3009: error: unknown field ‘hardware’ specified in initializer
make[2]: *** [/home/username/qc-usb-0.6.6/qc-driver.o] Error 1
make[1]: *** [_module_/home/username/qc-usb-0.6.6] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.26-1-686'
make: *** [quickcam.ko] Error 2
Unfortunately I haven't gotten much into coding yet, so I'm not really sure what's wrong. Perhaps I need to comment out a line in the makefile or install some additional libraries?

Last edited by Jinouchi; 09-14-2009 at 11:12 AM.
 
Old 09-12-2009, 01:36 AM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by Jinouchi View Post
Well, I've been trying for some time to install a driver for an old webcam I have laying around, but I seem to be having some trouble. I can't get past making it:

[ snip compilation list ]

Unfortunately I haven't gotten much into coding yet, so I'm not really sure what's wrong. Perhaps I need to comment out a line in the makefile or install some additional libraries?
Compiler issue: You haven't said whether the source is compatible with the current gcc version. It is not uncommon for revisions to the computer to render a lot of old source code invalid.

Kernel issue: Have you tried locating a compiled version of the driver for your distribution and version? Drivers, in particular if they live in kernel space, tend not to remain compatible for very long without maintenance and upgrades.
 
Old 09-14-2009, 11:12 AM   #3
Jinouchi
Member
 
Registered: Jul 2007
Location: WI, USA
Distribution: Debian, Lenny
Posts: 111

Original Poster
Rep: Reputation: 19
Well, I already tried using gcc 4.1, 4.3 and 3.4, and none of them worked. I got gcc 2.95 from debian's repo, and I can't compile that either:
Code:
gcc -c  -DIN_GCC   -g -O2     -I. -I.. -I. -I./.. -I./../config -I./../../include decl.c
decl.c: In function `start_struct':
decl.c:4451: error: argument "code" doesn't match prototype
ch-tree.h:736: error: prototype declaration
make[2]: *** [decl.o] Error 1
make[2]: Leaving directory `/home/username/tmp/gcc-2.95-2.95.4.ds15.orig/gcc-20011006/gcc/ch'
make[1]: *** [cc1chill] Error 2
make[1]: Leaving directory `/home/username/tmp/gcc-2.95-2.95.4.ds15.orig/gcc-20011006/gcc'
make: *** [all-gcc] Error 2
So... What's that mean?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Logitech webcam and microphone : Issues in Gyachi _Demo_ Linux Mint 2 09-05-2009 06:22 PM
Logitech express Webcam issues, GlennsPref Mandriva 9 07-26-2008 06:50 PM
Logitech Webcam? carlosinfl Linux - Hardware 3 01-23-2006 02:58 PM
need help with my logitech webcam jordy22 Linux - Hardware 1 01-24-2005 07:33 PM
Logitech Webcam Angelis Linux - General 1 11-29-2003 06:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration