[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Compilando modulo pwc en kernel 2.6.8



On Mon, 2006-08-21 at 23:46 +0200, David Ballano wrote:
> Hola a toda la lista, necesito algo de ayuda ya que ando dando palosal agua desde hace ya bastantes dias....
> resulta que quiero compilar el modulo pwc en mi kernel para despuescargarlo y hacer funcionar la webcam philips.
> me he bajado las sources de mi kernel y las headers2.6.8-2-386
> tambien me he bajado las fuentes del modulo de la pagina dehttp://www.saillard.org/pwc-10.0.11.tar.bz2
> lo descomprimo y lo desempaqueto.
> una vez hecho esto me meto en el directoriopwc-10.0.11 y ejecuto make como dice en las instrucciones de la web...
> pero me salta con el siguiente error
> make -C /lib/modules/2.6.8-2-386/build SUBDIRS=/usr/src/pwc-10.0.11 modulesmake: *** /lib/modules/2.6.8-2-386/build: No such file or directory.  Stop.make: *** [all] Error 2
> vamos que no existe la carpeta build, en realidad todo esto lo hicesin tener las headers descargadas así que ni corto ni perezoso voy yle creo la carpeta build...
> jejeje
> rea:/usr/src/pwc-10.0.11# makemake -C /lib/modules/2.6.8-2-386/build SUBDIRS=/usr/src/pwc-10.0.11 modulesmake[1]: Entering directory `/lib/modules/2.6.8-2-386/build'make[1]: *** No rule to make target `modules'.  Stop.make[1]: Leaving directory `/lib/modules/2.6.8-2-386/build'make: *** [all] Error 2
> despues me baje las headers pero me salta el mismo error..esto debe de ser una tonteria, yo creo vamos... alguien me ayuda,muchas gracias a todos!
> PD: por cierto este es el fichero makeconfig de pwc por si sirve:(perdón por lo extenso)
> 
> ## Makefile for the Linux Philips USB Webcam driver## NOTE: This make file can serve as both an external Makefile (launched#       directly by the user), or as the sub-dir Makefile used by the kernel#       build system.
> # If CONFIG_USB_PWC isn't set, we'll assume the user want to buildthis driver has a module
> ifndef CONFIG_USB_PWCCONFIG_USB_PWC=m# Comment the next line, if you don't want debug message and a smaller binaryCONFIG_PWC_DEBUG=yendif
> ifneq ($(KERNELRELEASE),)
> pwc-objs        := pwc-if.o pwc-misc.o pwc-ctrl.o pwc-v4l.o pwc-uncompress.opwc-objs        += pwc-dec1.o pwc-dec23.o pwc-kiara.o pwc-timon.o
> obj-$(CONFIG_USB_PWC) += pwc.o
> EXTRA_CFLAGS=-Wall -DXAWTV_HAS_BEEN_FIXED=1
> ifeq ($(CONFIG_PWC_DEBUG),y)EXTRA_CFLAGS += -DCONFIG_PWC_DEBUG=1elseEXTRA_CFLAGS += -DCONFIG_PWC_DEBUG=0endif
> elseKVER  := $(shell uname -r)KLINK := $(shell test -e /lib/modules/${KVER}/source/ && echo source|| echo build)KSRC  := /lib/modules/$(KVER)/$(KLINK)KMISC := /lib/modules/$(KVER)/kernel/drivers/usb/mediaPWD := $(shell pwd)
> # Fix some problem with suse < 9.2 and suse >= 9.2is_suse := $(shell test -e /etc/SuSE-release && echo 1 || echo 0)ifeq ($(is_suse),1)  suse_version := $(shell grep VERSION /etc/SuSE-release | cut -f 3 -d" "| tr -d .)  is_suse_92_or_greater := $(shell test $(suse_version) -ge 92 && echo 1)  ifeq ($(is_suse_92_or_greater),1)    KSRC := /lib/modules/$(KVER)/build  endifendif
> 
> 
> all default:        $(MAKE) -C $(KSRC) SUBDIRS=$(PWD) modules
> install: default        install -d $(KMISC)        install -m 644 -c pwc.ko $(KMISC)        -/sbin/depmod -a
> uninstall:        -rm -rf $(KMISC)/pwc.koendif
> clean:        rm -f *.[oas] .*.flags *.ko .*.cmd .*.d .*.tmp *.mod.c        rm -rf .tmp_versions

Revisa este link:
http://www.ecualug.org/?q=2006/02/27/comos/instalar_una_logitech_quickcam_pro_4000


-- 
Guillermo Salas M.
Telconet S.A.
Calle 15 y Avenida 24 Esq
Edificio Barre #2 Primer Piso
Telefono : +593 5 262 8071
Celular  : +593 9 985 5138
e-mail   : gsalas@manta.telconet.net
www      : http://www.manta.telconet.net
           http://www.telcocarrier.net

Linux User: 255902

Beat me, whip me, make me use Windows!

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

Please avoid the Top Posting, see
http://es.wikipedia.org/wiki/Top-posting



Reply to: