2010-05-29 65 views
4

我試圖安裝GTK-DFB,開羅是一個需求。當我嘗試從源代碼構建它時,它會拋出:開羅「在pkg-config搜索路徑中找不到libpng」

checking for cairo's PNG functions feature... 
configure: WARNING: Could not find libpng in the pkg-config search path 
checking whether cairo's PNG functions feature could be enabled... no 
configure: error: recommended PNG functions feature could not be enabled 

想法?

謝謝

回答

4

您需要安裝libpng開發包;安裝是分佈依賴,但對Debian的衍生物,依照應該足夠:

apt-get install libpng12-dev 
+1

我在Fedora上,百勝'安裝libpng12-dev'不起作用 – 2010-05-29 00:27:35

+1

我想在fedora上,這個包名叫'libpng-devel' – azatoth 2010-05-29 00:28:50

2

如果你在Ubuntu上,另一更快的解決辦法是要做到:

apt-get build-dep gtk+2.0