【问题标题】:Is it possible to set up GStreamer for use in MinGW, similar to how it's done in Linux?是否可以设置 GStreamer 以在 MinGW 中使用,类似于在 Linux 中的操作方式?
【发布时间】:2014-09-13 12:38:40
【问题描述】:

为迟到的标题道歉,我不太清楚如何表达这个问题。在最基本的情况下,我试图用 GStreamer 编译一个程序。为所述程序运行配置脚本时,出现以下错误:

 0:20.39 configure: checking for gstreamer-1.0 >= 1.0
 0:20.39                       gstreamer-app-1.0
 0:20.39                       gstreamer-plugins-base-1.0
 0:20.39 configure: error: gstreamer and gstreamer-plugins-base development pack
ages are needed to build gstreamer backend. Install them or disable gstreamer su
pport with --disable-gstreamer

我正在编译的构建环境:

  • Windows 7(64 位)
  • MINGW & MSYS
  • Visual C/C++ 2010 SP1(命令行)

现在,如果这个错误发生在 Linux 发行版上,比如 Ubuntu,可以通过运行以下命令来解决:

apt-get install libgstreamer-plugins-base1.0-dev
apt-get install libgstreamer1.0-dev

Windows 的等价物是什么?我找到了两种可以使用的版本:来自开发者网站的gstreamer bin,其结构如下:

  • bin
  • 包括
  • 分享

还有一个dynamic library of gstreamer for mingw,结构如下:

  • bin

我应该如何让 mingw/msys 知道 gstreamer 库已安装?我是否将上面的文件夹放在相关的 MSYS 目录中?那么,configure 是如何知道它已经安装并可以使用的呢?

我希望我的问题是有道理的,如果有任何困惑,请告诉我。干杯!

【问题讨论】:

    标签: windows visual-c++ mingw gstreamer configure


    【解决方案1】:

    使用第一个解决方案(来自 GStreamer 的官方二进制文件),您需要告诉配置脚本所有内容的位置。

    最简单的方法是将环境变量 PKG_CONFIG_PATH 设置为 .pc 文件所在的位置。一般在

    $install_directory/lib/pkgconfig/

    将 $install_directory 替换为实际位置,例如,如果它安装在 /c/GStreamer 中:

    PKG_CONFIG_PATH=/c/GStreamer/lib/pkgconfig ./configure

    这应该让 configure 搞清楚一切

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-29
      • 1970-01-01
      • 1970-01-01
      • 2010-11-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多