我正在尝试将 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
这将创建 gst-launch-1.0
, gst-inspect-1.0
, gst-stats-1.0
和 gst-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/