【问题标题】:pkg-config pointing to 1.10 version instead of 1.14pkg-config 指向 1.10 版本而不是 1.14
【发布时间】:2019-10-04 11:14:26
【问题描述】:

我正在尝试将 gstreamer 1.14.4 安装在与 /usr/usr/local 不同的位置。

我在做什么:
我已经下载了以下包:
gstreamer-1.14.4.tar.xz
gst-plugins-base-1.14.4.tar.xz
gst-plugins-good-1.14.4.tar.xz
gst-plugins-bad-1.14.4.tar.xz
gst-plugins-ugly-1.14.4.tar.xz

现在我尝试按照上面给出的相同顺序安装它们。

安装 gstreamer-1.14.4.tar.xz
解压压缩包
./configure --prefix=/path/to/xyz
make make install

这会在 /path/to/xyz/bin 中创建 gst-launch-1.0gst-inspect-1.0gst-stats-1.0gst-typefind-1.0。在 /path/to/xyz/lib/path/to/xyz/lib/gstreamer-1.0/ 中创建了同样需要的 *.so p>

然后我把这个 bin 路径放在环境变量 PATH 中作为export PATH=/path/to/xyz/bin:$PATH

安装 gst-plugins-base-1.14.4.tar.xz
解压压缩包
./configure --prefix=/path/to/xyz

它给了我错误:

checking for GST... no
configure: No package 'gstreamer-1.0' found
configure: error: no gstreamer-1.0 >= 1.14.4 (GStreamer) found  

编辑 1:
centOS 仓库中 gstreamer 软件包的最新版本是 1.10.4。使用yum install gstreamer-1.0 安装后,现在我收到以下错误

checking for GST... no
configure: Requested 'gstreamer-1.0 >= 1.14.4' but version of GStreamer is 1.10.4
configure: error: no gstreamer-1.0 >= 1.14.4 (GStreamer) found  

这意味着早期的 pkg-config 无法找到 gstreamer,而现在它却指向 1.10 版本而不是 1.14。有没有办法解决这个问题?

【问题讨论】:

  • 编译插件时需要设置--libdir=
  • 你的意思是./configure --prefix=/path/to/xyz --libdir=/path/to/xyz/lib

标签: installation centos gstreamer


【解决方案1】:

如果您的包不在默认位置,请设置PKG_CONFIG_PATH

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

看到这个post

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-08-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-02-13
    • 2012-08-29
    • 2014-08-08
    相关资源
    最近更新 更多