How to build example plugin without installing gstreamer

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

How to build example plugin without installing gstreamer

rad_e
I am learning how to write a gstreamer plugin. I got the example plugin from git, and unfortunately failed to build it -- no gstreamer installed. On the machine I am working I don't have root privileges and cannot install gstreamer. I downloaded gstreamer and compiled it in my home folder. My question is how do I tell makefiles to look for those libraries in my home folder? Which config file should I be editing?

Any pointers will be appreciated.
thanx


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to build example plugin without installing gstreamer

Miquel Àngel Farré
You can try to work with uninstalled-gstreamer: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/faq/html/chapter-developing.html#developing-uninstalled-gstreamer

when in your uninstalled:
use the cflags from: pkg-config gstreamer-0.10 gstreamer-plugins-base-0.10 --cflags
use the libs from: pkg-config gstreamer-0.10 gstreamer-plugins-base-0.10 --libs


2009/7/11 Rad E. <[hidden email]>
I am learning how to write a gstreamer plugin. I got the example plugin from git, and unfortunately failed to build it -- no gstreamer installed. On the machine I am working I don't have root privileges and cannot install gstreamer. I downloaded gstreamer and compiled it in my home folder. My question is how do I tell makefiles to look for those libraries in my home folder? Which config file should I be editing?

Any pointers will be appreciated.
thanx


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to build example plugin without installing gstreamer

Miquel Àngel Farré
This is the makefile I am using: http://pastebin.ca/1491706 based on Tiago Katcipis Makefiles.
It seems to be ok nevertheless when I execute make this is the result:
/home/miki/gstreamer//git/gstreamer/pkgconfig/../gst/libgstreamer-0.10.la: file not recognized: File format not recognized

Where libgstreamer-0.10.la comes from "pkg-config gstreamer-0.10 gstreamer-plugins-base-0.10 --libs" and asking on #gstreamer
.la is libtool related, anybody knows how to solve this?

Thanks

El 11 / juliol / 2009 08:25, Miquel Àngel Farré <[hidden email]> ha escrit:
You can try to work with uninstalled-gstreamer: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/faq/html/chapter-developing.html#developing-uninstalled-gstreamer

when in your uninstalled:
use the cflags from: pkg-config gstreamer-0.10 gstreamer-plugins-base-0.10 --cflags
use the libs from: pkg-config gstreamer-0.10 gstreamer-plugins-base-0.10 --libs


2009/7/11 Rad E. <[hidden email]>
I am learning how to write a gstreamer plugin. I got the example plugin from git, and unfortunately failed to build it -- no gstreamer installed. On the machine I am working I don't have root privileges and cannot install gstreamer. I downloaded gstreamer and compiled it in my home folder. My question is how do I tell makefiles to look for those libraries in my home folder? Which config file should I be editing?

Any pointers will be appreciated.
thanx


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to build example plugin without installing gstreamer

Philip Jägenstedt
Doesn't it work if you simply ./configure --prefix=/home/you/gst/ and
then set PKG_CONFIG_PATH=/home/you/gst/lib/pkgconfig when building
plugins?

Philip

2009/7/11 Miquel Àngel Farré <[hidden email]>:

> This is the makefile I am using: http://pastebin.ca/1491706 based on Tiago
> Katcipis Makefiles.
> It seems to be ok nevertheless when I execute make this is the result:
> /home/miki/gstreamer//git/gstreamer/pkgconfig/../gst/libgstreamer-0.10.la:
> file not recognized: File format not recognized
>
> Where libgstreamer-0.10.la comes from "pkg-config gstreamer-0.10
> gstreamer-plugins-base-0.10 --libs" and asking on #gstreamer
> .la is libtool related, anybody knows how to solve this?
>
> Thanks
>
> El 11 / juliol / 2009 08:25, Miquel Àngel Farré <[hidden email]> ha
> escrit:
>>
>> You can try to work with uninstalled-gstreamer:
>> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/faq/html/chapter-developing.html#developing-uninstalled-gstreamer
>>
>> when in your uninstalled:
>> use the cflags from: pkg-config gstreamer-0.10 gstreamer-plugins-base-0.10
>> --cflags
>> use the libs from: pkg-config gstreamer-0.10 gstreamer-plugins-base-0.10
>> --libs
>>
>>
>> 2009/7/11 Rad E. <[hidden email]>
>>>
>>> I am learning how to write a gstreamer plugin. I got the example plugin
>>> from git, and unfortunately failed to build it -- no gstreamer installed. On
>>> the machine I am working I don't have root privileges and cannot install
>>> gstreamer. I downloaded gstreamer and compiled it in my home folder. My
>>> question is how do I tell makefiles to look for those libraries in my home
>>> folder? Which config file should I be editing?
>>>
>>> Any pointers will be appreciated.
>>> thanx
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Enter the BlackBerry Developer Challenge
>>> This is your chance to win up to $100,000 in prizes! For a limited time,
>>> vendors submitting new applications to BlackBerry App World(TM) will have
>>> the opportunity to enter the BlackBerry Developer Challenge. See full
>>> prize
>>> details at: http://p.sf.net/sfu/Challenge
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>
>>
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>



--
Philip Jägenstedt

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to build example plugin without installing gstreamer

Miquel Àngel Farré
In my case I am not writing a plugin, I am trying to compile an own application
using apsink and an uninstalled gstreamer.

2009/7/11 Philip Jägenstedt <[hidden email]>
Doesn't it work if you simply ./configure --prefix=/home/you/gst/ and
then set PKG_CONFIG_PATH=/home/you/gst/lib/pkgconfig when building
plugins?

Philip

2009/7/11 Miquel Àngel Farré <[hidden email]>:
> This is the makefile I am using: http://pastebin.ca/1491706 based on Tiago
> Katcipis Makefiles.
> It seems to be ok nevertheless when I execute make this is the result:
> /home/miki/gstreamer//git/gstreamer/pkgconfig/../gst/libgstreamer-0.10.la:
> file not recognized: File format not recognized
>
> Where libgstreamer-0.10.la comes from "pkg-config gstreamer-0.10
> gstreamer-plugins-base-0.10 --libs" and asking on #gstreamer
> .la is libtool related, anybody knows how to solve this?
>
> Thanks
>
> El 11 / juliol / 2009 08:25, Miquel Àngel Farré <[hidden email]> ha
> escrit:
>>
>> You can try to work with uninstalled-gstreamer:
>> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/faq/html/chapter-developing.html#developing-uninstalled-gstreamer
>>
>> when in your uninstalled:
>> use the cflags from: pkg-config gstreamer-0.10 gstreamer-plugins-base-0.10
>> --cflags
>> use the libs from: pkg-config gstreamer-0.10 gstreamer-plugins-base-0.10
>> --libs
>>
>>
>> 2009/7/11 Rad E. <[hidden email]>
>>>
>>> I am learning how to write a gstreamer plugin. I got the example plugin
>>> from git, and unfortunately failed to build it -- no gstreamer installed. On
>>> the machine I am working I don't have root privileges and cannot install
>>> gstreamer. I downloaded gstreamer and compiled it in my home folder. My
>>> question is how do I tell makefiles to look for those libraries in my home
>>> folder? Which config file should I be editing?
>>>
>>> Any pointers will be appreciated.
>>> thanx
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Enter the BlackBerry Developer Challenge
>>> This is your chance to win up to $100,000 in prizes! For a limited time,
>>> vendors submitting new applications to BlackBerry App World(TM) will have
>>> the opportunity to enter the BlackBerry Developer Challenge. See full
>>> prize
>>> details at: http://p.sf.net/sfu/Challenge
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>
>>
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>



--
Philip Jägenstedt

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to build example plugin without installing gstreamer

Tim-Philipp Müller-2
In reply to this post by rad_e
On Fri, 2009-07-10 at 22:48 -0700, Rad E. wrote:

> I am learning how to write a gstreamer plugin. I got the example
> plugin from git, and unfortunately failed to build it -- no gstreamer
> installed. On the machine I am working I don't have root privileges
> and cannot install gstreamer. I downloaded gstreamer and compiled it
> in my home folder. My question is how do I tell makefiles to look for
> those libraries in my home folder? Which config file should I be
> editing?
>
> Any pointers will be appreciated.

You can install GStreamer into your home directory if you
like, no root privileges required. In that case you would need to set
PKG_CONFIG_PATH to the pkgconfig directory with the GStreamer .pc files,
and possibly also LD_LIBRARY_PATH to the lib directory with all the
libraries.

If set up correctly,

  pkg-config --cflags gstreamer-0.10

should show the includes in your home directory.

Cheers
 -Tim



------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to build example plugin without installing gstreamer

rad_e
Thank you all for replies.When I set pkgconfig's path, configure works fine but I get these errors when I do make. I understand what error says, but not sure how to solve the problem :)  Any ideas? Thanks

../libtool: line 459: CDPATH: command not found
../libtool: line 1262: func_opt_split: command not found
libtool: Version mismatch error.  This is libtool 2.2, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2
libtool: and run autoconf again.
make[2]: *** [libgstplugin_la-gstplugin.lo] Error 63



------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to build example plugin without installing gstreamer

rad_e
Well, I tried a lot of things and finally gave up on libtool and its friends. I wrote a static Makefile with all proper gcc switches. It compiles, links just fine. So static Makefiles FTW!



--- On Sun, 7/12/09, Rad E. <[hidden email]> wrote:

From: Rad E. <[hidden email]>
Subject: Re: [gst-devel] How to build example plugin without installing gstreamer
To: "Discussion of the development of GStreamer" <[hidden email]>
Date: Sunday, July 12, 2009, 9:29 PM

Thank you all for replies.When I set pkgconfig's path, configure works fine but I get these errors when I do make. I understand what error says, but not sure how to solve the problem :)  Any ideas? Thanks

../libtool: line 459: CDPATH: command not found
../libtool: line 1262: func_opt_split: command not found
libtool: Version mismatch error.  This is libtool 2.2, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2
libtool: and run autoconf again.
make[2]: *** [libgstplugin_la-gstplugin.lo] Error 63



-----Inline Attachment Follows-----

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge 
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize 
details at: http://p.sf.net/sfu/Challenge

-----Inline Attachment Follows-----

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@...
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel