Compiling gst-plugins-gl (was re: Offscreen rendering and SDL)

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling gst-plugins-gl (was re: Offscreen rendering and SDL)

Eamon Caddigan
From Andrey Nechypurenko andreynech at googlemail.com :

> > application (actually, it's a pygame application, but I'm writing a
> > module in C, so I can use the standard API for this). Using code
> > snippets I found online, I've managed to create a window using X11 and
> > can send the video there, but this approach makes it impossible to
> > draw graphics over the video.
>
> One possible way would be to create the OpenGL texture with decoded
> frame. Than you can do whatever you want to compose the video with
> your own graphics. For example, you can map the texture on the plane
> in background and make your own drawing in front of this plane (in
> foreground).
>
> There are at least two ways to get decoded video frame as a texture.
> The first one one is to use elements from gst-plugins-gl [1]. You can
> take a look at corresponding examples [2] (there is also SDL example
> over there). The second one is to use fakesink element with it's
> hand-off mechanism to get raw decoded frame.

Thanks for the pointers!

Now I have a new question: I'm trying to compile gst-plugins-gl, and I get
errors stemming from the lack of a 'config.h'. Looks like it's
necessary to have one,
gstopengl.c is expecting a lot of preprocessor definitions. I'm
building on linux.

Thanks,
Eamon
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling gst-plugins-gl (was re: Offscreen rendering and SDL)

David Röthlisberger
On 23 Aug 2012, at 21:45, Eamon Caddigan wrote:
> I'm trying to compile gst-plugins-gl, and I get
> errors stemming from the lack of a 'config.h'.

"config.h" is usually generated by the "configure" script -- have you run that?

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling gst-plugins-gl (was re: Offscreen rendering and SDL)

Eamon Caddigan
On Fri, Aug 24, 2012 at 12:16 AM, David Röthlisberger <[hidden email]> wrote:
> On 23 Aug 2012, at 21:45, Eamon Caddigan wrote:
>> I'm trying to compile gst-plugins-gl, and I get
>> errors stemming from the lack of a 'config.h'.
>
> "config.h" is usually generated by the "configure" script -- have you run that?

Thanks for the reply! I grabbed the code off of git, and was surprised
that it didn't use autoconf. I'm following the directions for cmake,
which is new to me.

-Eamon
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling gst-plugins-gl (was re: Offscreen rendering and SDL)

Stefan Sauer
On 08/24/2012 07:01 PM, Eamon Caddigan wrote:
> On Fri, Aug 24, 2012 at 12:16 AM, David Röthlisberger <[hidden email]> wrote:
>> On 23 Aug 2012, at 21:45, Eamon Caddigan wrote:
>>> I'm trying to compile gst-plugins-gl, and I get
>>> errors stemming from the lack of a 'config.h'.
>> "config.h" is usually generated by the "configure" script -- have you run that?
> Thanks for the reply! I grabbed the code off of git, and was surprised
> that it didn't use autoconf. I'm following the directions for cmake,
> which is new to me.
After cloning from git, run ./autogen.sh <options>, options are the same
as in configure. autgogen.sh will bootstap the build and run configure
afterwards with the given options.

Stefan
>
> -Eamon
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling gst-plugins-gl (was re: Offscreen rendering and SDL)

Tim-Philipp Müller-2
In reply to this post by Eamon Caddigan
On Fri, 2012-08-24 at 10:01 -0700, Eamon Caddigan wrote:

> >> I'm trying to compile gst-plugins-gl, and I get
> >> errors stemming from the lack of a 'config.h'.

Could you describe the exact steps you took from git clone until you got
the error? That way we don't have to guess what you may or may not have
done :)

> > "config.h" is usually generated by the "configure" script -- have you run that?
>
> Thanks for the reply! I grabbed the code off of git, and was surprised
> that it didn't use autoconf. I'm following the directions for cmake,
> which is new to me.

It does use autoconf.

  git clone git://anongit.freedesktop.org/gstreamer/gst-plugins-gl
  cd gst-plugins-gl
  git checkout -b 0.10 origin/0.10
  ./autogen.sh; make

Should work.

Cheers
 -Tim

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling gst-plugins-gl (was re: Offscreen rendering and SDL)

Eamon Caddigan
On Fri, Aug 24, 2012 at 10:36 AM, Tim-Philipp Müller <[hidden email]> wrote:
>
>   git clone git://anongit.freedesktop.org/gstreamer/gst-plugins-gl
>   cd gst-plugins-gl
>   git checkout -b 0.10 origin/0.10
>   ./autogen.sh; make

Thanks for the reply!

Using autogen seems to get me closer, but I get the following error:

[snip]
+ running aclocal -I m4 -I common/m4 ...
+ running autoheader ...
+ running autoconf ...
configure.ac:64: error: possibly undefined macro: AS_PROG_OBJC
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

-Eamon
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling gst-plugins-gl (was re: Offscreen rendering and SDL)

Tim-Philipp Müller-2
On Fri, 2012-08-24 at 10:43 -0700, Eamon Caddigan wrote:

> On Fri, Aug 24, 2012 at 10:36 AM, Tim-Philipp Müller <[hidden email]> wrote:
> >
> >   git clone git://anongit.freedesktop.org/gstreamer/gst-plugins-gl
> >   cd gst-plugins-gl
> >   git checkout -b 0.10 origin/0.10
> >   ./autogen.sh; make
>
> Thanks for the reply!
>
> Using autogen seems to get me closer, but I get the following error:
>
> [snip]
> + running aclocal -I m4 -I common/m4 ...
> + running autoheader ...
> + running autoconf ...
> configure.ac:64: error: possibly undefined macro: AS_PROG_OBJC
>       If this token and others are legitimate, please use m4_pattern_allow.
>       See the Autoconf documentation.

Is that with the 0.10 branch ?

I get this error as well, but only with the master branch (which is
currently not in use, pending 0.11 enablement/patch review).

Cheers
 -Tim

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling gst-plugins-gl (was re: Offscreen rendering and SDL)

Eamon Caddigan
On Aug 24, 2012, at 11:08 AM, Tim-Philipp Müller <[hidden email]> wrote:

> On Fri, 2012-08-24 at 10:43 -0700, Eamon Caddigan wrote:
>> On Fri, Aug 24, 2012 at 10:36 AM, Tim-Philipp Müller <[hidden email]> wrote:
>>>
>>>  git clone git://anongit.freedesktop.org/gstreamer/gst-plugins-gl
>>>  cd gst-plugins-gl
>>>  git checkout -b 0.10 origin/0.10
>>>  ./autogen.sh; make
>>
>> Thanks for the reply!
>>
>> Using autogen seems to get me closer, but I get the following error:
>>
>> [snip]
>> + running aclocal -I m4 -I common/m4 ...
>> + running autoheader ...
>> + running autoconf ...
>> configure.ac:64: error: possibly undefined macro: AS_PROG_OBJC
>>      If this token and others are legitimate, please use m4_pattern_allow.
>>      See the Autoconf documentation.
>
> Is that with the 0.10 branch ?
>
> I get this error as well, but only with the master branch (which is
> currently not in use, pending 0.11 enablement/patch review).

Ah, that was the problem. Thanks! Seems to be working now!
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel