Install spice-gtk-0.9 on ubuntu10.04:
1. Install glib
Glib-2.31.0 dependency package: APT-Get install (libffi-Dev, gettext, zlib1g-dev)
Ii. Install Cairo
Cairo-1.10.0 dependent packages: pixman-0.24.0, libpng12-dev, libfreetype6-dev, libX11-1.4.99.1 (libx11-xcb-dev)
Dependency packages: xextproto-7.0.3, inputproto-2.1.99.6, xtrans-Dev, libxcb1-dev, x11proto-kb-dev are required when libx11 is installed
Error: Configure. AC: 24: Error: must install Xorg-macros 1.15 or later before running Autoconf/autogen
Install dependency package: util-macros-1.16.0.tar.gz (-- prefix =/usr)
Error Checking keysym definitions... configure: Error: cannot find keysymdef. h
Install dependency package: xproto-xproto-7.0.19
3. Install gobject-Introspection
Before gobject-introspection, install glib and Cairo.
Before compiling ATK and GTK, you 'd better compile gobject-introspection to avoid unnecessary problems.
Gobject-introspection-1.30.0: Flex, Bison, (Python-gobject-Dev)
4. Install ATK
Atk-2.2.0: Compile atk-2.2.0 is dependent on glib, in configure, prompt to find multiple versions of glib, configure LD_LIBRARY_PATH variable to the glib library path that needs to be specified.
5. Install pango
Pango-1.29.4
When pango is compiled, the following information appears in./configure to successfully compile GTK:
Config. Status: pango/pango-features.h is unchanged
Configuration:
Backends: Cairo FreeType
X
Pango compilation error:
./. 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'
Recompile Cairo:./autogen. Sh -- prefix =/usr/local -- enable-xlib = yes -- enable-FT = Yes & make install
6. Compile GTK
GTK +-3.2.0: gdk-pixbuf-2.24.0, libtiff4-dev, fontconfig-2.8.0 (libxml2-dev), libglib2.0-Dev, libxrandroid-Dev
An error is reported during compilation:
Gdkdeviceprivate-xi.h: 28: 35: Error: X11/extensions/xinput. h: no such file or directory
Compile the libXi-1.5.99.3 package, which contains the xinput. h header file. (Dependent package: libxext-Dev)
7. install some spice-GTK dependent packages
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
An error occurred while compiling the vala-0.14.2 version:
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 ));
Solution: I checked a lot on the Internet and did not solve the problem. I finally deleted the package and decompressed it again.
No translation problems
8. Install spice-GTK
Spice-gtk-0.9
./Autogen. Sh -- prefix =/usr/local -- enable-smartcard = No -- With-sasl = No -- With-audio = No -- enable-usbredir = Yes
This article summarizes my first successful compilation, and there are still a lot of deficiencies. If you have any problems, I hope you can help me. Thank you!