Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
11-11-2008, 12:29 AM
#1
Senior Member
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,545
Rep:
Small error compiling modules ... for webcam?
I obtain this error message... what could it be ?
Code:
:/tmp/modules/gspca# make
make -C /lib/modules/`uname -r`/build SUBDIRS=/tmp/modules/gspca CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.25-2-686'
scripts/Makefile.build:46: *** CFLAGS was changed in "/tmp/modules/gspca/Makefile". Fix it to use EXTRA_CFLAGS. Stop.
make[1]: *** [_module_/tmp/modules/gspca] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.25-2-686'
make: *** [default] Error 2
11-11-2008, 08:26 AM
#2
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 10,003
Quote:
Originally Posted by
frenchn00b
I obtain this error message... what could it be ?
Code:
:/tmp/modules/gspca# make
make -C /lib/modules/`uname -r`/build SUBDIRS=/tmp/modules/gspca CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.25-2-686'
scripts/Makefile.build:46: *** CFLAGS was changed in "/tmp/modules/gspca/Makefile". Fix it to use EXTRA_CFLAGS. Stop.
make[1]: *** [_module_/tmp/modules/gspca] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.25-2-686'
make: *** [default] Error 2
It could be that you need to modify the makefile, and put the flag in there to use EXTRA_CFLAGS, just as the error message says......
11-11-2008, 01:10 PM
#3
Senior Member
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,545
Original Poster
Rep:
Code:
VERSION = 01.00.04
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)
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
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 \
Modules.symvers
#################
11-11-2008, 01:12 PM
#4
Senior Member
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,545
Original Poster
Rep:
is it bad if:
Code:
/lib/modules$ find /lib/modules -iname "*gspca*"
returns nothing
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 08:53 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News