QEMU USE NEW GLIB

From PRPL
Jump to: navigation, search

During QEMU v2.4 development the required minimum glib version has been updated to 2.22 (see http://wiki.qemu.org/ChangeLog/2.4#Build_dependencies), which means that in order to build QEMU on RHEL5 or CentOS5 we need to build our own version of glib. The steps below show how to do that:

Preparation[edit]

$ export GLIB_2_22=<path to a directory where glib 2.22 will be installed>

Download glib sources (https://download.gnome.org/sources/glib/2.22/)

$ tar jxf glib-2.22.5.tar.bz2
$ cd glib-2.22.5

Configure and build[edit]

$ ./configure --prefix=$GLIB_2_22
$ make install

Set PKG_CONFIG_PATH so that qemu/configure will be able to find new glib:

$ export PKG_CONFIG_PATH=$GLIB_2_22/lib/pkgconfig