Hi,

I am having trouble including v4l2 in the application I am developping with Kylix3. I have the kernel version 2.4.21 and mandrake 9.1. Both file videodev.h and videodev2.h are in the right directory (/usr/include/linux).

I got it to work with v4l by changing the videodev.h file. Or else it didn't. It now starts lik this:
#ifndef __LINUX_VIDEODEV_H
#define __LINUX_VIDEODEV_H


  //#include <linux/types.h>
  #include <linux/version.h>

  #if 0
  /*
  * v4l2 is still work-in-progress, integration planed for 2.5.x
  *   v4l2 project homepage:   http://www.thedirks.org/v4l2/
  *   patches available from:  http://bytesex.org/patches/
  */
  # define HAVE_V4L2 1
  # include <linux/videodev2.h>
  #else
  # undef HAVE_V4L2
  #endif

#ifdef __KERNEL__

  #include <linux/poll.h>
  #include <linux/devfs_fs_kernel.h>
  //#include <linux/mmap.h>

I need option from the second version, v4l2. But I am not able to include in my project. What can i do or change? Is it something in the configuration files? Do i have to load some modules, compile anything? If yes, what are the comands?


Thanx a lot for the help.


_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



-- video4linux-list mailing list Unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/video4linux-list

Reply via email to