pkg-config 指向 1.10 版本而不是 1.14
pkg-config pointing to 1.10 version instead of 1.14
我正在尝试将 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
提取 tarball
./configure --prefix=/path/to/xyz
make
make install
这会在 /path/to/xyz/[=21 中创建 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
=77=]
然后我把这个 bin 路径放在环境变量 PATH 中作为 export PATH=/path/to/xyz/bin:$PATH
正在安装 gst-plugins-base-1.14。4.tar.xz
提取 tarball
./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
我正在尝试将 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
提取 tarball
./configure --prefix=/path/to/xyz
make
make install
这会在 /path/to/xyz/[=21 中创建 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
=77=]
然后我把这个 bin 路径放在环境变量 PATH 中作为 export PATH=/path/to/xyz/bin:$PATH
正在安装 gst-plugins-base-1.14。4.tar.xz
提取 tarball
./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