This makefile is designed to let you unpack the tarfile anywhere, and add the driver into your current kernel that you built from source on the current machine. It uses a "uname -r" command to find out the kernel revision that's running. Then it assumes a directory (folder, if you prefer) where you built your kernel already exists. named
/usr/src/<your kernel version>/
and it assumes your kernel modules were installed into another directory
/lib/modules/<your kernel version>/
Unfortunately, it doesn't bother to check those assumptions. It just dives right in. Since you didn't build your own kernel, you don't have that source directory. So the make bombs out.
The webcam manufacturer should have made clear that he doesn't expect you, the retail purchaser of a webcam and SUSE, to be able to build and install this driver. He published development code in hopes that the engineers responsible for your GNU+X+Linux distribution might finish whatever debugging it needs and put it in their next release.
Building and installing and running a kernel from source is easier than it sounds. If you're interested enough, follow SUSE's instructions to do that. Then try running that make again. It might just work. If you were told there was a working, ready to use Linux driver when you bought the camera, you have grounds to take it back for a refund or at least store credit.
Things that could go wrong: you should start with SUSE's kernel source package. That way if your system depends on something that's different between SUSE and kernel.org, it will still work. But those differences might break this third party driver. Probably not.
Hi everyone
I tried to install a webcam vimicro (works in windows )into a pc with sempron 2600+ 512 MB memory in Linux Suse 10.2 kernel 2.6.18.8-0.1-default I found on the web the driver for this webcam gspcav1-2007426 I downloaded it to my pc and untar it into a folder i went to this folder as root and got this results Please explain
Thank you for your times and advices
hung
inux-3fyf:/home/hung # cd gspcav1-20070426
linux-3fyf:/home/hung/gspcav1-20070426 # make
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/hung/gspcav1-20070426 CC=cc modules
make[1]: Entering directory `/usr/src/linux-2.6.18.8-0.1-obj/i386/default'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/usr/src/linux-2.6.18.8-0.1-obj/i386/default'
make: *** [default] Error 2
linux-3fyf:/home/hung/gspcav1-20070426 # makefile
-bash: makefile: command not found
linux-3fyf:/home/hung/gspcav1-20070426 # make install
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx.ko
rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/gspca.ko
install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
install: cannot stat `gspca.ko': No such file or directory
make: *** [install] Error 1
this is the makefile that come with this driver
VERSION = 01.00.16
DEFINES =
###
# The following flags enable experimental features.
# By default, these are enabled for development versions of the driver, and
# disabled for release versions.
# Optional: Enable driver debugging
DEFINES += -DGSPCA_ENABLE_DEBUG
# Optional: Enable direct register read/write for PAC207 development
#DEFINES += -DGSPCA_ENABLE_REGISTERPLAY
###
# The following flags enable features that aren't yet implemented, and
# therefore are disabled by default.
# Optional: Enable compression
DEFINES += -DGSPCA_ENABLE_COMPRESSION
###
# Rest of Makefile follows here. You probably won't need to touch this.
# Setup defines
DEFINES += -DCONFIG_USB_GSPCA_MODULE=1 -DMODULE -D__KERNEL__
DEFINES += -DVID_HARDWARE_GSPCA=0xFF -DGSPCA_VERSION=\"$(VERSION)\"
ifneq ($(KERNELRELEASE),) # We were called by kbuild
CFLAGS += $(DEFINES)
obj-m += gspca.o
gspca-objs := gspca_core.o decoder/gspcadecoder.o
else # We were called from command line
KERNEL_VERSION = `uname -r`
KERNELDIR := /lib/modules/$(KERNEL_VERSION)/build
PWD := $(shell pwd)>>>Is this my password or root password?>>>>>
MODULE_INSTALLDIR = /lib/modules/$(KERNEL_VERSION)/kernel/drivers/usb/media/
MODULE_INSTALLDIR2 = /lib/modules/$(KERNEL_VERSION)/kernel/drivers/media/video/
default:
$(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) CC=$(CC) modules
<<<<<<what does the dollar sign mean/>>>>>
install:
mkdir -p $(MODULE_INSTALLDIR)
rm -f $(MODULE_INSTALLDIR)spca5xx.ko
rm -f $(MODULE_INSTALLDIR2)gspca.ko
install -c -m 0644 gspca.ko $(MODULE_INSTALLDIR)
/sbin/depmod -ae
uninstall:
rm -f $(MODULE_INSTALLDIR)gspca.ko
/sbin/depmod -aq
endif
##############################################################################
# OTHER TARGETS
##############################################################################
clean:
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
.gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
*.symvers *.err
##############################################################################

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic