2012-08-13 138 views
0

我正試圖在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幫我〜

在此先感謝。

回答

1

變化的alsa-devel的到ALSA-LIB-devel的在規範文件

0

嘗試構建環境中設置PKG_CONFIG_PATH

$ export PKG_CONFIG_PATH=/usr/lib64/pkgconfig 

this old bug report看一看,瞭解關於此次建議一些更深入的瞭解。