• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Problem running make missing /usr/lib/'kernelversion"/build on guruplug debian  (Read 1278 times)
bem
Newbie
*

Karma: 0
Posts: 1


View Profile
« on: January 17, 2011, 09:35:13 AM »

Hi Im trying to compile some usb webcam drivers for my philips webcam, but am facing some issues. Through google i found out that i need to download the pwc source to make it work. I am planning to use a usb webcam in my currently running zoneminder installation.

# lsusb
Bus 001 Device 005: ID 0471:0329 Philips (or NXP) SPC 900NC PC Camera / ORITE CCD Webcam(PC370R)

I am running :
# uname -a
Linux sheevaplug-debian 2.6.32-00007-g56678ec #1 PREEMPT Thu Dec 24 03:15:48 PST 2009 armv5tel GNU/Linux


When i am in the source directory of pwc i do make :

# make
make -C /lib/modules/2.6.32-00007-g56678ec/build SUBDIRS=/home/user/pwc-10.0.12-rc1 modules
make[1]: Entering directory `/lib/modules/2.6.32-00007-g56678ec/kernel'
make[1]: *** No rule to make target `modules'.  Stop.
make[1]: Leaving directory `/lib/modules/2.6.32-00007-g56678ec/kernel'
make: *** [all] Error 2

Can anybody help me out which linux-sources or kernel headers i need to install?

Contents of the dir :
Makefile    pwc-dec1.c   pwc-dec23.c  pwc.h     pwc-ioctl.h  pwc-kiara.h  pwc-nala.h   pwc-timon.h   pwc-uncompress.h
pwc-ctrl.c  pwc-dec1.h   pwc-dec23.h  pwc-if.c  pwc-kiara.c  pwc-misc.c    pwc-timon.c  pwc-uncompress.c   pwc-v4l.c


Below is also the makefile :


#
# 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 build this driver has a module

ifndef CONFIG_USB_PWC
CONFIG_USB_PWC=m
# Comment the next line, if you don't want debug message and a smaller binary
CONFIG_PWC_DEBUG=y
endif

ifneq ($(KERNELRELEASE),)

pwc-objs        := pwc-if.o pwc-misc.o pwc-ctrl.o pwc-v4l.o pwc-uncompress.o
pwc-objs        += pwc-dec1.o pwc-dec23.o pwc-kiara.o pwc-timon.o

obj-$(CONFIG_USB_PWC) += pwc.o

EXTRA_CFLAGS=-Wall -I$(PWD)

ifeq ($(CONFIG_PWC_DEBUG),y)
EXTRA_CFLAGS += -DCONFIG_PWC_DEBUG=1
else
EXTRA_CFLAGS += -DCONFIG_PWC_DEBUG=0
endif

else
KVER  := $(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/media
PWD := $(shell pwd)


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.ko

endif

clean:
        rm -f *.[oas] .*.flags *.ko .*.cmd .*.d .*.tmp *.mod.c
        rm -rf .tmp_versions


Logged

Pages: [1]
Print
Jump to: