Hi all,

Sorry for the long post but I'm trying to include as much relevant information as I can identify.

I've installed FC4 on a:

P4
3GHz
1G RAM

machine.

A few months ago I installed FC4 on my laptop and then installed the module to run a Logitech Quickcam Pro 4000 - all went well.

Now, with a completely up-to-date FC4 install on my desktop, I find I'm having problems.

I'm using the same instructions from the same site:

http://saillard.org/linux/pwc/INSTALL.en

However, I get the following error message:

[EMAIL PROTECTED] pwc-10.0.11]$ make
make -C /lib/modules/2.6.16-1.2069_FC4smp/source SUBDIRS=/home/patrick/config files/webcam/pwc-10.0.11 modules
make[1]: Entering directory `/usr/src/kernels/2.6.16- 1.2069_FC4-smp-i686'
make[1]: *** No rule to make target `files/webcam/pwc-10.0.11'.  Stop.
make[1]: Leaving directory `/usr/src/kernels/2.6.16-1.2069_FC4-smp-i686'
make: *** [all] Error 2

This is the correct Kernel version (as far as I can tell) and I've installed the headers using YUM:

ie. In /usr/src/

I have the following

2.6.11-1.1369_FC4-smp-i686
2.6.16-1.2069_FC4-i586
2.6.16-1.2069_FC4smp-i686
2.6.11-1.1369_FC4smp-i686
2.6.16-1.2069_FC4-smp-i686

I'm not quite sure why the latter two appear so similar (one has a '-' between FC4 and SMP and the other not).

I'm assuming that this is something to do with the makefile (?) not finding where the kernel headers are (????), though I'm not sure how to fix that.

Below is the makefile found in the file I downloaded from site mentioned:

*********************************************
#
# 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 -DXAWTV_HAS_BEEN_FIXED=1

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)

# Fix some problem with suse < 9.2 and suse >= 9.2
is_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
  endif
endif



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
*********************************************

Getting the camera to work on my desktop was one of the main reasons for upgrading versions from FC3 to 4 (and THAT was not a happy moment :)) When I realised it would work in 4 (and did on my laptop) I thought it should be just as easy. BTW, my laptop has an older Kernel and the desktop has hyperthreading (or at least I think that's what the SMP bit stands for (??)).

I posted to the mail group for Saillard but the best reply (well, only so far) was to reconfigure the 'make' file - which is what I'm seeking assistance with. I was also informed that the kernel may have broken the ability to install the module...(?) and should consider degrading to an earlier kernel (not that I now how to do that).

Any help with attempting to modify the make file and attempt to install on the machine would be most appreciated.

Regards,

Patrick



--
Registered Linux User 368634
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to