Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: jls on March 29, 2009, 06:08:35 AM

Title: 'VIDEO_MODE_NTSC' undeclared when compilig
Post by: jls on March 29, 2009, 06:08:35 AM
I'm tryng to compile the gspca driver for my webcam, but I got this error:
'VIDEO_MODE_NTSC' undeclared.
I read that I have to enable Video For Linux 1 in the kernel
How? >:(
Title: Re: 'VIDEO_MODE_NTSC' undeclared when compilig
Post by: softwaregurl on March 30, 2009, 12:24:19 PM
try the v4l2-media...tce I think it has v4l1 compatibility.  If not let me know.  It may be a file I missed.

-SG
Title: Re: 'VIDEO_MODE_NTSC' undeclared when compilig
Post by: jls on March 31, 2009, 09:18:00 AM
when I tryed to compile I  had video4linux... installed
Title: Re: 'VIDEO_MODE_NTSC' undeclared when compilig
Post by: softwaregurl on March 31, 2009, 12:05:48 PM
could you give a site and download link?  My only thought is that what your compiling isn't looking in /usr/local.
Title: Re: 'VIDEO_MODE_NTSC' undeclared when compilig
Post by: jls on April 01, 2009, 06:03:16 AM
stable version:
http://mxhaard.free.fr/download.html (http://mxhaard.free.fr/download.html)
development version:
http://linuxtv.org/hg/~jfrancois/gspca/archive/tip.tar.bz2 (http://linuxtv.org/hg/~jfrancois/gspca/archive/tip.tar.bz2)
Title: Re: 'VIDEO_MODE_NTSC' undeclared when compilig
Post by: softwaregurl on April 05, 2009, 01:41:50 AM
this is from the second link onhttp://mxhaard.free.fr/download.html (http://mxhaard.free.fr/download.html)
Where is linux/config.h?
Code: [Select]
advcomp       bash    compiletc  expat2      glib1  graphics-libs-1  gtk1     linux-headers-2.6.26  perl_xml  beaver  coreutils  fontconfig  glib2  gtk+-2           libxml2  minefield             zzdata
are loaded.
Code: [Select]
tc@box:/tmp/extension/spca5xx-v4l1goodbye$ sudo make
   Building SPCA5XX driver for 2.5/2.6 kernel.
   Remember: you must have read/write access to your kernel source tree.
make -C /lib/modules/`uname -r`/build SUBDIRS=/tmp/extension/spca5xx-v4l1goodbye CC=cc modules
make[1]: Entering directory `/usr/local/src/linux-headers-2.6.26'
  CC [M]  /tmp/extension/spca5xx-v4l1goodbye/drivers/usb/spca5xx.o
/tmp/extension/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:39:26: error: linux/config.h: No such file or directory
In file included from /tmp/extension/spca5xx-v4l1goodbye/drivers/usb/spca5xx.c:851:
... many lines of errors here...
make[2]: *** [/tmp/extension/spca5xx-v4l1goodbye/drivers/usb/spca5xx.o] Error 1
make[1]: *** [_module_/tmp/extension/spca5xx-v4l1goodbye] Error 2
make[1]: Leaving directory `/usr/local/src/linux-headers-2.6.26'
make: *** [default] Error 2
I do have read/write access to my kernel source tree.