zoukankan      html  css  js  c++  java
  • 如何在不动系统中安装的gstreamer的前提下安装一套自己的gstreamer开发环境

    gstreamer官方有一个script:gst-uninstalled,这个脚本会export一堆环境变量,如PATH, LD_LIBRARY_PATH, PKG_CONFIG_PATH...,从而保证执行了改脚本之后,所有的gstreamer相关的可执行文件,库,配置都指向我们设定的目录下的gstreamer的版本。

    这就是说,我们可以在不影响系统中已经安装的gstreamer的前提下,自己搭一个自己需要的gstreamer开发环境。

    以下是详细的操作步骤:

    gst-uninstalled is used to create a develop environment based on gstreamer version which you downloaded.
    This script can avoid to destroy/corrupt the gstreamer installed in our system.
    Read the comments in the script header for more details.

    1. Create a folder, e.g: 0.10.
    2. Copy gst-uninstalled into /usr/bin
    3. Create a symbol link to gst-uninstalled in /usr/bin. The name of symbol link must be gst-<folder name>, e.g: if the folder created in step 1 is 0.10, the symbol link filename should be gst-0.10
    4. Modify the MYGST definition in gst-uninstalled. The value of MYGST should be the upper-folder of the folder you created. E.g: the folder name you created is 0.10 and the folder's path is: /home/super/gstreamer/0.10, then here the MYGST should be /home/super/gstreamer.
    5. Enter directory contains the folder you created, e.g: /home/super/gstreamer, Run gst-0.10
    6. The script will help you to export lots of environment variables, including PATH, LD_LIBRARY_PATH, PKG_CONFIG_PATH... to make sure all the gstreamer related command, libraries, configs are all from your downloaded version, while not the version used in your system.
    7. Download all gstreamer packages you need, place into the folder you created(e.g: 0.10), unpack, compile. Not install them. CAUTION: Rename the folder name to: gstreamer, gst-plugins-base, gst-plugins-good, gst-plugins-ugly, gst-plugins-bad, gst-ffmpeg BEFORE COMPILING! Cause the gst-uninstalled script assumes these folder names!

    gst-uninstalled这个脚本在这里下载:http://cgit.freedesktop.org/gstreamer/gstreamer/plain/scripts/gst-uninstalled

     

  • 相关阅读:
    redux的使用流程
    react类型检查
    将逻辑运算字符串转化为逻辑运算进行运算
    SQL 行列互换 天高地厚
    【转载】linux的IO调度算法和回写机制 天高地厚
    查询昨天的数据 天高地厚
    摘:DBA案例CPU占用100%的问题 天高地厚
    ASP.net HTTP/HTTPS自动切换 天高地厚
    网络连接和初始HTTP请求 天高地厚
    C++内存对象大会战 . 天高地厚
  • 原文地址:https://www.cnblogs.com/super119/p/2231393.html
Copyright © 2011-2022 走看看