How to build gstreamer ugly plugins from source

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

How to build gstreamer ugly plugins from source

gstreader
I would like to change some code in one element X in gstreamer ugly
plugin and rebuild and use it.

How I can do it?

I have gstreamer-0.10 and installed gstreamer-ugly plugin. I would
like to download only gstreamer0-10 ugly plugin source code and change
it and would like to use the new lib file. How I can do it?
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to build gstreamer ugly plugins from source

Tony Houghton
On Sun, 11 Nov 2012 12:54:33 -0800
arpita banerjee <[hidden email]> wrote:

> I would like to change some code in one element X in gstreamer ugly
> plugin and rebuild and use it.
>
> How I can do it?
>
> I have gstreamer-0.10 and installed gstreamer-ugly plugin. I would
> like to download only gstreamer0-10 ugly plugin source code and change
> it and would like to use the new lib file. How I can do it?

What OS are you using? If Linux, which distro?
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to build gstreamer ugly plugins from source

gstreader
I am using Ubuntu 11.10...

On Sun, Nov 11, 2012 at 1:54 PM, Tony Houghton <[hidden email]> wrote:

> On Sun, 11 Nov 2012 12:54:33 -0800
> arpita banerjee <[hidden email]> wrote:
>
>> I would like to change some code in one element X in gstreamer ugly
>> plugin and rebuild and use it.
>>
>> How I can do it?
>>
>> I have gstreamer-0.10 and installed gstreamer-ugly plugin. I would
>> like to download only gstreamer0-10 ugly plugin source code and change
>> it and would like to use the new lib file. How I can do it?
>
> What OS are you using? If Linux, which distro?
> _______________________________________________
> 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: How to build gstreamer ugly plugins from source

Tony Houghton
On Sun, 11 Nov 2012 22:41:16 -0800
arpita banerjee <[hidden email]> wrote:

> I am using Ubuntu 11.10...

Good, I was hoping it would be something Debian-based because that's
what I know. The easiest thing to do is patch the existing package. As
long as you don't need to use a specific version (or "the latest") that
differs from the Ubuntu version.

I don't know how much you know about using apt, dpkg etc. So if I say:
get the source package, use quilt to patch in your changes, add a
changelog entry, get the build-deps, build and install the package(s),
does that mean anything to you or do you need a lot more detail?

> On Sun, Nov 11, 2012 at 1:54 PM, Tony Houghton <[hidden email]> wrote:
> > On Sun, 11 Nov 2012 12:54:33 -0800
> > arpita banerjee <[hidden email]> wrote:
> >
> >> I would like to change some code in one element X in gstreamer ugly
> >> plugin and rebuild and use it.
> >>
> >> How I can do it?
> >>
> >> I have gstreamer-0.10 and installed gstreamer-ugly plugin. I would
> >> like to download only gstreamer0-10 ugly plugin source code and change
> >> it and would like to use the new lib file. How I can do it?
> >
> > What OS are you using? If Linux, which distro?
> > _______________________________________________
> > 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

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

Re: How to build gstreamer ugly plugins from source

gstreader
Yes, I can understand . But, if you mention the proper steps for
ugly0.10 plugin that will be great.
Thanks in advance.

On Mon, Nov 12, 2012 at 6:00 AM, Tony Houghton <[hidden email]> wrote:

> On Sun, 11 Nov 2012 22:41:16 -0800
> arpita banerjee <[hidden email]> wrote:
>
>> I am using Ubuntu 11.10...
>
> Good, I was hoping it would be something Debian-based because that's
> what I know. The easiest thing to do is patch the existing package. As
> long as you don't need to use a specific version (or "the latest") that
> differs from the Ubuntu version.
>
> I don't know how much you know about using apt, dpkg etc. So if I say:
> get the source package, use quilt to patch in your changes, add a
> changelog entry, get the build-deps, build and install the package(s),
> does that mean anything to you or do you need a lot more detail?
>
>> On Sun, Nov 11, 2012 at 1:54 PM, Tony Houghton <[hidden email]> wrote:
>> > On Sun, 11 Nov 2012 12:54:33 -0800
>> > arpita banerjee <[hidden email]> wrote:
>> >
>> >> I would like to change some code in one element X in gstreamer ugly
>> >> plugin and rebuild and use it.
>> >>
>> >> How I can do it?
>> >>
>> >> I have gstreamer-0.10 and installed gstreamer-ugly plugin. I would
>> >> like to download only gstreamer0-10 ugly plugin source code and change
>> >> it and would like to use the new lib file. How I can do it?
>> >
>> > What OS are you using? If Linux, which distro?
>> > _______________________________________________
>> > 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
>
> _______________________________________________
> 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: How to build gstreamer ugly plugins from source

Tony Houghton
On Wed, 14 Nov 2012 11:31:21 -0800
arpita banerjee <[hidden email]> wrote:

> Yes, I can understand . But, if you mention the proper steps for
> ugly0.10 plugin that will be great.
> Thanks in advance.

First make sure you have appropriate source repositories in
/etc/apt/sources.list, eg by copying every line that begins deb and
changing it to deb-src, then run sudo apt-get update. Then it's a good
idea to create a new directory and cd there. Then to get the source:

$ apt-get source gstreamer0.10-plugins-ugly

To get all the packages necessary for building it:

$ sudo apt-get build-dep gstreamer0.10-plugins-ugly
$ sudo apt-get install devscripts

cd into the unpacked source directory.

Make sure all other patches from the package are applied:

$ quilt push -a

Before making your changes:

$ quilt new patch_name

(you can use anything you like for patch_name, best make it a brief
description of what your patch does)

Add every file you're going to alter to the patch using quilt add ...,
make your changes, then when you've made all your changes:

quilt refresh

Then you should add something to the changelog explaining what you've
done, I suggest using dch -i. To build it use debuild; include -uc -us
options if you don't have a GPG key or if you didn't add your address to
the changelog.

If you need to debug your changes you probably won't want to rebuild the
entire package every time you make a change. I think you can restrict
the build to only rebuilding the parts that depend on things that have
changed with 'fakeroot ./debian/rules binary' but I'm not entirely sure
about that.

> > On Sun, 11 Nov 2012 22:41:16 -0800
> > arpita banerjee <[hidden email]> wrote:
> >
> >> I am using Ubuntu 11.10...
> >
> >> > On Sun, 11 Nov 2012 12:54:33 -0800
> >> > arpita banerjee <[hidden email]> wrote:
> >> >
> >> >> I would like to change some code in one element X in gstreamer ugly
> >> >> plugin and rebuild and use it.
> >> >>
> >> >> How I can do it?
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to build gstreamer ugly plugins from source

gstreader
Thanks for these steps.

On Wed, Nov 14, 2012 at 1:30 PM, Tony Houghton <[hidden email]> wrote:

> On Wed, 14 Nov 2012 11:31:21 -0800
> arpita banerjee <[hidden email]> wrote:
>
>> Yes, I can understand . But, if you mention the proper steps for
>> ugly0.10 plugin that will be great.
>> Thanks in advance.
>
> First make sure you have appropriate source repositories in
> /etc/apt/sources.list, eg by copying every line that begins deb and
> changing it to deb-src, then run sudo apt-get update. Then it's a good
> idea to create a new directory and cd there. Then to get the source:
>
> $ apt-get source gstreamer0.10-plugins-ugly
>
> To get all the packages necessary for building it:
>
> $ sudo apt-get build-dep gstreamer0.10-plugins-ugly
> $ sudo apt-get install devscripts
>
> cd into the unpacked source directory.
>
> Make sure all other patches from the package are applied:
>
> $ quilt push -a
>
> Before making your changes:
>
> $ quilt new patch_name
>
> (you can use anything you like for patch_name, best make it a brief
> description of what your patch does)
>
> Add every file you're going to alter to the patch using quilt add ...,
> make your changes, then when you've made all your changes:
>
> quilt refresh
>
> Then you should add something to the changelog explaining what you've
> done, I suggest using dch -i. To build it use debuild; include -uc -us
> options if you don't have a GPG key or if you didn't add your address to
> the changelog.
>
> If you need to debug your changes you probably won't want to rebuild the
> entire package every time you make a change. I think you can restrict
> the build to only rebuilding the parts that depend on things that have
> changed with 'fakeroot ./debian/rules binary' but I'm not entirely sure
> about that.
>
>> > On Sun, 11 Nov 2012 22:41:16 -0800
>> > arpita banerjee <[hidden email]> wrote:
>> >
>> >> I am using Ubuntu 11.10...
>> >
>> >> > On Sun, 11 Nov 2012 12:54:33 -0800
>> >> > arpita banerjee <[hidden email]> wrote:
>> >> >
>> >> >> I would like to change some code in one element X in gstreamer ugly
>> >> >> plugin and rebuild and use it.
>> >> >>
>> >> >> How I can do it?
> _______________________________________________
> 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