0

我正在尝试在 CentOS 5.6 上构建 qt,但由于系统没有所需的库而失败。

我正在尝试使用 Fedora qt 源 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(...)'。

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

提前致谢。

4

2 回答 2

1

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

于 2013-01-08T16:39:15.930 回答
0

尝试PKG_CONFIG_PATH在构建环境中设置:

$ export PKG_CONFIG_PATH=/usr/lib64/pkgconfig

查看这个旧的错误报告,了解有关此建议的更多信息。

于 2016-05-25T10:17:31.320 回答