Commit a8742329 authored by Yann Dirson's avatar Yann Dirson

Upgrade v4l videodev.h includes.

The linux kernel used to provide <linux/videodev.h>, but recent versions do
not any more.  libv4l-dev provides a replacement header.
parent 12b996ec
Cross compling from sources
===========================
* Make sure you have libqt4-dev installed on your host PC
* Make sure you have installed on your host PC: libqt4-dev, libv4l-dev
* You can also do fetch all build dependecies for qt:
......
#include <sys/types.h>
#include <sys/time.h>
#include <linux/videodev.h>
#include <libv4l1-videodev.h>
#include <linux/videodev2.h>
int main(int, char**)
......
......@@ -29,7 +29,7 @@
#include <sys/ioctl.h>
#include <unistd.h>
#include <fcntl.h>
#include <linux/videodev.h>
#include <libv4l1-videodev.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
......
......@@ -31,7 +31,7 @@
#include <string.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <linux/videodev.h>
#include <libv4l1-videodev.h>
#ifdef HAVE_V4L2
......
......@@ -29,7 +29,7 @@
#include <string.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <linux/videodev.h>
#include <libv4l1-videodev.h>
#include <custom.h>
#include <QtCore>
......
......@@ -23,7 +23,7 @@
#include <sys/ioctl.h>
#include <fcntl.h>
#include <unistd.h>
#include <linux/videodev.h>
#include <libv4l1-videodev.h>
#include <sys/soundcard.h>
#include <custom.h>
#include <QSettings>
......
......@@ -27,7 +27,7 @@
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <linux/videodev.h>
#include <libv4l1-videodev.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
......
......@@ -21,7 +21,7 @@
#define CAMERA_H
#include "gfxcanvas.h"
#include <linux/videodev.h>
#include <libv4l1-videodev.h>
class Camera : public QObject, public GfxCanvasWindow, public GfxClock
{
......
......@@ -422,7 +422,7 @@ void Still::setValue(quint32 id, int value)
}
#endif /* QTOPIA_HAVE_V4L2 */
#include <linux/videodev.h>
#include <libv4l1-videodev.h>
V4L1Preview::V4L1Preview(V4L1Webcam* w) : wc(w)
{
......
......@@ -29,7 +29,7 @@
#include <string.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <linux/videodev.h>
#include <libv4l1-videodev.h>
#include <custom.h>
#include <QtCore>
......@@ -39,7 +39,7 @@
#include <qcameratools.h>
#ifdef QTOPIA_HAVE_V4L2
#include <linux/videodev2.h>
class V4L2Webcam;
class Preview : public QCameraPreviewCapture
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment