linux - 介子: Dependency not found - Tried both pkg-config and cmake

标签 linux build ubuntu-18.04 dependency-management meson-build

我正在尝试编译 Pulse Effects项目,我在运行 meson build 后遇到了这个问题:

Dependency gstreamer-1.0 found: NO (tried pkgconfig and cmake)
src/meson.build:97:0: ERROR:  Dependency "gstreamer-1.0" not found, tried pkgconfig and cmake

但肯定它已经安装并且 sudo apt install gstreamer-1.0 说:

libqt5gstreamer-1.0-0 is already the newest version (1.2.0-5).
gir1.2-gstreamer-1.0 is already the newest version (1.14.5-0ubuntu1~18.04.1)

我使用的是 ubuntu 18.04。
有什么想法吗?

最佳答案

最终安装包 libgstreamer1.0-dev 完成了工作。

问题是 pkg-configgstreamer 名称是 gstreamer-1.0 但开发文件的实际包名称是libgstreamer1.0-dev 并且在 meson.build 文件中它被提到为 gstreamer-1.0。所以这很令人困惑。

希望对以后的读者有所帮助。

关于linux - 介子: Dependency not found - Tried both pkg-config and cmake,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62923551/

相关文章:

php - 如果我下载了 PHP/MySQL,其他人可以访问我的文件吗?

docker - 如何解决 "Hash Sum Mismatch"上的 "apt-get install docker-ce"?

linux - 卸载 Chef 客户端

java - 当 OP_ACCEPT 事件发生时,解复用器是如何被通知的

linux - 亚马逊 Linux : "apt-get: command not found"

android - 错误 :Plugin with id 'com.github.dcendents.android-maven' not found

c++ - 如何在从顶级 add_subdirectory 添加的包上使用 find_package?

由于测试失败,Jenkins 将良好构建标记为失败

ubuntu-18.04 - 如何从 snap 应用程序内部打开终端?

ubuntu - WSL2 中的 Nvidia Docker : Error Response From Daemon: OCI Runtime Create Failed