Building Gstreamer on Mac OS X - 10.6.8
Andoni Morales
ylatuya at gmail.com
Tue Jul 16 08:16:57 PDT 2013
2013/7/16 Raja Poonati <rpoonati at extron.com>
> Thanks for your reply. I could build osxvideosink using the steps
> provided.
>
> To verify the build process, I tried running basic tutorial-1 after
> copying the generated libgstosxvideosink.so to the installed directory.
>
> When I run it, only audio is played. No video at all. It works fine when I
> undo the copy of libgstosxvideosink.so.
>
>
>
> Few observations
>
> - The generated and installed versions of libgstosxvideosink.so
> are different in size(generated one is around 92KB and installed one is
> 190KB).
>
> - And also the size of generated libgstosxvideosink.so is much
> than the size of cocoawindow.o(61KB) and osxvideosink.o(97KB) together.
>
That's the expected result, the installed version is a fat library
(containing the library for 2 architectures x86 and x86_64). Are you
building and running the tutorial for the same architecture? From which
branch are you building gst-plugins-good?
You can easily test the element running in the shell:
gst-launch-0.10 videotestsrc ! osxvideosink
Cheers,
Andoni
>
>
> Am I missing anything here?
>
>
>
>
>
>
>
> *From:* gstreamer-devel-bounces+rpoonati=extron.com at lists.freedesktop.org[mailto:
> gstreamer-devel-bounces+rpoonati=extron.com at lists.freedesktop.org] *On
> Behalf Of *Andoni Morales
> *Sent:* 15 July 2013 16:09
>
> *To:* Discussion of the development of and with GStreamer
> *Subject:* Re: Building Gstreamer on Mac OS X - 10.6.8
>
>
>
>
>
>
>
> 2013/7/15 Raja Poonati <rpoonati at extron.com>
>
> Thanks for your reply.
>
>
>
> I tried the following things while trying to build osxvideosink alone from
> the downloaded gst-plugins-good.
>
> - I cleaned up everything on my PC ( removed cerbero and
> gstreamer packages)
>
> - Clone cerbero package
>
> - Cerbero-uninstalled shell
>
> - cd gst-plugins-good
>
> - sh auto-gen.sh –disable-gst-doc
>
> - The above step fails saying no glib package found
>
> - One this step succeeds, I thought of going osxvideosink
> directory and do the make.
>
>
>
> *NOTE: I didn’t do cerbero-uninstalled bootstrap. *
>
>
>
> Can you please tell me if I am going in the right direction?
>
>
> There is a complete example on how to rebuild a single plugin in the
> documentation:
>
>
> http://docs.gstreamer.com/display/GstSDK/Building+from+source+using+Cerbero("Build a single project with the SDK")
>
>
>
> Cheers,
>
> Andoni
>
>
>
>
>
>
>
>
>
>
>
> *From:* gstreamer-devel-bounces+rpoonati=extron.com at lists.freedesktop.org[mailto:
> gstreamer-devel-bounces+rpoonati=extron.com at lists.freedesktop.org] *On
> Behalf Of *Andoni Morales
> *Sent:* 12 July 2013 17:56
>
>
> *To:* Discussion of the development of and with GStreamer
> *Subject:* Re: Building Gstreamer on Mac OS X - 10.6.8
>
>
>
>
>
>
>
> 2013/7/12 Raja Poonati <rpoonati at extron.com>
>
> How are you building your application, with autotools, XCode, CMake,
> custom makefiles? What video renderer element do you need to change,
> osxvideosink?
>
> I created application using Xcode. It is similar to the ones in basic
> tutorials.
>
> The tutorials are adding the framework to the project. As I don’t have the
> entire framework, I provided include and link paths.
>
> Yes. I want to change osxvideosink element so that it writes pictures in
> the Core graphics context given by the application.
>
>
>
> In this case you don't need to rebuilt gstreamer and gst-ffmpeg, only
> osxvideosink from gst-plugins-good. Once you have rebuilt osxvideosink,
> copy libgstosxvideosink.dylib
> to /Library/Frameworks/GStreamer.framework/Versions/0.10/lib/gstreamer-0.10/
> to update the plugin in the framework and that's it. In your XCode project
> you should still use the GStreamer framework like in the tutorials-
>
>
>
> Cheers,
>
> Andoni
>
>
>
>
>
>
>
> *From:* gstreamer-devel-bounces+rpoonati=extron.com at lists.freedesktop.org[mailto:
> gstreamer-devel-bounces+rpoonati=extron.com at lists.freedesktop.org] *On
> Behalf Of *Andoni Morales
> *Sent:* 12 July 2013 17:12
>
>
> *To:* Discussion of the development of and with GStreamer
> *Subject:* Re: Building Gstreamer on Mac OS X - 10.6.8
>
>
>
>
>
>
>
> 2013/7/12 Raja Poonati <rpoonati at extron.com>
>
> Another question
>
>
>
> I tried creating an application using gstreamer and gst-plugins-good
> installed.
>
> The application fails to compile because of the dependency on glib. What
> are all the dependencies I need to build install for creating application
> using gstreamer on Mac-OSX 10.6.8.
>
>
>
> Basically my goal is to change the video renderer element(of a stable
> release for example sdk-release-sdk-2013.6) and build an application using
> that.
>
> If modifying the recipes is the better option, what are the steps in which
> I can do this?
>
> How are you building your application, with autotools, XCode, CMake,
> custom makefiles? What video renderer element do you need to change,
> osxvideosink?
>
> Cheers,
>
> Andoni
>
>
>
>
>
>
>
> *From:* Raja Poonati
> *Sent:* 12 July 2013 15:55
>
>
> *To:* Discussion of the development of and with GStreamer
>
> *Subject:* RE: Building Gstreamer on Mac OS X - 10.6.8
>
>
>
> I am trying to use “cerbero shell” to build gstreamer-sdk with tag
> sdk-release-sdk-2013.6<http://cgit.freedesktop.org/gstreamer-sdk/gst-plugins-good/tag/?id=sdk-release-sdk-2013.6>
> .
>
> So I cloned gstreamer, gst-plugins-good and gst-ffmpeg and used git
> checkout sdk-release-sdk-2013.6<http://cgit.freedesktop.org/gstreamer-sdk/gst-plugins-good/tag/?id=sdk-release-sdk-2013.6>
> .
>
> While I could build gstreamer and gst-plugins-good successfully,
> gst-ffmpeg build fails saying “libavcodec/x86/cabac.h:91:error: cant find a
> register in classs ‘GENERAL_REGS’ while reloading asm.
>
> I used the same option sh autogen.sh --disable-gtk-doc as with gstreamer
> and gst-plugins-good.
>
> What are the configuration options to be used with gst-ffmpeg?
>
>
>
>
>
> *From:* gstreamer-devel-bounces+rpoonati=extron.com at lists.freedesktop.org[
> mailto:gstreamer-devel-bounces+rpoonati=extron.com at lists.freedesktop.org<gstreamer-devel-bounces+rpoonati=extron.com at lists.freedesktop.org>]
> *On Behalf Of *Andoni Morales
> *Sent:* 11 July 2013 18:41
>
>
> *To:* Discussion of the development of and with GStreamer
> *Subject:* Re: Building Gstreamer on Mac OS X - 10.6.8
>
>
>
>
>
>
>
> 2013/7/11 Raja Poonati <rpoonati at extron.com>
>
> I applied the patch. It seems to be working fine. The build process is
> currently going on.
>
> Here my aim is to do some changes to the existing filters and build SDK
> from that. What changes are required to the above process to build the
> projects on the disk?
>
>
>
> Once you have everything built you can build custom branches in 2 ways:
>
> 1) Using the shell in cerbero: call "cerbero shell" and use the regular
> autogen.sh + make + make install process
>
> 2) modifying the recipes to use a different origin/branch/commit to
> build.
>
> If you just want to build other projects that depends on GStreamer use
> cerbero's shell directly.
>
> Andoni
>
>
>
>
>
> *From:* gstreamer-devel-bounces+rpoonati=extron.com at lists.freedesktop.org[mailto:
> gstreamer-devel-bounces+rpoonati=extron.com at lists.freedesktop.org] *On
> Behalf Of *Andoni Morales
> *Sent:* 11 July 2013 16:36
>
>
> *To:* Discussion of the development of and with GStreamer
> *Subject:* Re: Building Gstreamer on Mac OS X - 10.6.8
>
>
>
>
>
>
>
> 2013/7/11 Raja Poonati <rpoonati at extron.com>
>
> Please find the log file attached.
>
> Other thing, It didn’t prompt me for password when “./cerbero-uninstalled
> bootstrap” is executed.
>
>
>
> Can you try this patch and report back if it worked. It's only adding a
> 'sudo' to fix the permissions and should now prompt you for the password
>
> diff --git a/cerbero/bootstrap/osx.py b/cerbero/bootstrap/osx.py
> index a09d413..bef1aa8 100644
> --- a/cerbero/bootstrap/osx.py
> +++ b/cerbero/bootstrap/osx.py
> @@ -52,7 +52,7 @@ class OSXBootstraper (BootstraperBase):
> shell.download(self.CPANM_URL, cpanm_installer)
> shell.call('chmod +x %s' % cpanm_installer)
> # Install XML::Parser, required for intltool
> - shell.call("%s XML::Parser" % cpanm_installer)
> + shell.call("sudo %s XML::Parser" % cpanm_installer)
>
>
>
>
>
> *From:* gstreamer-devel-bounces+rpoonati=extron.com at lists.freedesktop.org[mailto:
> gstreamer-devel-bounces+rpoonati=extron.com at lists.freedesktop.org] *On
> Behalf Of *Andoni Morales
> *Sent:* 11 July 2013 16:04
>
>
> *To:* Discussion of the development of and with GStreamer
> *Subject:* Re: Building Gstreamer on Mac OS X - 10.6.8
>
>
>
>
>
>
>
> 2013/7/11 Raja Poonati <rpoonati at extron.com>
>
> Thanks for your email.
>
>
>
> I executed the following commands one after the other, it exited showing
> at the bottom.
>
>
>
> - git clone git://anongit.freedesktop.org/gstreamer-sdk/cerbero
>
> - ./cerbero-uninstalled bootstrap
>
>
>
>
>
> Can you please help me fixing this?
>
> Apart from this, Don’t I need to download the gstreamer code explicitly?
> If not needed, how do I control version of gstreamer cerbero downloads?
>
>
>
>
>
>
>
>
>
>
>
> *WARNING: Using default configuration because
> /Users/UKEng/.cerbero/cerbero.cbc is missing*
>
> *WARNING: No bootstrapper for the distro version osx_snow_leopard*
>
> *Downloading https://raw.github.com/miyagawa/cpanminus/master/cpanm*
>
> *Running command 'curl -L
> https://raw.github.com/miyagawa/cpanminus/master/cpanm -o
> /var/folders/Ak/Akk8Otx8GZGcgyHjeWgFYU+++TI/-Tmp-/tmpf5IaOb '*
>
> * % Total % Received % Xferd Average Speed Time Time Time
> Current*
>
> * Dload Upload Total Spent Left
> Speed*
>
> *100 248k 100 248k 0 0 287k 0 --:--:-- --:--:--
> --:--:-- 654k*
>
> *Running command 'chmod +x
> /var/folders/Ak/Akk8Otx8GZGcgyHjeWgFYU+++TI/-Tmp-/tmpf5IaOb'*
>
> *Running command
> '/var/folders/Ak/Akk8Otx8GZGcgyHjeWgFYU+++TI/-Tmp-/tmpf5IaOb XML::Parser'*
>
> *--> Working on XML::Parser*
>
> *Fetching http://www.cpan.org/authors/id/T/TO/TODDR/XML-Parser-2.41.tar.gz... OK
> *
>
> *Configuring XML-Parser-2.41 ... OK*
>
> *Building and testing XML-Parser-2.41 ... FAIL*
>
> *! Installing XML::Parser failed. See
> /Users/UKEng/.cpanm/work/1373549783.7809/build.log for details. Retry with
> --force to force install it.*
>
>
>
> What's in * /Users/UKEng/.cpanm/work/1373549783.7809/build.log ?*
>
> *Traceback (most recent call last):*
>
> * File "./cerbero/main.py", line 103, in run_command*
>
> * res = commands.run(command, self.config, self.args)*
>
> * File "./cerbero/commands/__init__.py", line 78, in run*
>
> * return _commands[command].run(config, args)*
>
> * File "./cerbero/commands/bootstrap.py", line 35, in run*
>
> * bootstraper.start()*
>
> * File "./cerbero/bootstrap/osx.py", line 40, in start*
>
> * self._install_perl_deps()*
>
> * File "./cerbero/bootstrap/osx.py", line 55, in _install_perl_deps*
>
> * shell.call("%s XML::Parser" % cpanm_installer)*
>
> * File "./cerbero/utils/shell.py", line 98, in call*
>
> * raise FatalError(_("Error running command: %s") % cmd)*
>
> *FatalError: Fatal Error: Error running command:
> /var/folders/Ak/Akk8Otx8GZGcgyHjeWgFYU+++TI/-Tmp-/tmpf5IaOb XML::Parser*
>
> ****** Error running 'bootstrap' command:*
>
> *Fatal Error: Error running command:
> /var/folders/Ak/Akk8Otx8GZGcgyHjeWgFYU+++TI/-Tmp-/tmpf5IaOb XML::Parser*
>
> *usage: cerbero-uninstalled [-h] [-c CONFIG]*
>
>
>
> *
> {add-recipe,tag,genxcconfig,genlibfiles,check,list-packages,build,add-package,genvsprops,shell,run,cleanone,packageinfo,buildone,wipe,debug-packages,package,bootstrap,list,checkpackage,deps,gensdkshell}
> *
>
> * ...*
>
>
>
>
>
>
>
> -----Original Message-----
> From: gstreamer-devel-bounces+rpoonati=extron.com at lists.freedesktop.org [
> mailto:gstreamer-devel-bounces+rpoonati=extron.com at lists.freedesktop.org<gstreamer-devel-bounces+rpoonati=extron.com at lists.freedesktop.org>]
> On Behalf Of Sebastian Dröge
> Sent: 11 July 2013 12:16
> To: Discussion of the development of and with GStreamer
> Subject: Re: Building Gstreamer on Mac OS X - 10.6.8
>
>
>
> On Do, 2013-07-11 at 09:43 +0000, Raja Poonati wrote:
>
> > Hi,
>
> >
>
> >
>
> >
>
> > I am trying to build Gstreamer on Mac OS X - 10.6.8. Is there any
>
> > documentation specifying the build steps?
>
>
>
> Yes:
> http://docs.gstreamer.com/display/GstSDK/Building+from+source+using+Cerbero
>
>
>
> However I would recommend to use the following cerbero branch
> "upstream-1.0" instead of the old 0.10 version:
>
> http://cgit.freedesktop.org/~slomo/cerbero/log/?h=upstream-1.0
>
>
>
> For that replace the "package" step from the instructions with "package
> gstreamer-1.0" instead of "package gstreamer-sdk".
>
>
>
>
>
> * ________________________________ *
>
>
>
> Statement Of Confidentiality:
>
> This electronic message transmission, and all attachments, contains
> information from Extron Electronics which is confidential and privileged.
> The information is for the exclusive viewing or use of the intended
> recipient. If you are not the intended recipient, be aware that any
> disclosure, copying, distribution or use of the contents of this
> information is prohibited. If you have received this electronic
> transmission in error, please notify the sender immediately by a "reply to
> sender only" message and destroy all electronic and hard copies of the
> communication, including attachments.
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
>
> --
> Andoni Morales Alastruey
>
> LongoMatch:The Digital Coach
> http://www.longomatch.ylatuya.es
>
>
> ------------------------------
>
>
>
> Statement Of Confidentiality:
>
> This electronic message transmission, and all attachments, contains
> information from Extron Electronics which is confidential and privileged.
> The information is for the exclusive viewing or use of the intended
> recipient. If you are not the intended recipient, be aware that any
> disclosure, copying, distribution or use of the contents of this
> information is prohibited. If you have received this electronic
> transmission in error, please notify the sender immediately by a "reply to
> sender only" message and destroy all electronic and hard copies of the
> communication, including attachments.
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
>
> --
> Andoni Morales Alastruey
>
> LongoMatch:The Digital Coach
> http://www.longomatch.ylatuya.es
>
>
> ------------------------------
>
>
>
> Statement Of Confidentiality:
>
> This electronic message transmission, and all attachments, contains
> information from Extron Electronics which is confidential and privileged.
> The information is for the exclusive viewing or use of the intended
> recipient. If you are not the intended recipient, be aware that any
> disclosure, copying, distribution or use of the contents of this
> information is prohibited. If you have received this electronic
> transmission in error, please notify the sender immediately by a "reply to
> sender only" message and destroy all electronic and hard copies of the
> communication, including attachments.
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
>
> --
> Andoni Morales Alastruey
>
> LongoMatch:The Digital Coach
> http://www.longomatch.ylatuya.es
>
>
> ------------------------------
>
>
>
> Statement Of Confidentiality:
>
> This electronic message transmission, and all attachments, contains
> information from Extron Electronics which is confidential and privileged.
> The information is for the exclusive viewing or use of the intended
> recipient. If you are not the intended recipient, be aware that any
> disclosure, copying, distribution or use of the contents of this
> information is prohibited. If you have received this electronic
> transmission in error, please notify the sender immediately by a "reply to
> sender only" message and destroy all electronic and hard copies of the
> communication, including attachments.
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
>
> --
> Andoni Morales Alastruey
>
> LongoMatch:The Digital Coach
> http://www.longomatch.ylatuya.es
>
>
> ------------------------------
>
>
>
> Statement Of Confidentiality:
>
> This electronic message transmission, and all attachments, contains
> information from Extron Electronics which is confidential and privileged.
> The information is for the exclusive viewing or use of the intended
> recipient. If you are not the intended recipient, be aware that any
> disclosure, copying, distribution or use of the contents of this
> information is prohibited. If you have received this electronic
> transmission in error, please notify the sender immediately by a "reply to
> sender only" message and destroy all electronic and hard copies of the
> communication, including attachments.
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
>
> --
> Andoni Morales Alastruey
>
> LongoMatch:The Digital Coach
> http://www.longomatch.ylatuya.es
>
>
> ------------------------------
>
>
>
> Statement Of Confidentiality:
>
> This electronic message transmission, and all attachments, contains
> information from Extron Electronics which is confidential and privileged.
> The information is for the exclusive viewing or use of the intended
> recipient. If you are not the intended recipient, be aware that any
> disclosure, copying, distribution or use of the contents of this
> information is prohibited. If you have received this electronic
> transmission in error, please notify the sender immediately by a "reply to
> sender only" message and destroy all electronic and hard copies of the
> communication, including attachments.
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
>
>
> --
> Andoni Morales Alastruey
>
> LongoMatch:The Digital Coach
> http://www.longomatch.ylatuya.es
>
> ------------------------------
>
>
> Statement Of Confidentiality:
>
> This electronic message transmission, and all attachments, contains
> information from Extron Electronics which is confidential and privileged.
> The information is for the exclusive viewing or use of the intended
> recipient. If you are not the intended recipient, be aware that any
> disclosure, copying, distribution or use of the contents of this
> information is prohibited. If you have received this electronic
> transmission in error, please notify the sender immediately by a "reply to
> sender only" message and destroy all electronic and hard copies of the
> communication, including attachments.
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
--
Andoni Morales Alastruey
LongoMatch:The Digital Coach
http://www.longomatch.ylatuya.es
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130716/9b44cf56/attachment-0001.html>
More information about the gstreamer-devel
mailing list