LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 12-30-2006, 09:18 PM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora Core 16 (Gnome 3.2) 64 bit RAID0 + LUKS, Backtrack5r1, Gentoo Hardened
Posts: 1,152

Rep: Reputation: 46
compiling a webcam kernel module


I was following the directions here, but with no luck.
http://qce-ga.sourceforge.net/#install

Code:
[root@localhost qc-usb-0.6.5]# ls
APPLICATIONS                  Makefile         qcweb-info.txt
COPYING                       Modules.symvers  quickcam.h
CREDITS                       qc-driver.c      quickcam.sh
CVS                           qc-formats.c     README.qce
debug.sh                      qc-hdcs.c        show.c
FAQ                           qc-memory.c      testquickcam
freeshm.sh                    qc-memory.h      TODO
linux-2.4.20-quickcam.patch   qc-mjpeg.c       videodev2.h
linux-2.6.18.patch            qc-pb0100.c      videodevfix.h
linux-2.6.7-quickcam.patch    qcset.c
linux-2.6.8.1-quickcam.patch  qc-vv6410.c
[root@localhost qc-usb-0.6.5]# 
[root@localhost qc-usb-0.6.5]# ls -l /lib/modules/           (the website says there should be symbolic links here, but instead, they are directories)
total 16
drwxr-xr-x 6 root root 4096 Jan  1  2003 2.6.18-1.2798.fc6
drwxr-xr-x 7 root root 4096 Dec 27 22:46 2.6.18-1.2868.fc6
[root@localhost qc-usb-0.6.5]# ls -l /lib/modules/2.6.18-1.2868.fc6/
total 1268
lrwxrwxrwx 1 root root     47 Dec 21 05:56 build -> ../../../usr/src/kernels/2.6.18-1.2868.fc6-i686
drwxr-xr-x 3 root root   4096 Dec 21 05:58 extra
drwxr-xr-x 9 root root   4096 Dec 21 05:56 kernel
drwxr-xr-x 2 root root   4096 Dec 27 22:51 misc
-rw-r--r-- 1 root root 257440 Dec 21 05:58 modules.alias
-rw-r--r-- 1 root root     69 Dec 21 05:58 modules.ccwmap
-rw-r--r-- 1 root root 270171 Dec 21 05:58 modules.dep
-rw-r--r-- 1 root root    813 Dec 21 05:58 modules.ieee1394map
-rw-r--r-- 1 root root    375 Dec 21 05:58 modules.inputmap
-rw-r--r-- 1 root root  12159 Dec 21 05:58 modules.isapnpmap
-rw-r--r-- 1 root root     74 Dec 21 05:58 modules.ofmap
-rw-r--r-- 1 root root 197569 Dec 21 05:58 modules.pcimap
-rw-r--r-- 1 root root    841 Dec 21 05:58 modules.seriomap
-rw-r--r-- 1 root root 114609 Dec 21 05:58 modules.symbols
-rw-r--r-- 1 root root 303364 Dec 21 05:58 modules.usbmap
lrwxrwxrwx 1 root root      5 Dec 21 05:56 source -> build
drwxr-xr-x 2 root root   4096 Dec 15 16:55 updates
drwxr-xr-x 2 root root   4096 Dec 15 16:55 weak-updates
[root@localhost qc-usb-0.6.5]# make all
make -C "/lib/modules/2.6.18-1.2868.fc6/build" SUBDIRS="/BACKUP/DOWNLOADS/WEBCAM DRIVER/qc-usb-0.6.5" modules V=1 USER_OPT="-DHAVE_UTSRELEASE_H=1"
make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2868.fc6-i686'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (           \
        echo;                                                           \
        echo "  ERROR: Kernel configuration is invalid.";               \
        echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";      \
        echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
        echo;                                                           \
        /bin/false)
mkdir -p /BACKUP/DOWNLOADS/WEBCAM/.tmp_versions
rm -f /BACKUP/DOWNLOADS/WEBCAM/.tmp_versions/*
make -f scripts/Makefile.build obj=/BACKUP/DOWNLOADS/WEBCAM
scripts/Makefile.build:17: /BACKUP/DOWNLOADS/WEBCAM/Makefile: No such file or directory
make[2]: *** No rule to make target `/BACKUP/DOWNLOADS/WEBCAM/Makefile'.  Stop.
make[1]: *** [_module_/BACKUP/DOWNLOADS/WEBCAM] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2868.fc6-i686'
make: *** [quickcam.ko] Error 2
[root@localhost qc-usb-0.6.5]# make clean;make oldconfig && make prepare
rm -f *.o qcset show *~ .\#* .*.cmd *.mod.c *.ko
rm -rf .tmp_versions
make: *** No rule to make target `oldconfig'.  Stop.
[root@localhost qc-usb-0.6.5]# make all
make -C "/lib/modules/2.6.18-1.2868.fc6/build" SUBDIRS="/BACKUP/DOWNLOADS/WEBCAM DRIVER/qc-usb-0.6.5" modules V=1 USER_OPT="-DHAVE_UTSRELEASE_H=1"
make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2868.fc6-i686'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (           \
        echo;                                                           \
        echo "  ERROR: Kernel configuration is invalid.";               \
        echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";      \
        echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
        echo;                                                           \
        /bin/false)
mkdir -p /BACKUP/DOWNLOADS/WEBCAM/.tmp_versions
rm -f /BACKUP/DOWNLOADS/WEBCAM/.tmp_versions/*
make -f scripts/Makefile.build obj=/BACKUP/DOWNLOADS/WEBCAM
scripts/Makefile.build:17: /BACKUP/DOWNLOADS/WEBCAM/Makefile: No such file or directory
make[2]: *** No rule to make target `/BACKUP/DOWNLOADS/WEBCAM/Makefile'.  Stop.
make[1]: *** [_module_/BACKUP/DOWNLOADS/WEBCAM] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2868.fc6-i686'
make: *** [quickcam.ko] Error 2
[root@localhost qc-usb-0.6.5]# rpm -qa | grep gcc
libgcc-4.1.1-30
gcc-4.1.1-30
gcc-c++-4.1.1-30
[root@localhost qc-usb-0.6.5]# uname -a
Linux localhost.localdomain 2.6.18-1.2868.fc6 #1 SMP Fri Dec 15 17:32:54 EST 2006 i686 athlon i386 GNU/Linux
[root@localhost qc-usb-0.6.5]#
 
Old 12-30-2006, 09:55 PM   #2
aherrys
Member
 
Registered: Jul 2003
Posts: 57

Rep: Reputation: 15
May be you need to compile in the support for webcam into your kernel

CONFIG_VIDEO_DEV=m
CONFIG_VIDEO_PROC_FS=y
CONFIG_VIDEO_BT848=m
CONFIG_VIDEO_PMS=m
CONFIG_VIDEO_BWQCAM=m
CONFIG_VIDEO_CQCAM=m
CONFIG_VIDEO_W9966=m
CONFIG_VIDEO_CPIA=m
CONFIG_VIDEO_CPIA_USB=m
 
Old 12-30-2006, 10:50 PM   #3
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora Core 16 (Gnome 3.2) 64 bit RAID0 + LUKS, Backtrack5r1, Gentoo Hardened
Posts: 1,152

Original Poster
Rep: Reputation: 46
I was told that the kernel has webcam support builtin just like it does support for network cards, sound cards, etc. Any other help?
 
Old 12-31-2006, 05:44 PM   #4
PFudd
LQ Newbie
 
Registered: Mar 2004
Posts: 17

Rep: Reputation: 2
Found this particular problem

This will let you find version.h:

Code:
cd /lib/modules/2.6.18-1.2868.fc6
rm build
ln -s ../../../usr/src/kernels/2.6.18-1.2868.fc6-i586/ build
And try again. The '/' was missing on the end of the symbolic link. Try 'ls -lL' before and after to see what gets fixed.

However, I'm stuck on the next step trying to get /usr/src/kernels/2.6.18-1.2868.fc6-i586/include/linux/config.h created! Typing

Code:
cd /usr/src/kernels/2.6.18-1.2868.fc6-i586
make dep
Says "*** Warning: make dep is unnecessary now." !!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems compiling zr364xx module for USB webcam rhauff Linux - Hardware 4 08-10-2006 07:20 AM
compiling lirc kernel module as a .ko not .o bartoni Linux - General 0 03-25-2006 05:15 AM
compiling single kernel module only evil_empire Linux - Software 2 01-31-2006 12:44 AM
compiling a kernel module for a different target akaBeaVis Linux - Software 10 06-09-2003 12:47 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 05:31 PM


All times are GMT -5. The time now is 12:38 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration