構建很棒的 WM,缺少依賴項

構建很棒的 WM,缺少依賴項

嘗試在 11.04 上編譯 Awesome Window Manager,我已經完成apt-get build-dep 很棒但仍收到有關缺少依賴項的錯誤:

$ 製作
運行 cmake...
-- 貓 -> /bin/cat
-- ln -> /bin/ln
-- grep -> /bin/grep
-- git -> /usr/bin/git
-- 主機名稱 -> /bin/主機名
-- asciidoc -> /usr/bin/asciidoc
-- xmlto -> /usr/bin/xmlto
--gzip->/bin/gzip
-- lua -> /usr/bin/lua
-- luadoc -> /usr/bin/luadoc
-- 轉換 -> /usr/bin/convert
-- 檢查模組 'glib-2.0;cairo;x11;oocairo;oopango;xcb-randr;xcb-xtest;xcb-xinerama;xcb-util>=0.3.8;xcb-keysyms>=0.3.4;xcb- icccm >=0.3.8;xcb-image>=0.3.0;cairo-xcb;libstartup-notification-1.0>=0.10;xproto>=7.0.15;libxdg-basedir>=1.0.0'
-- 未找到包“oocairo”
-- 未找到套件“oopango”
-- 找不到套件“xcb-util>=0.3.8”
-- 未找到套件“xcb-icccm>=0.3.8”
/usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 處的 CMake 錯誤(訊息):
  未找到所需的包

我在存儲庫中沒有看到這些庫的任何跡象。

我嘗試了以下說明http://ubuntuforums.org/showthread.php?t=960841這也失敗了:

$ cd util && ./autogen.sh && make && sudo make install
autoreconf:進入目錄“.”
autoreconf:configure.ac:不使用 Gettext
autoreconf:運行:aclocal -I m4
autoreconf:configure.ac:追蹤
autoreconf:configure.ac:不使用 Libtool
autoreconf:運行:/usr/bin/autoconf
autoreconf:configure.ac:不使用 Autoheader
autoreconf:運行:automake --add-missing --copy --no-force
configure.ac:5:安裝`./install-sh'
configure.ac:5:安裝`./missing'
src/Makefile.am:1:使用了 Libtool 函式庫,但「LIBTOOL」未定義
src/Makefile.am:1:定義“LIBTOOL”的常用方法是新增“AC_PROG_LIBTOOL”
src/Makefile.am:1:到 `configure.ac' 並再次執行 `aclocal' 和 `autoconf'。
src/Makefile.am:1:如果「AC_PROG_LIBTOOL」位於「configure.ac」中,請確保
src/Makefile.am:1:它的定義位於 aclocal 的搜尋路徑中。
src/Makefile.am:安裝`./depcomp'
src/Makefile.am:13:使用了“xcbinclude_HEADERS”,但未定義“xcbincludedir”
Makefile.am:6:使用了“pkgconfig_DATA”,但未定義“pkgconfigdir”
autoreconf:automake 失敗,退出狀態:1

我需要做什麼才能編譯?

答案1

看來你需要安裝libxcb-icccm1-dev套件。

答案2

基本上,你錯過了很多-dev包裹。

在你的情況下,類似

libxcb-util*-dev(根據xcb-utils報告的遺失包裹)
libxcb-icccmX-dev建議tdi,但就我而言,那就是libxcb-icccm4-dev
和一些*oocairo**oopango*包(可能-dev)。

答案3

你不需要編譯,無論如何就像@enzotib所說,你只應該這樣做

apt-get source <package>

只需使用

sudo aptitude install awesome

相關內容