WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: 'VIDEO_MODE_NTSC' undeclared when compilig  (Read 5374 times)

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
'VIDEO_MODE_NTSC' undeclared when compilig
« 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? >:(
« Last Edit: March 29, 2009, 06:17:25 AM by jls_legalize »
dCore user

Offline softwaregurl

  • Suspended
  • Full Member
  • ***
  • Posts: 109
Re: 'VIDEO_MODE_NTSC' undeclared when compilig
« Reply #1 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
Old wounds that have never healed need to be re-exposed before the cure can be applied.  The cure must be available before the wound is re-exposed.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: 'VIDEO_MODE_NTSC' undeclared when compilig
« Reply #2 on: March 31, 2009, 09:18:00 AM »
when I tryed to compile I  had video4linux... installed
dCore user

Offline softwaregurl

  • Suspended
  • Full Member
  • ***
  • Posts: 109
Re: 'VIDEO_MODE_NTSC' undeclared when compilig
« Reply #3 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.
Old wounds that have never healed need to be re-exposed before the cure can be applied.  The cure must be available before the wound is re-exposed.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
dCore user

Offline softwaregurl

  • Suspended
  • Full Member
  • ***
  • Posts: 109
Re: 'VIDEO_MODE_NTSC' undeclared when compilig
« Reply #5 on: April 05, 2009, 01:41:50 AM »
this is from the second link onhttp://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.
Old wounds that have never healed need to be re-exposed before the cure can be applied.  The cure must be available before the wound is re-exposed.