LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-27-2006, 03:44 AM   #1
sleepindawg
Member
 
Registered: Aug 2003
Location: Kansas... USA
Distribution: Mandrake10 Offical, Debian Sarge, Knoppix, GO Ubuntu!!! my new home
Posts: 79

Rep: Reputation: 15
Question quick cam pro 4000 and pwc install errors


i have followed several web sites directions to install the pwc driver for my logitech quickcam pro4000 to no avail. It always ends the with the same errors, see below.............

knoppix@0[pwc-10.0.11]$ make
make -C /lib/modules/2.6.11/source SUBDIRS=/home/knoppix/pwc-10.0.11 modules
/bin/sh: /usr/src/linux-2.6.11/scripts/gcc-version.sh: No such file or directory
make[1]: Entering directory `/usr/src/linux-2.6.11'
make[2]: scripts/Makefile.build: No such file or directory
make[2]: *** No rule to make target `scripts/Makefile.build'. Stop.
make[1]: *** [_module_/home/knoppix/pwc-10.0.11] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.11'
make: *** [all] Error 2


This is a knoppix hd install with the debian option not the knoppix.
in my /usr/src/linux-2.6.11 there is no "scripts" file so that in turn means no
"gcc-version.sh" either. There are "makefile" files in /usr/src/linux-2.6.11
and in /usr/src/modules/pwc, and in /home/knoppix/pwc-10.0.11. I have tried the "make" command from all three areas to no avail, always with the same outcome.
Anyone have this same problem?
 
Old 03-27-2006, 04:43 AM   #2
paragn
Member
 
Registered: Jan 2006
Distribution: Red Hat EL5, Fedora 7
Posts: 259

Rep: Reputation: 30
hi,
I dont know why you dont have gcc-version.sh in /usr/src/linux-2.6.11. I am using RHEL and i have it. Quick solutions is try adding scripts directory under /usr/src/linux-2.6.11 and then creating gcc-version.sh. Contents of gcc-version.sh are
Quote:
#!/bin/sh
#
# gcc-version gcc-command
#
# Prints the gcc version of `gcc-command' in a canonical 4-digit form
# such as `0295' for gcc-2.95, `0303' for gcc-3.3, etc.
#

compiler="$*"

MAJOR=$(echo __GNUC__ | $compiler -E -xc - | tail -n 1)
MINOR=$(echo __GNUC_MINOR__ | $compiler -E -xc - | tail -n 1)
printf "%02d%02d\\n" $MAJOR $MINOR
 
Old 03-27-2006, 08:31 AM   #3
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
apt-get install pwc-source module-assistant fakeroot build-essential
cd /usr/src
m-a a-i pwc
 
Old 03-27-2006, 09:43 AM   #4
sleepindawg
Member
 
Registered: Aug 2003
Location: Kansas... USA
Distribution: Mandrake10 Offical, Debian Sarge, Knoppix, GO Ubuntu!!! my new home
Posts: 79

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by dracae
apt-get install pwc-source module-assistant fakeroot build-essential
cd /usr/src
m-a a-i pwc

ok, here's the output for that......

-------------------------------------------------------------------------

dh_testdir
rm -f build-arch-stamp build-indep-stamp configure-stamp
# Add here commands to clean up after the build process.
/usr/bin/make clean
make[1]: Entering directory -/usr/src/modules/pwc'
rm -f *_[oas] .*.flags *.ko .*.cmd .*.d .*.tmp *.mod.c
rm -rf .tmp_versions
make[1]: Leaving directory -/usr/src/modules/pwc'
dh_clean
/usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Entering directory -/usr/src/modules/pwc'
dh_testdir
rm -f build-arch-stamp build-indep-stamp configure-stamp
# Add here commands to clean up after the build process.
/usr/bin/make clean
make[2]: Entering directory -/usr/src/modules/pwc'
rm -f *_[oas] .*.flags *.ko .*.cmd .*.d .*.tmp *.mod.c
rm -rf .tmp_versions
make[2]: Leaving directory -/usr/src/modules/pwc'
dh_clean
/usr/bin/gcc-3.3
for templ in ; do \
cp $templ -echo $templ | sed -e 's/_KVERS_/2.6.11/g'- ; \
done
for templ in -ls debian/*-modules. in- ; do \
test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} ${templ
sed -e 's/##KVERS##/2.6.11/g ;s/#KVERS#/2.6.11/g ; s/_KVERS_/2.6.11/g
done
export DH_OPTIONS='-ppwc-modules-2.6.11'
# Is this needed for setting up a Depends?
echo "kpkg:Kernel-Version=2.6.11" > \
debian/pwc-modules-2.6.11.substvars
dh_testdir
dh_test_root
dh_clean -k
# Build the module
CC=gcc-3.3 /usr/bin/make KSRC=/usr/src/linux KVER=2.6.11
make[2]: Entering directory -/usr/src/modules/pwc'
/usr/bin/make -C /usr/src/linux SUBDIRS=/usr/src/modules/pwc modules
/bin/sh: /usr/src/linux-2.6.11/scripts/gcc-version.sh No such file or dir
make[3]: Entering directory -/usr/src/linux-2.6.11'
make[4]: scripts/Makefile.build: No such file or directory
make[4]: *** No rule to make target -scripts/Makefile.build'. Stop.
make[3]: *** [_module_/usr/src/modules/pwc] Error 2
make[3]: Leaving directory -/usr/src/linux-2.6.11'
make[2]: ***[all] Error 2
make[2]: Leaving directory -/usr/src/modules/pwc'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory -/usr/src/modules/pwc'
make: *** [kdist_build] Error 2

-------------------------------------------------------------------------


There's what i get when i did it your way dracae, i hope this helps some
 
Old 03-28-2006, 09:43 AM   #5
sleepindawg
Member
 
Registered: Aug 2003
Location: Kansas... USA
Distribution: Mandrake10 Offical, Debian Sarge, Knoppix, GO Ubuntu!!! my new home
Posts: 79

Original Poster
Rep: Reputation: 15
Dracae??? Did that give you any more information at all with my problem?
 
Old 03-29-2006, 09:00 PM   #6
sleepindawg
Member
 
Registered: Aug 2003
Location: Kansas... USA
Distribution: Mandrake10 Offical, Debian Sarge, Knoppix, GO Ubuntu!!! my new home
Posts: 79

Original Poster
Rep: Reputation: 15
dracae?? does this help any?
 
Old 04-05-2006, 11:36 PM   #7
sleepindawg
Member
 
Registered: Aug 2003
Location: Kansas... USA
Distribution: Mandrake10 Offical, Debian Sarge, Knoppix, GO Ubuntu!!! my new home
Posts: 79

Original Poster
Rep: Reputation: 15
** bump **
 
Old 04-17-2006, 11:40 PM   #8
sleepindawg
Member
 
Registered: Aug 2003
Location: Kansas... USA
Distribution: Mandrake10 Offical, Debian Sarge, Knoppix, GO Ubuntu!!! my new home
Posts: 79

Original Poster
Rep: Reputation: 15
*** bump ***
 
Old 08-27-2006, 01:11 PM   #9
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
It looks like it's not picking up your kernel version, etc. There are a few env variables, KSRC, KDIR, KVERS that probably need to be set. KSRC and KDIR may be synonymous.
Make sure you have the kernel headers for your kernel.
apt-get install linux-headers-`uname -r`
Try to build it manually by like so.
cd /usr/src
extract pwc source
cd modules/pwc*
debian/rules binary_modules
cd ../../
install new deb
 
Old 08-27-2006, 01:25 PM   #10
sleepindawg
Member
 
Registered: Aug 2003
Location: Kansas... USA
Distribution: Mandrake10 Offical, Debian Sarge, Knoppix, GO Ubuntu!!! my new home
Posts: 79

Original Poster
Rep: Reputation: 15
I'm sorry, i dont understand what your wanting me to do after the point of "cd modules/pwc*"..
what do you mean by

debian/rules binary_modules
cd ../../
install new deb
 
Old 08-28-2006, 09:04 AM   #11
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
Inside your source directory is another directory "debian", inside that is a script named "rules". That script takes a handful of arguments, one being binary_modules, which builds the modules.
Hence,
debian/rules binary_modules
 
Old 08-31-2006, 09:21 AM   #12
sleepindawg
Member
 
Registered: Aug 2003
Location: Kansas... USA
Distribution: Mandrake10 Offical, Debian Sarge, Knoppix, GO Ubuntu!!! my new home
Posts: 79

Original Poster
Rep: Reputation: 15
Thumbs up

Thank you for all your help dracae... just couldnt get it. So i switched to Unbuntu, now everything is working after some editing and setup of course. even my pro4000 is looking better in ubuntu than it does in xp. Getting closer to dumpin the monopoly.....

 
  


Reply

Tags
quickcam



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
Problem with ivtv drivers - pvr 350 and logitech webcam 4000 pro pwc drivers sdavis3 Linux - Hardware 13 03-11-2006 08:34 AM
pwc driver for Logitech QC pro 3000 rws1462 Linux - Hardware 1 12-08-2005 03:11 PM
Logitech Quick Cam Zoom salmanal SUSE / openSUSE 8 09-09-2005 10:38 PM
PWC driver in Mandrake 10 (Philips Toucam II, Logitech Quickcam Pro 4000, etc.) make Mandriva 0 06-19-2004 03:03 AM
Help installing PWC Modules for Logitech Quickcam 4000 pro Techweenie1 Slackware 1 08-25-2003 10:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:00 AM.

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
Open Source Consulting | Domain Registration