[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mythtv-dev
Subject:    Re: [mythtv] MythTV Raspberry Pi2 frontend testers
From:       Thomas Mashos <thomas () mashos ! com>
Date:       2015-11-30 20:14:24
Message-ID: CAMtSsR2r2S=qWjO=zzWYOVBbnvpe_pROENVD66_DcJ+Jihh3Tw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Sun, Nov 29, 2015 at 1:39 AM Lawrence Rust <lvr@softsystem.co.uk> wrote:

> On Sat, 2015-11-28 at 20:04 +0000, Thomas Mashos wrote:
> [snip]
> > I think we're getting closer. It's finding everything now but still
> failing
> > on the build. Looks like it's failing on videoout_omx.o. Build snippet
> > below. Full build log at
> > 
> https://launchpadlibrarian.net/227870406/buildlog_ubuntu-wily-armhf.mythtv_2%3A0.27.5%2Bfixes.20151128.54a9cda-0ubuntu1_BUILDING.txt.gz
> 
> > 
> > In file included from /opt/vc/include/interface/vcos/vcos.h:116:0,
> > from
> /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
> > from /opt/vc/include/bcm_host.h:50,
> > from videoout_omx.cpp:14:
> > /opt/vc/include/interface/vcos/pthreads/vcos_platform.h: In function
> > 'void vcos_event_signal(VCOS_EVENT_T*)':
> > /opt/vc/include/interface/vcos/pthreads/vcos_platform.h:535:8:
> > warning: variable 'ok' set but not used [-Wunused-but-set-variable]
> > int ok = 0;
> > ^
> > videoout_omx.cpp: In member function 'virtual bool
> > VideoOutputOMX::CanVisualise(AudioPlayer*, MythRender*)':
> > videoout_omx.cpp:762:69: error: conditional expression between
> > distinct pointer types 'MythRenderEGL*' and 'MythRender*' lacks a cast
> > return VideoOutput::CanVisualise(audio, m_context ? m_context :
> render);
> > ^
> > videoout_omx.cpp: In member function 'virtual bool
> > VideoOutputOMX::SetupVisualisation(AudioPlayer*, MythRender*, const
> > QString&)':
> > videoout_omx.cpp:770:33: error: conditional expression between
> > distinct pointer types 'MythRenderEGL*' and 'MythRender*' lacks a cast
> > m_context ? m_context : render, name);
> > ^
> > videoout_omx.cpp: In member function 'virtual QStringList
> > VideoOutputOMX::GetVisualiserList()':
> > videoout_omx.cpp:777:49: error: invalid use of incomplete type 'class
> > MythRenderEGL'
> > VideoVisual::GetVisualiserList(m_context->Type()) :
> > ^
> > In file included from videoout_omx.cpp:1:0:
> > videoout_omx.h:14:7: note: forward declaration of 'class MythRenderEGL'
> > class MythRenderEGL;
> > ^
> > Makefile:7130: recipe for target 'videoout_omx.o' failed
> > make[4]: *** [videoout_omx.o] Error 1
> 
> Hi Thomas,
> 
> Two problems:
> 
> 1. The code that you have is out of date.  I recently fixed a problem
> with videoout_omx.cpp when building without OpenGLES2.
> 
> 2. It appears that the macro USING_OPENGLES is not defined, which
> happens if MythTV's configure script doesn't detect Qt's OpenGL support
> correctly.  There are several patches to 'configure' in my
> fixes-0.27-rpi branch that handle this.  Maybe you are building against
> a version of Qt without OpenGLES2 support?
> 
> To confirm this, add the following to the top of videoout_omx.cpp:
> 
> #ifndef USING_OPENGLES
> #error USING_OPENGLES undefined
> #endif
> 
> This will error if USING_OPENGLES is undefined.  The code should be
> built with OpenGLES - it hasn't been tested without.
> 
> -- Lawrence Rust
> 
> 
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-dev
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org



Hi Lawrence,

Thanks for the pointers. I'm now including libgles2-mesa-dev which
hopefully will resolve that. I didn't see any qt specific packages for
gles2.

I was using older code. The reason being is that I was pulling down your
repo, making a patch from your commits and then integrating that into our
build scripts. I've now created a new patch from all of your commits and
I'm applying that. We'll see what happens with that build here
https://launchpad.net/~mythbuntu/+archive/ubuntu/stagingpatches/+build/8359637

If it fails again with the same error I'll add in that code for you to
confirm.
-- 
Thomas Mashos


[Attachment #5 (text/html)]

<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Sun, Nov 29, 2015 \
at 1:39 AM Lawrence Rust &lt;<a \
href="mailto:lvr@softsystem.co.uk">lvr@softsystem.co.uk</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, 2015-11-28 at 20:04 +0000, \
Thomas Mashos wrote:<br> [snip]<br>
&gt; I think we&#39;re getting closer. It&#39;s finding everything now but still \
failing<br> &gt; on the build. Looks like it&#39;s failing on videoout_omx.o. Build \
snippet<br> &gt; below. Full build log at<br>
&gt; <a href="https://launchpadlibrarian.net/227870406/buildlog_ubuntu-wily-armhf.mythtv_2%3A0.27.5%2Bfixes.20151128.54a9cda-0ubuntu1_BUILDING.txt.gz" \
rel="noreferrer" target="_blank">https://launchpadlibrarian.net/227870406/buildlog_ubu \
ntu-wily-armhf.mythtv_2%3A0.27.5%2Bfixes.20151128.54a9cda-0ubuntu1_BUILDING.txt.gz</a><br>
 &gt;<br>
&gt; In file included from /opt/vc/include/interface/vcos/vcos.h:116:0,<br>
&gt;                           from \
/opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,<br> &gt;                        \
from /opt/vc/include/bcm_host.h:50,<br> &gt;                           from \
videoout_omx.cpp:14:<br> &gt; \
/opt/vc/include/interface/vcos/pthreads/vcos_platform.h: In function<br> &gt; \
&#39;void vcos_event_signal(VCOS_EVENT_T*)&#39;:<br> &gt; \
/opt/vc/include/interface/vcos/pthreads/vcos_platform.h:535:8:<br> &gt; warning: \
variable &#39;ok&#39; set but not used [-Wunused-but-set-variable]<br> &gt;        \
int ok = 0;<br> &gt;              ^<br>
&gt; videoout_omx.cpp: In member function &#39;virtual bool<br>
&gt; VideoOutputOMX::CanVisualise(AudioPlayer*, MythRender*)&#39;:<br>
&gt; videoout_omx.cpp:762:69: error: conditional expression between<br>
&gt; distinct pointer types &#39;MythRenderEGL*&#39; and &#39;MythRender*&#39; lacks \
a cast<br> &gt;         return VideoOutput::CanVisualise(audio, m_context ? m_context \
: render);<br> &gt;                                                                   \
^<br> &gt; videoout_omx.cpp: In member function &#39;virtual bool<br>
&gt; VideoOutputOMX::SetupVisualisation(AudioPlayer*, MythRender*, const<br>
&gt; QString&amp;)&#39;:<br>
&gt; videoout_omx.cpp:770:33: error: conditional expression between<br>
&gt; distinct pointer types &#39;MythRenderEGL*&#39; and &#39;MythRender*&#39; lacks \
a cast<br> &gt;               m_context ? m_context : render, name);<br>
&gt;                                                   ^<br>
&gt; videoout_omx.cpp: In member function &#39;virtual QStringList<br>
&gt; VideoOutputOMX::GetVisualiserList()&#39;:<br>
&gt; videoout_omx.cpp:777:49: error: invalid use of incomplete type &#39;class<br>
&gt; MythRenderEGL&#39;<br>
&gt;               VideoVisual::GetVisualiserList(m_context-&gt;Type()) :<br>
&gt;                                                                           ^<br>
&gt; In file included from videoout_omx.cpp:1:0:<br>
&gt; videoout_omx.h:14:7: note: forward declaration of &#39;class \
MythRenderEGL&#39;<br> &gt;   class MythRenderEGL;<br>
&gt;            ^<br>
&gt; Makefile:7130: recipe for target &#39;videoout_omx.o&#39; failed<br>
&gt; make[4]: *** [videoout_omx.o] Error 1<br>
<br>
Hi Thomas,<br>
<br>
Two problems:<br>
<br>
1. The code that you have is out of date.   I recently fixed a problem<br>
with videoout_omx.cpp when building without OpenGLES2.<br>
<br>
2. It appears that the macro USING_OPENGLES is not defined, which<br>
happens if MythTV&#39;s configure script doesn&#39;t detect Qt&#39;s OpenGL \
support<br> correctly.   There are several patches to &#39;configure&#39; in my<br>
fixes-0.27-rpi branch that handle this.   Maybe you are building against<br>
a version of Qt without OpenGLES2 support?<br>
<br>
To confirm this, add the following to the top of videoout_omx.cpp:<br>
<br>
#ifndef USING_OPENGLES<br>
#error USING_OPENGLES undefined<br>
#endif<br>
<br>
This will error if USING_OPENGLES is undefined.   The code should be<br>
built with OpenGLES - it hasn&#39;t been tested without.<br>
<br>
-- Lawrence Rust<br>
<br>
<br>
_______________________________________________<br>
mythtv-dev mailing list<br>
<a href="mailto:mythtv-dev@mythtv.org" target="_blank">mythtv-dev@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-dev" rel="noreferrer" \
target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-dev</a><br> <a \
href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" \
target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br> MythTV Forums: \
<a href="https://forum.mythtv.org" rel="noreferrer" \
target="_blank">https://forum.mythtv.org</a></blockquote><div><br></div><div><br></div><div>Hi \
Lawrence,</div><div><br></div><div>Thanks for the pointers. I&#39;m now including \
libgles2-mesa-dev which hopefully will resolve that. I didn&#39;t see any qt specific \
packages for gles2.  </div><div><br></div><div>I was using older code. The reason \
being is that I was pulling down your repo, making a patch from your commits and then \
integrating that into our build scripts. I&#39;ve now created a new patch from all of \
your commits and I&#39;m applying that. We&#39;ll see what happens with that build \
here  <a href="https://launchpad.net/~mythbuntu/+archive/ubuntu/stagingpatches/+build/ \
8359637">https://launchpad.net/~mythbuntu/+archive/ubuntu/stagingpatches/+build/8359637</a></div><div><br></div><div>If \
it fails again with the same error I&#39;ll add in that code for you to confirm.  \
</div></div></div><div dir="ltr">-- <br></div><div dir="ltr">Thomas Mashos</div>



_______________________________________________
mythtv-dev mailing list
mythtv-dev@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-dev
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic