【问题标题】:Needed environment for building gstreamer plugins in Windows在 Windows 中构建 gstreamer 插件所需的环境
【发布时间】:2010-06-08 10:38:12
【问题描述】:

我已经为在 Windows 上构建 gstreamer 插件(需要一个 Songbird 插件)创建一个环境而苦苦挣扎了两个星期。

我已经安装了 MSYS、MinGW 和 Cygwin,然后安装了 GStreamer OSSBuild,我还下载了 Songbird 的源代码,它们带有自己的 gstreamer 预编译版本。

我无法从 songbird 源运行 gst-inspect(或任何其他 gstreamer 应用程序),我想我会选择 OSSBuild(因为我能够从已编译的 OSSBuild 运行 gst-inspect)。

按照说明构建 GST 插件 (found here) 时,cygwin 将无法识别 OSSBuild,并且在运行 autogen 时构建失败,并出现以下错误:

checking for GST... no
configure: error:
      You need to install or upgrade the GStreamer development
      packages on your system. On debian-based systems these are
      libgstreamer0.10-dev and libgstreamer-plugins-base0.10-dev.
      on RPM-based systems gstreamer0.10-devel, libgstreamer0.10-devel
      or similar. The minimum version required is 0.10.16.

configure failed

我也无法使用 MSYS 或 MinGW,因为它们根本无法运行 autogen。

我了解 cygwin should have it's own gstreamer development packages 但我找不到如何安装它们。

我的问题:如何在 cygwin 中安装 gstreamer 包,或者如何使用 cygwin 和 OSSBuild 依赖项进行构建?

简而言之,如何获得可以在 windows 下构建 gstreamer 插件的环境?

【问题讨论】:

    标签: c++ windows cygwin gstreamer


    【解决方案1】:

    您可以在cygwinports 为cygwin 安装预编译的gstreamer 包。在那里你会找到安装说明和可用软件包的list。您不需要从源代码构建它们。

    【讨论】:

      【解决方案2】:

      Configure 最有可能查找 libtool (.la) 或 pkg-config (.pc) 文件。由于 OSSBuild 是使用 MSVC 构建的,因此您不太可能获取这些文件,因此 configure 可以获取它们。但是,您可以手动创建它们并将它们设置在脚本可以拾取的位置。我知道 OSSBuild 的目标是最终为 GStreamer 插件以及 libtool 和 pkg-config 文件提供与 Visual Studio 兼容的 C/C++ 项目模板,但它们目前还不可用。

      如果您签出 OSSBuild 源并且可以关注 MSVC 属性文件,您可以看到插件是如何设置和配置的。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-02-14
        • 2015-04-12
        • 2011-03-09
        相关资源
        最近更新 更多