Centos 规范文件中的pkgconfig(alsa)不';无法识别已安装的alsa,alsa-devel

Centos 规范文件中的pkgconfig(alsa)不';无法识别已安装的alsa,alsa-devel,centos,rpm,rpmbuild,pkg-config,Centos,Rpm,Rpmbuild,Pkg Config,我正在尝试在CentOS 5.6上构建qt 但是它失败了,原因是系统没有必需的库 我正在尝试使用FedoraQt源rpm文件中的源代码和规范文件进行构建 $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

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

我正在尝试使用FedoraQt源rpm文件中的源代码和规范文件进行构建

$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(…)”

有人知道原因吗? 请帮帮我~


提前感谢。

在规范文件中将alsa-devel更改为alsa-lib-devel

尝试在生成环境中设置
PKG\u-CONFIG\u路径

$ export PKG_CONFIG_PATH=/usr/lib64/pkgconfig
请看一看,了解有关此建议的更多见解