安裝spice-gtk-0.9 on ubuntu 10.04 (1)

來源:互聯網
上載者:User

在ubuntu10.04上安裝spice-gtk-0.9:

       一、安裝glib

      glib-2.31.0依賴包:apt-get install (libffi-dev,gettext,zlib1g-dev)

      二、安裝cairo

      cairo-1.10.0依賴包:pixman-0.24.0,libpng12-dev,libfreetype6-dev,libX11-1.4.99.1(libx11-xcb-dev)

     在安裝libX11時候需要安裝依賴包:xextproto-7.0.3、inputproto-2.1.99.6、xtrans-dev、libxcb1-dev、x11proto-kb-dev

     報錯:configure.ac:24: error: must install xorg-macros 1.15 or later before  running autoconf/autogen

     安裝依賴包:util-macros-1.16.0.tar.gz  (--prefix=/usr)

    報錯checking keysym definitions... configure: error: Cannot find   keysymdef.h

    安裝依賴包:xproto-xproto-7.0.19

  三、安裝gobject-introspection

     gobject-introspection之前,先安裝glib和cairo。

    編譯atk、gtk之前最好先編譯gobject-introspection,以免出現不必要的問題。

     gobject-introspection-1.30.0:flex,bison,(python-gobject-dev)

  四、安裝atk

    atk-2.2.0:編譯atk-2.2.0是依賴glib,在configure的時候,提示發現多個版本的glib,配置LD_LIBRARY_PATH變數到需要指   定的glib庫路徑.

  五、安裝pango

      pango-1.29.4

      編譯pango時候,./configure 出現下面資訊才能成功編譯gtk:

     config.status: pango/pango-features.h is unchanged

      configuration:

     backends:Cairo FreeType
X

   編譯pango報錯:

   ./.libs/libpangocairo-1.0.so: undefined reference to `cairo_ft_font_options_substitute'

   ./.libs/libpangocairo-1.0.so: undefined reference to `cairo_ft_font_face_create_for_pattern'

   重新編譯cairo:./autogen.sh --prefix=/usr/local --enable-xlib=yes --enable-ft=yes &&make &&make install

 六、編譯gtk

    gtk+-3.2.0:gdk-pixbuf-2.24.0、libtiff4-dev,fontconfig-2.8.0(libxml2-dev),libglib2.0-dev,libxrandr-dev

    編譯時間候報錯:

    Gdkdeviceprivate-xi.h:28:35: error: X11/extensions/XInput.h:No such file or directory

         
編譯libXi-1.5.99.3包,XInput.h標頭檔在該包中。(依賴包:libxext-dev)   

 七、安裝spice-gtk部分依賴包

     python-pyparsing

     cp CSV.pm CSV_PP.pm /usr/lib/per/5.10/Text

     celt-0.5.1.3:libogg-dev

     spice-protocol-0.10.1

     libglobus-openssl-dev

     libgudev-1.0-dev

     libusb-1.0.9

     Usbredir-0.3.3

     vala-0.14.2

     編譯vala-0.14.2版本的時候報錯:

     valacodewriter.vala:1498.54-1498.59: error: The name `name' does not 

     exist in the context of `G'

     attributes.insert_sorted (attr, (a, b) => strcmp (a.name, b.name));

     解決方案:在網上查了很多,都沒解決得了,最後把包刪了,重新解壓下載包編

     譯沒問題

 八、最後安裝spice-gtk

      spice-gtk-0.9

      ./autogen.sh --prefix=/usr/local --enable-smartcard=no --with-sasl=no --with-audio=no --enable-usbredir=yes

  本文總結為本人第一次編譯成功,還存在大量不足之處,如有問題,還望大家協助,謝謝!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.