Re: building mythtv 0.24 on el5, status and instructions

Andy Burns <[email protected]>
Newsgroups gmane.linux.redhat.rpm.atrpms.devel
Message-ID <[email protected]>
On 21 November 2010 18:46, Andy Burns <[email protected]> wrote:

> OK getting somewhere, but wondering if my header files are screwed up

I didn't appreciate the v4l headers came from an atrpms package rather
than a centos/rhel package

attached are two patches that get large parts of myth24 build
(executables such as mythavtest,  mythcommflag, mythvosd, mythjobqueue
and mythfrontend fail with the sqlite errors I mentioned)

There may be other problems.
andyv4l.patch (application/octet-stream, 416 B)
--- /usr/include/v4l/linux/videodev2.h	2010-03-28 03:09:47.000000000 +0100
+++ /usr/include/v4l/linux/videodev2.h.new	2010-11-21 19:18:26.000000000 +0000
@@ -58,10 +58,11 @@
 
 #ifdef __KERNEL__
 #include <linux/time.h>     /* need struct timeval */
+#include <linux/compiler.h>
 #else
 #include <sys/time.h>
+#define __user
 #endif
-#include <linux/compiler.h>
 #include <linux/ioctl.h>
 #include <linux/types.h>
andymyth.patch (application/octet-stream, 754 B)
--- mythtv-0.24/libs/libmythtv/analogsignalmonitor.cpp.org	2010-11-21 19:10:53.000000000 +0000
+++ mythtv-0.24/libs/libmythtv/analogsignalmonitor.cpp	2010-11-21 19:11:13.000000000 +0000
@@ -6,6 +6,7 @@
 #include <sys/ioctl.h>
 #include <poll.h>
 
+#include <linux/videodev2.h>
 #include <linux/videodev.h>
 
 #include "mythverbose.h"
--- mythtv-0.24/libs/libmythtv/libmythtv.pro.org	2010-11-21 19:11:29.000000000 +0000
+++ mythtv-0.24/libs/libmythtv/libmythtv.pro	2010-11-21 19:12:11.000000000 +0000
@@ -471,7 +471,7 @@
     using_v4l {
         HEADERS += v4lchannel.h                analogsignalmonitor.h
         SOURCES += v4lchannel.cpp              analogsignalmonitor.cpp
-
+	INCLUDEPATH += /usr/include/v4l
         DEFINES += USING_V4L
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.