spec文件中的pkgconfig(alsa)无法识别已安装的alsa,alsa-devel

时间:2012-08-13 07:30:10

标签: centos rpm rpmbuild pkg-config

我正在尝试在CentOS 5.6上构建qt 但它失败的原因是系统没有所需的库。

我正在尝试使用Fedora qt源rpm文件中的源和spec文件构建。

$ rpmbuild -ba qt.spec

并且失败消息如下所示,

    pkgconfig(alsa) is needed by qt-4.8.2-4.noarch
    pkgconfig(dbus-1) is needed by qt-4.8.2-4.noarch
    pkgconfig(fontconfig) is needed by qt-4.8.2-4.noarch
    pkgconfig(glib-2.0) is needed by qt-4.8.2-4.noarch
    pkgconfig(icu-i18n) is needed by qt-4.8.2-4.noarch
    pkgconfig(NetworkManager) is needed by qt-4.8.2-4.noarch
    pkgconfig(openssl) is needed by qt-4.8.2-4.noarch
    pkgconfig(libpng) is needed by qt-4.8.2-4.noarch
    pkgconfig(libpulse) is needed by qt-4.8.2-4.noarch
    pkgconfig(xtst) is needed by qt-4.8.2-4.noarch
    pkgconfig(zlib) is needed by qt-4.8.2-4.noarch
    pkgconfig(ice) is needed by qt-4.8.2-4.noarch
    pkgconfig(sm) is needed by qt-4.8.2-4.noarch
    pkgconfig(xcursor) is needed by qt-4.8.2-4.noarch
    pkgconfig(xext) is needed by qt-4.8.2-4.noarch
    pkgconfig(xfixes) is needed by qt-4.8.2-4.noarch
    pkgconfig(xft) is needed by qt-4.8.2-4.noarch
    pkgconfig(xi) is needed by qt-4.8.2-4.noarch
    pkgconfig(xinerama) is needed by qt-4.8.2-4.noarch
    pkgconfig(xrandr) is needed by qt-4.8.2-4.noarch
    pkgconfig(xrender) is needed by qt-4.8.2-4.noarch
    pkgconfig(xt) is needed by qt-4.8.2-4.noarch
    pkgconfig(xv) is needed by qt-4.8.2-4.noarch
    pkgconfig(x11) is needed by qt-4.8.2-4.noarch
    pkgconfig(xproto) is needed by qt-4.8.2-4.noarch
    pkgconfig(gl) is needed by qt-4.8.2-4.noarch
    pkgconfig(glu) is needed by qt-4.8.2-4.noarch
    pkgconfig(gstreamer-0.10) is needed by qt-4.8.2-4.noarch
    pkgconfig(gstreamer-plugins-base-0.10) is needed by qt-4.8.2-4.noarch
    pkgconfig(gtk+-2.0) is needed by qt-4.8.2-4.noarch
    pkgconfig(sqlite3) is needed by qt-4.8.2-4.noarch

但是已经安装了上面的大部分内容(alsa-devel,fontconfig ...等)。 和.pc文件位于'/ usr / lib64 / pkgconfig /'

我认为rpmbuild无法识别'pkgconfig(...)'。

任何人都可以知道原因吗? 请帮助我〜

提前感谢。

2 个答案:

答案 0 :(得分:1)

在规范文件

中将alsa-devel更改为alsa-lib-devel

答案 1 :(得分:0)

尝试在构建环境中设置elif len(list) > 6: list = ["Start"] print ("Done")

PKG_CONFIG_PATH

请查看this old bug report,了解有关此建议的更多见解。