规格文件中的pkgconfig(alsa)无法识别已安装的alsa,alsa-devel
问题描述:
我正试图在CentOS 5.6上构建qt ,但由于系统没有所需的库而失败。规格文件中的pkgconfig(alsa)无法识别已安装的alsa,alsa-devel
我试图用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(...)'。
有人可以知道原因吗? plz帮我〜
在此先感谢。
答
变化的alsa-devel的到ALSA-LIB-devel的在规范文件
答
尝试构建环境中设置PKG_CONFIG_PATH
:
$ export PKG_CONFIG_PATH=/usr/lib64/pkgconfig
在this old bug report看一看,了解关于此次建议一些更深入的了解。