<div dir="ltr">Try to uninstall all mesa packages. You should not have the directory /usr/include/GL/ .<div><br></div><div>Instead just install <span style="color:rgb(0,0,0);white-space:pre-wrap">libraspberrypi-dev  (which contains /opt/vc/include/GLES2)</span><div><font color="#000000"><span style="white-space:pre-wrap"><br></span></font><div><font color="#000000"><span style="white-space:pre-wrap">(Passing --disable-opengl should prevent from using </span></font>/usr/include/GL path )</div></div></div><div><br></div><div>Cheers</div><div>Julien</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 10 September 2014 07:40, Michael Tyson <span dir="ltr"><<a href="mailto:michael@tyson.id.au" target="_blank">michael@tyson.id.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">It is:<div><br></div><div>./configure --build=arm-linux-gnueabihf --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --libexecdir=${prefix}/lib/gst-plugins-bad1.0 --srcdir=. --disable-maintainer-mode --disable-dependency-tracking --disable-silent-rules --libdir=${prefix}/lib/arm-linux-gnueabihf --disable-examples --enable-DEBUG --enable-debug --enable-experimental --with-package-name=GStreamer Bad Plugins (unknown Debian derivative) --with-package-origin=<a href="http://packages.qa.debian.org/gst-plugins-bad1.0" target="_blank">http://packages.qa.debian.org/gst-plugins-bad1.0</a> --disable-pvr --enable-gtk-doc</div><div><br></div><div>That’s with my NEED_GLES2 modification which, you’re right, should have been a —enable-gles2 flag.</div><div><br></div><div>Here’s config.log: <a href="http://cl.ly/0K1P0w1t0I2Y" target="_blank">http://cl.ly/0K1P0w1t0I2Y</a></div><div><br><div><div>
<div style="word-wrap:break-word"></div><div>Thank you!</div>

</div>
<br><div><span class=""><div>On 9 Sep 2014, at 10:37 am, Matthew Waters <<a href="mailto:ystreet00@gmail.com" target="_blank">ystreet00@gmail.com</a>> wrote:</div><br></span><blockquote type="cite"><div style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span class="">On 08/09/14 13:59, Michael Tyson wrote:<br></span><blockquote type="cite"><span class="">Thanks Julien!<br><br>No go, I’m afraid - it reports "ERROR: from element /GstPipeline:pipeline0/GstGLImageSink:glimagesink0: Cannot create context with the user requested api (gles2).  We have support for (opengl opengl3)”<br><br>Trying with the two suggested apis gives the same error as previously (“EGL_BAD_PARAMETER”), unsurprisingly.<br><br></span>I did notice that the configure script reports "checking whether it is possible to include both GL and GLES2 headers… no”, and then disabled GLES2 ("Disabling GL|ES 2.0 support”).  Adding "NEED_GLES2=yes” to <a href="http://configure.ac:719" target="_blank">configure.ac:719</a> causes configure to disable GL instead ("Disabling Desktop GL support”), but unfortunately the build fails on target libgstgl_dispmanx_la-gstglwindow_dispmanx_egl.lo with the following:<span> </span><a href="http://goo.gl/iQ5ngZ" target="_blank">http://goo.gl/iQ5ngZ</a>("error: conflicting types for ‘GLintptr’”, etc).<br></blockquote><div><div class="h5"><br>What's you're ./configure invocation?<br><br>Also, could you attach the config.log file that is generated?<br><br>All of the different parts are protected by --{en,dis}able- flags.  It's<br>simply a matter of choosing the right invocation.<br>The --enable-gles2 flag will set NEED_GLES2=yes for you without having<br>to modify <a href="http://configure.ac" target="_blank">configure.ac</a>.<br><br><blockquote type="cite">Any ideas for an immediate fix?<br><br>Cheers,<br>Michael<br><br><br><br>On 5 Sep 2014, at 6:33 pm, Julien Isorce <<a href="mailto:julien.isorce@gmail.com" target="_blank">julien.isorce@gmail.com</a>> wrote:<br><br><blockquote type="cite">Hi,<br><br>You also need to set GST_GL_API=gles2<br><br>See <a href="http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/gst-libs/gst/gl?id=707cb5800490a654e16ca683e104c1fb9ea3eb87" target="_blank">http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/gst-libs/gst/gl?id=707cb5800490a654e16ca683e104c1fb9ea3eb87</a><br><br>If you want to avoid setting those env var, you can disable unwanted support at build time, for example:  --disable-opengl --disable-wayland --disable-x11 --disable-glx ...<br>and just enable --enable-gles2 --enable--dispmanx --enable-egl ...<br><br>On rpi I think you may just need to uninstall mesa packages, and just install the rpi bcm dev packages that put egl/gles2 headers in /opt/vc/include directory (can't remember the exact package name). Also if you may want to uninstall wayland package to avoid building the gstgl support (so no need to pass --disable-wayland explicitly)<br><br>Cheers<br>Julien<br><br><br>On 5 September 2014 08:20, Sebastian Dröge <<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>> wrote:<br>On Fr, 2014-09-05 at 17:00 +1000, Michael Tyson wrote:<br><blockquote type="cite">Cheers for the reply Sebastian!<br><br>Alas, nope - here’s what it says ("Failed to bind OpenGL API: EGL_BAD_PARAMETER”):<br>[...]<br></blockquote>Can you file a bug about that at <a href="http://bugzilla.gnome.org" target="_blank">http://bugzilla.gnome.org</a> against<br>GStreamer, and attach a debug log with GST_DEBUG=*gl*:6 ?<br><br>--<br>Sebastian Dröge, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>Expertise, Straight from the Source<br><br>_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br><br><br>_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br></blockquote><br></blockquote><br><br>_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></div></div></div></blockquote></div><br></div></div></div><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>