installation - pkg-config 指向 1.10 版本而不是 1.14

标签 installation centos gstreamer

我正在尝试将 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/xyzmakemake install
这将创建 gst-launch-1.0 , gst-inspect-1.0 , gst-stats-1.0gst-typefind-1.0/path/to/xyz/bin .同样需要*.so创建于 /path/to/xyz/lib /path/to/xyz/lib/gstreamer-1.0/

然后我把这个 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。有没有解决的办法?

最佳答案

设置 PKG_CONFIG_PATH如果您的包裹不在默认位置。
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
看到这个post

关于installation - pkg-config 指向 1.10 版本而不是 1.14,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56181031/

相关文章:

installation - 在ubuntu上安装iperf的问题

mysql - 全新的 mysql-server 安装不要求输入密码

Python CGI 下载文件而不是在 CentOS 上执行

android - Gstreamer 通过 udp 流式传输

gstreamer - 没有这样的元素或插件 'v4l2h264enc'

php - 带有 mysql 数据库安装程序的 Web 应用程序

ruby-on-rails - Rails 3安装错误 “File not found: lib”

apache - vagrant 中的 JS 和 CSS 文件在 VM 外部保存时未正确编码

linux - 为什么我无法使用 YUM 更新 - 使用 CentOS Stream 8

android - 在 Android gstreamer 中使用多个进程!!