Linux forum

General discussion

please explain this error

by hpc / April 30, 2007 5:43 AM PDT

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

##############################################################################

Post a reply
Discussion is locked
You are posting a reply to: please explain this error
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: please explain this error
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
makefile is too clever
by clsgis / May 4, 2007 6:47 AM PDT

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.

Collapse -
Thank you
by hpc / May 5, 2007 5:43 AM PDT
In reply to: makefile is too clever

Hi Clsgis
Thank you for your times and advices.I downloaded another RPM and installed and the webcam works.As if" when it feels happy it works"
Thank you again,
hung

Popular Forums
icon
Computer Help 49,613 discussions
icon
Computer Newbies 10,349 discussions
icon
Laptops 19,436 discussions
icon
Security 30,426 discussions
icon
TVs & Home Theaters 20,308 discussions
icon
Windows 10 360 discussions
icon
Phones 15,802 discussions
icon
Windows 7 7,351 discussions
icon
Networking & Wireless 14,641 discussions

Tech explained

Do you know what an OLED TV is?

CNET explains how OLED technology differs from regular TVs, and what you need to know to make the right shopping decision.