Clutter 安装指南
作者: 刘鹏
日期: 2008-10-28
本文介绍了在虚拟机 VirtualBox, Fedora 9 环境下安装 Clutter 的过程。

软件版本

  • VirtualBox 2.0.4
  • Fefora 9
  • Clutter 0.8

在 VirtualBox 上安装 fc9

  • 参考 VirtualBox 的使用手册安装 Fedora9。
  • 安装与系统内核配套的开发包。查看内核版本: uname -r,保证开发包版本与内核版本完全一致。

我的内核版本是2.6.25-14.fc9.i686,所以选择kernel-devel-2.6.25.14.fc9.i686.rpm

内核头文件C header files下载地址:

http://rpmfind.net/linux/rpm2html/search.php?query=kernel-devel

安装 rpm -i kernel-devel-2.6.25.14.fc9.i686.rpm

  • 安装 Guest Additon:

VirutalBox 2.0.4 Guest Additon installation

Building the VirtualBox Guest Additons kernel module
Building the VirtualBox Guest Additons...

Warning: the version of the X Window system on your guest has a known
problem. Because of this, dynamic resizing and seamless mode will not work.

Successfully installed the VirtualBox Guest Additons.
You must restart your guest system in order to complete the installation.

安装成功,重启 fedora9。

安装 clutter

  • 运行 configure 生成 Makefile 文件,configure 运行成功后显示如下信息:

                     Clutter    0.8.2
                   ====================

                      prefix:   /usr/local

                     Flavour:   glx/gl
                      XInput:   yes
                  GL Headers:   GL/gl.h
               Image backend:   gdk-pixbuf
              Target library:   libclutter-glx-0.8.la
                 Debug level:   minimum
              Compiler flags:
     Build API Documentation:   no
  Build Manual Documentation:   no
  • 运行 make 编译代码;
  • 运行 make install 安装 clutter;
  • 运行 tests 目录下的例子程序。

Trouble Shooting

  • 运行 configure 时出现如下错误信息:
checking for X11... found
checking for XFIXES extension >= 3... found
checking for XDAMAGE extension... found
checking for XCOMPOSITE extension >= 0.4... not found
configure: error: Required backend X11 Libraries not found.

这是由于没有安装 XComposite 库或者 XComposite 版本小于 0.4,作者在 fedora7 上安装 Clutter 0.8 时遇到过这种情况,后用 fedora9 安装问题就没 有了。

查看 XComposite 的版本:

rpm -qf /usr/lib/libXcomposite.so.1

或者查看文件 /usr/lib/pkgconfig/xcomposite.pc

  • 安装 VirtualBox Guest Additions 时可能会出现如下错误:
virtualbox 2.0.4 fc9
VirutalBox 2.0.4 Guest Additon installation
Please install the build and header files for your Linux Kernel.
The current kernel version is 2.6.25-14.fc9.i686
Problems were found which would prevent the Guest Additions from installing.
Please correct these problems and try again.

这是 Linux 系统中没有安装与系统内核配套的开发包造成的,安装方法见安装 fedora9 一节。

See Also