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

在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


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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章