You are not logged in.

#1 2004-06-08 16:53:04

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

[Drivers] qc-usb

Logitech quickcam webcam drivers.

pkgname=qc-usb
pkgver=20040616
pkgrel=a4
pkgdesc="Logitech quickcam webcam drivers"
url="http://qce-ga.sourceforge.net"
license=""
depends=()
makedepends=(cvs)
install=
cvsroot=":pserver:anonymous@cvs.sourceforge.net:/cvsroot/qce-ga"
cvsmod="qc-usb"
kernelver="2.6.7"
build() {
  cd $startdir/src/
  msg "Press enter."
  cvs -Q -d $cvsroot login
  
  msg "Fetching sources from CVS..."
  cvs -Q -z3 -d $cvsroot co $cvsmod
  cd $cvsmod
  make all
  
  mkdir -p $startdir/pkg/lib/modules/$kernelver/kernel/drivers/usb/misc

  cp quickcam.ko $startdir/pkg/lib/modules/$kernelver/kernel/drivers/usb/misc/
  # For 2.4.x kernels, comment the line above, and uncomment the line below
  #cp quickcam.o $startdir/pkg/lib/modules/$kernelver/kernel/drivers/usb/misc

  mkdir -p $startdir/pkg/usr/bin
  cp qcset $startdir/pkg/usr/bin/
}  

That works a lot better then the PKGBUILD in the Wiki, I'll fix that.

EDIT:  I fixed the PKGBUILD yet again.  Now it will work with both 2.6.x and 2.4.x.  If you have 24 just comment the lines I specified.

EDIT:  I fixed the PKGBUILD... for the fourth time.. It's cleaner now, and adds better support for both kernel lines.


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#2 2004-06-08 16:58:04

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: [Drivers] qc-usb

I fixed the Wiki, and the patched Makefile is no longer needed, the CVS will compile fine.


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#3 2004-06-17 01:29:13

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: [Drivers] qc-usb

I fixed the PKGBUILD, everything works fine again.


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#4 2004-06-20 19:24:24

ro0x
Member
From: Santiago, Chile
Registered: 2004-06-20
Posts: 79

Re: [Drivers] qc-usb

don't work with the kernel 2.4.26

/lib/modules/2.4.26/kernel/drivers/usb/misc/quickcam.o: couldn't find the kernel version the module was compiled for
/lib/modules/2.4.26/kernel/drivers/usb/misc/quickcam.o: insmod /lib/modules/2.4.26/kernel/drivers/usb/misc/quickcam.o failed
/lib/modules/2.4.26/misc/quickcam.o: couldn't find the kernel version the module was compiled for
/lib/modules/2.4.26/misc/quickcam.o: insmod /lib/modules/2.4.26/misc/quickcam.o failed
/lib/modules/2.4.26/misc/quickcam.o: insmod quickcam failed

Offline

#5 2004-06-20 19:34:01

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: [Drivers] qc-usb

grr, yeah, my package is having issues, I'll work with it later.


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#6 2004-06-20 20:35:47

ro0x
Member
From: Santiago, Chile
Registered: 2004-06-20
Posts: 79

Re: [Drivers] qc-usb

I fix the error with this line

  sed -i 's|-pipe|-pipe -fno-unit-at-a-time|g' Makefile

the PKGBUILD

pkgname=qc-usb 
pkgver=20040620
pkgrel=a4 
pkgdesc="Logitech quickcam webcam drivers" 
url="http://qce-ga.sourceforge.net" 
license="" 
depends=() 
makedepends=(cvs) 
install= 
cvsroot=":pserver:anonymous@cvs.sourceforge.net:/cvsroot/qce-ga" 
cvsmod="qc-usb" 
kernelver="2.4.26" 
build() { 
  cd $startdir/src/ 
  msg "Press enter." 
  cvs -Q -d $cvsroot login 
  
  msg "Fetching sources from CVS..." 
  cvs -Q -z3 -d $cvsroot co $cvsmod 
  cd $cvsmod 
  sed -i 's|-pipe|-pipe -fno-unit-at-a-time|g' Makefile
  make all 
  
  mkdir -p $startdir/pkg/lib/modules/$kernelver/kernel/drivers/usb/misc 

  #cp quickcam.ko $startdir/pkg/lib/modules/$kernelver/kernel/drivers/usb/misc/ 
  # For 2.4.x kernels, comment the line above, and uncomment the line below 
  cp quickcam.o $startdir/pkg/lib/modules/$kernelver/kernel/drivers/usb/misc 

  mkdir -p $startdir/pkg/usr/bin 
  cp qcset $startdir/pkg/usr/bin/ 
} 

Offline

#7 2004-06-20 20:37:39

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: [Drivers] qc-usb

Hmm, I'll try it out.  I'll tell you how it turns out for the 2.6.x kernel.


If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#8 2004-06-20 21:37:45

punkrockguy318
Member
From: New Jersey
Registered: 2004-02-15
Posts: 711
Website

Re: [Drivers] qc-usb

Yes!  You rock!   I need to read the sed man pages... I'm making two seperate PKGBUILDs, one for 2.4, and one for 2.6.

Here's the 2.4 one:

pkgname=qc-usb24
pkgver=20040620
pkgrel=p1
pkgdesc="Logitech quickcam webcam drivers"
url="http://qce-ga.sourceforge.net"
license=""
depends=()
makedepends=(cvs)
install=
cvsroot=":pserver:anonymous@cvs.sourceforge.net:/cvsroot/qce-ga"
cvsmod="qc-usb"
kernelver=$(uname -r)
build() {
  
  cd $startdir/src/
  msg "Press enter."
  cvs -Q -d $cvsroot login
 
  msg "Fetching sources from CVS..."
  cvs -Q -z3 -d $cvsroot co $cvsmod
  cd $cvsmod
  sed -i 's|-pipe|-pipe -fno-unit-at-a-time|g' Makefile
  make all
 
  mkdir -p $startdir/pkg/lib/modules/$kernelver/kernel/drivers/usb/misc

  cp quickcam.o $startdir/pkg/lib/modules/$kernelver/kernel/drivers/usb/misc/

  mkdir -p $startdir/pkg/usr/bin
  cp qcset $startdir/pkg/usr/bin/
}

And for 2.6:

pkgname=qc-usb26
pkgver=20040620
pkgrel=p1
pkgdesc="Logitech quickcam webcam drivers"
url="http://qce-ga.sourceforge.net"
license=""
depends=()
makedepends=(cvs)
install=
cvsroot=":pserver:anonymous@cvs.sourceforge.net:/cvsroot/qce-ga"
cvsmod="qc-usb"
kernelver=$(uname -r)
build() {
  
  cd $startdir/src/
  msg "Press enter."
  cvs -Q -d $cvsroot login
 
  msg "Fetching sources from CVS..."
  cvs -Q -z3 -d $cvsroot co $cvsmod
  cd $cvsmod
  sed -i 's|-pipe|-pipe -fno-unit-at-a-time|g' Makefile
  make all
 
  mkdir -p $startdir/pkg/lib/modules/$kernelver/kernel/drivers/usb/misc

  cp quickcam.ko $startdir/pkg/lib/modules/$kernelver/kernel/drivers/usb/misc/

  mkdir -p $startdir/pkg/usr/bin
  cp qcset $startdir/pkg/usr/bin/
}

If I have the gift of prophecy and can fathom all mysteries and all knowledge, and if I have a faith that can move mountains, but have not love, I am nothing.   1 Corinthians 13:2

Offline

#9 2005-08-18 10:42:19

latz
Member
From: Luxembourg
Registered: 2005-08-18
Posts: 2

Re: [Drivers] qc-usb

strange strange  roll

I tried your PKGBUILD but it didn't really work for me! I am using kernel 2.6.12 atm, and by the look of your PKGBUILD it should detect the current kernel version! Well let me show you what the result of uname -r on my machine is!


# uname -r
2.6.12-ARCH

but the script puts the .ko file quickcam.ko file to be exact into /lib/modules/2.6.9-ARCH/kernel/drivers/usb

Any idea what I am doing wrong?

Offline

Board footer

Powered by FluxBB