【发布时间】: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/xyzmake
make install
这会在 /path/to/xyz/bin 中创建 gst-launch-1.0、gst-inspect-1.0、gst-stats-1.0 和 gst-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